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
feat: Dynamic Client Registration with SPIFFE for Keycloak #85
@mrsabath just to clarify, this covers the removal of any injection of keycloak credentials into sidecars, correct? Where SPIFFE is not in use Kubernetes serviceaccount tokens would be used to authenticate instead. In both cases the clients would need to be created separately for every serviceaccount in use.
Excellent, thanks @Alan-Cha, if you need any help/ assistance, please don't hesitate to reach out. I know @grs and @akram have been looking into this area
After discussion we @akram, we decided that the operator design has more advantages than DCR.
The operator design is more secure. Depending on how we implement DCR, it would enable a container in the namespace to create as many clients as it wants. The operator design will limit a container to only creating a single client.
The operator design is a more complete solution. DCR can resolve the issue of client registration but we need to think about the entire agent lifecycle. DCR will not handle client deregistration when the agent is deleted. The operator could handle both client registration and deregistration as well as other responsibilities.
The operator uses admin credentials to talk to Keycloak. This is a big improvement as we no longer need to have admin credentials in admin namespaces, which was previously read by the the client registration sidecar.
@akram and I discussed the possibility of using a hybrid method where the operator uses DCR to register the client. However, I think the benefits are limited. I'm not sure if it's worth the engineering cycles at the moment.
@Alan-Cha If the operator manages OIDC client registration, and that registration fails, what is the mechanism for the operator to tell pods the registration has failed?
@esnible We can close this for now. I think we can revisit this in the future or perhaps I'll file a new issue. We successfully removed admin credentials from agent namespaces but we have admin credentials in kagenti-system so that the operator can talk to Keycloak. Perhaps the next step would be to create a client for the operator in Keycloak and have Keycloak trust the operator's SPIFFE ID, removing credentials entirely.
There's no mechanism to tell the pods that registration has failed.
Activity
mrsabath commentedon Feb 16, 2026
To be done later
mrsabath commentedon Mar 2, 2026
@Alan-Cha will address this issue as soon as he is done with #82
grs commentedon Mar 19, 2026
@mrsabath just to clarify, this covers the removal of any injection of keycloak credentials into sidecars, correct? Where SPIFFE is not in use Kubernetes serviceaccount tokens would be used to authenticate instead. In both cases the clients would need to be created separately for every serviceaccount in use.
dimakis commentedon Mar 23, 2026
@Alan-Cha
is this being progressed? it is key for us
Alan-Cha commentedon Mar 23, 2026
@dimakis Yes, I am currently working on it.
dimakis commentedon Mar 24, 2026
Excellent, thanks @Alan-Cha, if you need any help/ assistance, please don't hesitate to reach out. I know @grs and @akram have been looking into this area
Alan-Cha commentedon Apr 6, 2026
This work is no longer necessary with new operator-managed client registration
See:
rossoctl/operator#247
#262
After discussion we @akram, we decided that the operator design has more advantages than DCR.
The operator uses admin credentials to talk to Keycloak. This is a big improvement as we no longer need to have admin credentials in admin namespaces, which was previously read by the the client registration sidecar.
@akram and I discussed the possibility of using a hybrid method where the operator uses DCR to register the client. However, I think the benefits are limited. I'm not sure if it's worth the engineering cycles at the moment.
esnible commentedon Apr 27, 2026
Can this be closed?
@Alan-Cha If the operator manages OIDC client registration, and that registration fails, what is the mechanism for the operator to tell pods the registration has failed?
Alan-Cha commentedon May 1, 2026
@esnible We can close this for now. I think we can revisit this in the future or perhaps I'll file a new issue. We successfully removed admin credentials from agent namespaces but we have admin credentials in
kagenti-systemso that the operator can talk to Keycloak. Perhaps the next step would be to create a client for the operator in Keycloak and have Keycloak trust the operator's SPIFFE ID, removing credentials entirely.There's no mechanism to tell the pods that registration has failed.