Skip to content

Control plane authentication (AUTH_CONFIG_FILE)

Multi-issuer OIDC JWT authentication and read / apply claim authorization rules for the control plane Admin API (API reference, env).

Mount this file read-only on the control plane container and set AUTH_CONFIG_FILE=/path/to/control-plane-auth.yml. Validate offline with plat5 validate --auth-config <file>. Token exp and nbf validation allows 60 seconds of clock leeway (matching gateway and operator JWT validation).

issuers:
- name: github-actions
issuer: https://token.actions.githubusercontent.com
audiences: [https://plat5-cp.example.com]
max_token_lifetime: 1h
rules:
- access: read
claims:
repository: [acme/platform]
- access: apply
claims:
repository: [acme/platform]
ref: [refs/heads/main]
- name: okta
issuer: https://acme.okta.com/oauth2/default
audiences: [api://plat5-cp]
cli:
client_id: 0oa1234567890abcdef
scopes: [openid, email, groups]
rules:
- access: apply
claims:
groups: [platform-admins]
- access: read
claims:
groups: [platform-engineers]
Field Rule
issuers Trusted OIDC/JWT issuers. Each entry must have a unique name and unique issuer URL
Field Rule
name Short unique label for this issuer (recorded in revision attribution and GET /auth/info), e.g. github-actions or okta
issuer Exact JWT iss claim value and base URL for OIDC Discovery ({issuer}/.well-known/openid-configuration)
jwks_uri Optional explicit JWKS URI override. When omitted, discovered from {issuer}/.well-known/openid-configuration
audiences Allowed JWT aud claim values. Wildcard * is forbidden on the control plane
subject_claim Dotted JSON path to the stable caller subject claim. Default sub
max_token_lifetime Optional maximum allowed token lifetime (exp - iat, e.g. 1h or 24h). Requires numeric iat when set
cli Optional non-secret OAuth 2.0 public client metadata advertised on GET /auth/info for plat5 login
rules Authorization rules mapping required JWT claims to read or apply access. Evaluated as OR across rules, AND across claims within a rule
Field Rule
client_id OAuth 2.0 public client ID used by plat5 login (RFC 8252 PKCE and RFC 8628 Device Flow)
audience Optional OAuth audience parameter sent during plat5 login (for IdPs such as Auth0 that require it)
scopes OAuth scopes requested by plat5 login. Default ["openid"]
token_source Which OAuth token plat5 login sends to the control plane (access_token default; use id_token for OIDC providers whose access tokens are opaque)
authorization_endpoint Optional OAuth authorization endpoint override (otherwise discovered via OIDC Discovery)
token_endpoint Optional OAuth token endpoint override (otherwise discovered via OIDC Discovery)
device_authorization_endpoint Optional RFC 8628 device authorization endpoint override (otherwise discovered via OIDC Discovery)
Field Rule
access read grants read endpoints and POST /apply?dry_run=true; apply grants all read endpoints plus mutating POST /apply
claims Required JWT claims (all keys must match; each key matches if any listed pattern matches). Patterns use full-string anchored * globbing; bare * is forbidden