Skip to content

Inherrit user priviledges from Keycloak #2707

Answered by knrt10
pirankashani asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @pirankashani, some more context on this response.

Headlamp supports OIDC integration with Keycloak, allowing users to log in using their Keycloak credentials. However, the specific mapping of Keycloak roles to Kubernetes RBAC roles, which would determine user privileges in Headlamp, is not directly handled by Headlamp itself. Instead, this mapping is typically managed through Kubernetes RBAC configurations.

To achieve role mapping, you would need to:

  1. Configure Keycloak:

    • Set up roles in Keycloak (Admin, Editor, Read-only)
    • Configure the OIDC client to include role information in tokens
    • Ensure roles are included in either the ID token or access token claims
  2. Set Up Kubernetes RBAC:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pirankashani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants