Custom enterprise OIDC¶
A generic OIDC provider works, and it is the only provider that requires configuration before it will. This page is what that configuration is and how the control plane verifies a token once it is in place.
Why it takes configuration¶
The three cloud providers have built-in trust: the control plane already knows
their issuers. For oidc, trust comes from your allowlist, and every issuer the
control plane recognises there is one you added. Any other issuer is treated as
oidc and checked against that same list.
That produces the characteristic symptom. A valid enterprise token is rejected
with 403 unable to resolve actor from external token because it fell through to
oidc ahead of its allowlist entry. See
Supported identity providers.
Configure the issuer and audience¶
xratu auth config-set \
--allowed-cloud-token-issuer https://idp.acme.example \
--allowed-cloud-token-audience xratu-control-plane
Both flags are repeatable, so several issuers and audiences can be trusted. Confirm what is in force:
Do this before finalizing the deployment. Once finalized, the issuer and audience lists are locked, and changing them requires the audited break-glass path. See Post-finalization limits.
What your provider must support¶
Verification is standard OIDC discovery followed by JWKS signature checking, so the requirements fall out of that.
A discovery document. The control plane fetches
<issuer>/.well-known/openid-configuration and reads jwks_uri from it. An
issuer without a reachable discovery document cannot be verified.
A reachable JWKS endpoint. Keys are fetched from the jwks_uri the
discovery document names.
An asymmetric signing algorithm. Supported algorithms are RSA and elliptic curve only:
HMAC algorithms are not accepted, so a provider signing with HS256 cannot be
used.
A kid header that matches a published key. The signing key is selected
from the JWKS by key ID and by key type appropriate to the algorithm.
What the token must contain¶
| Claim | Requirement |
|---|---|
iss |
Must equal the configured issuer exactly, compared case-insensitively |
aud |
Must intersect the allowed audiences |
exp |
Must be in the future |
nbf |
If present, must not be in the future |
email or sub |
At least one, since the actor is derived from them |
A token with no audience claim at all is rejected.
Reachability¶
Discovery and JWKS fetches are made by the control plane, not by your CLI. The issuer must therefore be reachable from the control plane, which matters in a private or restricted network where the identity provider sits behind its own routing. See Air-gapped deployment.
Mapping to internal actors¶
By default the actor is derived from the token's claims, giving
user:<email> or sub:<subject>. Where your internal actor names differ from
what the provider asserts, principal mappings translate an external principal
into an internal actor, and group mappings do the same for groups:
See Actors.
Optional: restrict by email domain¶
With a non-empty list, a token whose email claim is outside those domains is
rejected with email_domain_not_allowed before any mapping happens. An empty
list applies no restriction.
Verify the setup¶
Obtain a token from your provider, then exchange it:
xratu auth exchange --provider oidc --external-token "${TOKEN}" --set-token --set-actor
xratu auth whoami
auth_context.token_provider reports oidc and actor_id is no longer
system.
When it fails¶
403 unable to resolve actor from external token. The issuer is not
allowlisted, the audience does not match, the token has expired, or the
signature did not verify. Check the issuer string matches the token's iss
claim exactly, including scheme and any trailing path.
403 cloud token exchange is disabled. External token trust is off
entirely. This is posture, not provider configuration.
Verification fails with everything apparently correct. Confirm the discovery document is reachable from the control plane and that the signing algorithm is on the supported list.