Skip to content

feature: Replace hardcoded secret with SPIRE identity #106

Closed

Description

@mrsabath

Feature Description

  • Agent is represented by SPIFFE id
  • Agent uses its SPIFFE id to register to Keycloak as client
  • Agent uses its SPIFFE id to execute Token Exchange

Proposed Solution

  • initContainer gets its SPIFFE id to register with Keycloak
  • Agent executes token exchange using SPIFFE id
  • Access Token gets audience with Agent SPIFFE id
  • Agent gets Token Exchange with Tool SPIFFE id as audience

Want to contribute?

  • I would like to work on this issue.

Additional Context

No response

Activity

  1. added
    nice to have
    on Aug 4, 2025
  2. added this to the TT Security Demo milestone on Aug 4, 2025
  3. added theissue type on Aug 4, 2025
  4. moved this from Backlog to Ready in Rossoctl Issue Prioritizationon Dec 15, 2025
  5. moved this from Ready to In progress in Rossoctl Issue Prioritizationon Jan 6, 2026
  6. mrsabath commented on Jan 29, 2026

    @mrsabath
    MemberAuthor

    This will be addressed by rossoctl/cortex#82

  7. mrsabath commented on Feb 16, 2026

    @mrsabath
    MemberAuthor

    @Alan-Cha plans to have a demo week of 16

  8. rubambiza commented on Mar 2, 2026

    @rubambiza
    Contributor

    Draft PR is in the testing phase. Hoping to close out by end of week.

  9. Alan-Cha commented on Apr 6, 2026

    @Alan-Cha
    Member

    This is resolved with the new operator-managed client registration.

    See:
    rossoctl/operator#247
    rossoctl/cortex#262

    See this comment: rossoctl/cortex#85 (comment)

    1. Operator watches for deployments in agent namespaces
    2. resolveKeycloakClientID() gets SPIFFE ID based on the ServiceAccount: spiffe://{trustDomain}/ns/{namespace}/sa/{serviceAccount}
    3. Operator registers client in Keycloak using admin credentials

    The difference is that the we no longer need admin credentials in agent namespaces. Now they only need to be in the kagenti-system namespace for the operator to read.

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

Metadata

Metadata

Labels

nice to have

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions