EQTY LabDocs

Auth Service Configuration

Configuration areas and environment variables for Auth Service.

View as Markdown

Auth Service configuration is supplied through deployment values and customer secrets. Keep environment-specific values out of product documentation and store them in the customer’s approved secret system.

Configuration Areas

  • Identity provider mode and provider metadata.
  • Token validation and signing settings.
  • Platform database connection for membership, API keys, service accounts, and key metadata.
  • Key-management provider for DID and signing workflows.
  • API key and service-account secret policy.
  • Public service URLs used by Guardian and other platform services.
  • Health, readiness, and operational settings.

Environment Variables

The main variables Auth Service reads, by category:

CategoryVariableDefault
ServerPORT8080
ServerHOSTlocalhost, so only loopback is reachable; the chart sets 0.0.0.0
ServerAUTH_SERVICE_URLhttp://localhost:8080/api/v1/auth; issuer of exchanged tokens, and must be reachable from Auth Service itself
ServerENVIRONMENTdevelopment
ServerCORS_ENABLEDfalse
IdentityIDP_PROVIDERnone, required: keycloak, entra, auth0, or generic
IdentityIDP_ISSUERnone, required; derived from IDP_AUTH0_DOMAIN (Auth0) or IDP_ENTRA_TENANT_ID (Microsoft Entra) when unset
IdentityIDP_CLIENT_IDnone, required
IdentityIDP_CLIENT_SECRETnone
IdentityIDP_SCOPESopenid,profile,email
IdentityIDP_HTTP_TIMEOUT30s
DatabaseDATABASE_URLbuilt from DB_*
DatabaseDB_HOST / DB_PORTlocalhost / 5432
DatabaseDB_USER / DB_PASSWORDpostgres / none
DatabaseDB_NAMEauthservice; the chart sets governance
DatabaseDB_SSLMODEdisable
DatabaseMIGRATIONS_RUN_AT_STARTUPtrue
SecurityAPI_SECRETnone, required
SecurityJWT_SECRETnone
SecuritySERVICE_ACCOUNT_ENCRYPTION_KEYfalls back to JWT_SECRET; one of the two is required
TokensAUTH_SERVICE_PRIVATE_KEYnone; PEM RSA key that signs exchanged tokens
TokensAUTH_SERVICE_KEY_IDgenerated; set it alongside AUTH_SERVICE_PRIVATE_KEY, or each start uses a new ID
TokensAUTH_SERVICE_KEY_PATH/tmp/auth-service-key.pem
TokensACCESS_TOKEN_EXPIRY_SECONDS3600, at most 86400
TokensREFRESH_TOKEN_EXPIRY_DAYS30
TokensREFRESH_TOKEN_ROTATIONtrue
TokensREFRESH_TOKEN_REUSE_WINDOW30 seconds
TokensREFRESH_TOKEN_MAX_CHAIN_LENGTH100
TokensREFRESH_TOKEN_BIND_TO_IPfalse
Key managementKEY_MANAGEMENT_PROVIDERazure_key_vault
Key managementDID_KEY_ALGORITHMsecp256k1
Key managementDID_KEY_CACHE_TTL_MINUTES15
Key managementOPENBAO_REQUEST_TIMEOUT5s
LoggingLOG_LEVELinfo
LoggingLOGGER_SKIP_PATHS/health

Provider Alignment

Guardian and all backend services must agree on the identity provider mode. A mismatch can allow sign-in to succeed while platform authorization fails.

Production Guidance

Use managed keys, production identity-provider tenants, production-grade storage, and customer-approved secrets. Local or mock providers are for development and test environments only.