You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feature: Refactor Keycloak secrets handling for agent operator and centralized credential management #397
Currently, when deploying with the new agent operator, Keycloak client information (user, password, URLs, client ID/secret) is still stored in the environments configmap. The Keycloak user and password are also duplicated in every namespace as secrets. This architecture creates several operational problems: secrets are only copied at install time, making credential rotation unsafe—if the Keycloak credentials change, access breaks for all existing deployments. Storing sensitive information in configmaps is not secure, and duplicating secrets across namespaces is error-prone.
Proposed Solution
Update the deployment and client registration process to:
Store all Keycloak client information, including credentials, in a secret (kagenti-keycloak-client-secret) instead of the environments configmap.
Source the Keycloak user and password directly from the keycloak-initial-admin secret in the keycloak namespace rather than duplicating them in every namespace.
Refactor the client-registration code so that it dynamically reads credentials from the central secret, enabling safe credential rotation without reinstalling clients.
This centralizes sensitive data, improves security best practices, and ensures deployments can survive Keycloak credential rotation without disruptions.
Relevant code changes:
kagenti/auth/ui-oauth-secret/auth_secret.py: Implements read_keycloak_credentials to load admin credentials from the keycloak-initial-admin secret.
Client registration logic loads/refreshes credentials from secrets as needed (main logic)
kagenti/installer/app/components/keycloak.py: Refactors how the client secret is distributed—writes it to kagenti-keycloak-client-secret (distribution code).
Affected areas include admin user/secret bootstrapping and client-registration logic, now reading directly from the keycloak namespace.
I think we should review this issue based on the new design for AuthBridge and integration with the new webhook in rossoctl/cortex#75 and rossoctl/cortex#76
Activity
rubambiza commentedon Jan 26, 2026
@pdettori , any updates from your bot?
pdettori commentedon Jan 26, 2026
I think we should review this issue based on the new design for AuthBridge and integration with the new webhook in rossoctl/cortex#75 and rossoctl/cortex#76
mrsabath commentedon Feb 16, 2026
Dedicated meeting. @pdettori, @maia-iyer, @Alan-Cha , @mrsabath, @webchang, @huang195
rubambiza commentedon Feb 23, 2026
@Alan-Cha (WIP) will push a PR later this week.