Repository navigation
feat(oidc): an OIDCConfig without clientSecret is a public client - #104
Merged
Merged
Conversation
Gate 1 signs child portals in through the parent's Keycloak with no credential stored in the child, so each child's client is public, with PKCE. The CRD required clientSecret and the token exchange always sent client_secret, empty when the Secret had no value. clientSecret is now optional. Omitted, authn sends no client_secret and refuses a login without a PKCE verifier (400 MissingCodeVerifier) before calling the IdP. A named Secret with no value under its key fails 500 ClientSecretLookupFailed instead of sending an empty secret, so a broken reference never makes a confidential client public. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N8HNbEHdUjLki5RpNhTsHR
This was referenced Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gate 1 signs each child portal in through the parent's Keycloak, and its rule is that no child stores a credential. So each child's Keycloak client is public, with PKCE. authn couldn't use a public client: the CRD required
clientSecret, and the token exchange always sentclient_secret, empty when the Secret had no value. Diego chose to make the secret optional rather than add apublicClientflag.Behaviour
spec.clientSecretis optional, both in the CRD and in theauthn-crdschart copy.client_secret, and a login withoutX-Code-Verifieris refused400 MissingCodeVerifierbefore the IdP is called. This covers/oidc/loginand/oidc/stepup.500 ClientSecretLookupFailed; before, authn sent an empty secret. A broken reference never turns a confidential client into a public one.Tests
public_test.gocovers four things:client_secretis sent only by a confidential clientgetConfigmarks a missingclientSecretas publicClientSecretLookupFailedDocs
api.md: the CRD row, the route row, a newMissingCodeVerifierrow, and updatedClientSecretLookupFailedandTokenExchangeFailedrows.behavior.md: the field and the signature-check rationale. OIDC Core §3.1.3.7 rests on TLS to the token endpoint, not on the client secret.log.md: a decision entry.It's a feature, so it's intended as 0.36.0, and draft #91 moves to the next minor.
🤖 Generated with Claude Code
https://claude.ai/code/session_01N8HNbEHdUjLki5RpNhTsHR