Skip to content

Duplicated Keycloak credentials across namespaces #159

Closed

Description

@Alan-Cha

There are two places where Keycloak credentials are saved

These credentials are used for different purposes.

  • global-environments is used during initial installation to create the kagenti client in Keycloak, extract the client secret, and save it as a Kubernetes secret named kagenti-ui-oauth-secret in the kagenti-system namespace so that Kagenti can have user authentication with Keycloak
  • environments is used whenever a new agent or tool is imported to create a respective client in Keycloak

The question is, is it possible to use the same set of credentials instead of duplicating them?

Possible solutions

  • With dynamic client registration, it might be possible to get rid of the environments configMap as the agent/tool pod can talk directly to Keycloak without credentials.
  • It might be possible to get rid of the global-environments configMap by programmatically creating the kagenti client in Keycloak instead of using a job.

Activity

  1. pdettori commented on Aug 29, 2025

    @pdettori
    Member

    It might be possible to get rid of the global-environments configMap by programmatically creating the kagenti client in Keycloak instead of using a job.

    Would this be part of the init container code for each new agent/tool?

  2. added
    nice to have
    on Sep 3, 2025
  3. Alan-Cha commented on Dec 15, 2025

    @Alan-Cha
    MemberAuthor

    Related to #106

  4. self-assigned this
    on Dec 15, 2025
  5. moved this from Backlog to Ready in Rossoctl Issue Prioritizationon Dec 15, 2025
  6. rubambiza commented on Jan 6, 2026

    @rubambiza
    Contributor

    @mrsabath Need to document how to create custom namespaces and validate that credentials are being properly created.

  7. moved this from Ready to In progress in Rossoctl Issue Prioritizationon Jan 26, 2026
  8. mrsabath commented on Jan 29, 2026

    @mrsabath
    Member

    This will be resolved when we complete the following feature: rossoctl/cortex#85

  9. Alan-Cha commented on Feb 3, 2026

    @Alan-Cha
    MemberAuthor

    I think this issue is nearly the same as #106. I will close this for now

  10. added this to the Release v0.7.0 milestone on Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

nice to have

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions