Skip to content

fix: dynamic OIDC clientId via Helm helpers for qtodo and rh-keycloak#160

Open
mlorenzofr wants to merge 1 commit into
validatedpatterns:mainfrom
mlorenzofr:rhbk-client-id
Open

fix: dynamic OIDC clientId via Helm helpers for qtodo and rh-keycloak#160
mlorenzofr wants to merge 1 commit into
validatedpatterns:mainfrom
mlorenzofr:rhbk-client-id

Conversation

@mlorenzofr

Copy link
Copy Markdown
Collaborator

Add template helpers that derive the OIDC client ID from the provider and authentication method instead of requiring a static override. When client assertion is enabled the SPIFFE URI is generated from the cluster domain, namespace and service account. The rh-keycloak chart feeds the resolved value into a realmPlaceholder secret so the Keycloak realm import picks it up at deploy time.

This PR addresses the issues introduced with #155
Alternative solution #157

Add template helpers that derive the OIDC client ID from the provider
and authentication method instead of requiring a static override.
When client assertion is enabled the SPIFFE URI is generated from
the cluster domain, namespace and service account. The rh-keycloak
chart feeds the resolved value into a realmPlaceholder secret so the
Keycloak realm import picks it up at deploy time.

Signed-off-by: Manuel Lorenzo <mlorenzofr@redhat.com>
@mlorenzofr
mlorenzofr requested review from p-rog and sabre1041 July 17, 2026 16:43

@p-rog p-rog left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

It's not that simple like my fix to the OIDC clientID #157, but from the architecture perspective your approach is more "purer" and aligns the client identity across the stack (ClientId = SPIFFE ID = JWT sub — all three aligned).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants