Skip to main content
With auth.oidc.clusterAccess: token, in-cluster Radar stops impersonating people. Every live Kubernetes call carries the person’s own ID token or access token, issued by the OIDC client your API servers already trust. The API server authenticates that token and applies the RBAC you already have, so each person can do in Radar exactly what they have permission to do anywhere else. This page assumes your clusters already accept tokens from your IdP (Microsoft Entra ID, Okta, Keycloak, or any OIDC provider), on any platform that lets the API server trust an external OIDC issuer. In the simplest setup you connect the hub to the same OIDC client, and change nothing on the API servers or in your RBAC. If your clusters don’t trust your IdP, Hub roles or IdP groups are simpler.

Requirements

  • Radar Hub 1.14.1 or newer, and Radar 1.18.0 or newer on every cluster.
  • Every cluster trusts the same issuer and audience. The hub signs in with one client, so clusters that each trust their own client can’t share it.
  • The API servers take the username from the person’s email (email, or upn or preferred_username on Entra ID). Set auth.oidc.emailClaim to that claim (default email). The hub builds the username the same way, so Radar’s checks on cached reads match the API server.
  • hub.publicURL on https with a certificate the clusters can verify: not web.tls.selfSigned, and not localCluster. Radar only accepts tokens over a verified tunnel.
  • The API server itself checks the IdP token. Not AKS with Microsoft Entra integration (its API server only trusts the AKS app), and not Identity Service for GKE (a proxy in front of the API server checks the token).

1. Read what your clusters expect

Issuer and client ID

The hub signs in with the same client your API servers trust. Get its issuer and client ID from your IdP:
App registrations → the app your clusters trust → Overview:
  • Client ID: Application (client) ID.
  • Issuer: https://login.microsoftonline.com/<Directory (tenant) ID>/v2.0.

Claims and prefixes

The username and groups claims your API servers read, and the prefixes they add (kubectl auth whoami shows them). The hub must use the same ones.
With an empty groups prefix, an IdP group named system:masters reaches the API server as that group. The hub logs a warning at startup. Setting a prefix needs the same change on the API servers and in your bindings, so plan it separately.

ID token or access token

Which token your API servers accept: the ID token (the default) or an access token for an API audience. Either way the hub signs people in with the ID token; with the access token, it also requests the API scope and relays the access token. Step 2 marks what that changes.

2. Set up the IdP and the hub

In Radar, Settings → Organization → SSO walks you through this step: pick your IdP and User tokens, follow the IdP steps it shows, fill in the values from step 1, and copy the command it builds. Use the steps below if you’d rather configure it by hand.

In your IdP

Use the client from step 1. The hub needs a redirect URI and a client secret on it. Steps marked (Access token only) apply only if your clusters accept the access token.
On the app registration your clusters trust:
  1. Authentication → Web platform → add the redirect URI https://<hub host>/api/auth/oidc/callback → Save. Keep the redirects already there.
  2. Certificates & secrets → New client secret. A separate secret for the hub lets you rotate it on its own.
  3. (Access token only) Expose an API → the scope your clusters require (e.g. cluster.access); add one if there’s none. Its full name, api://<application (client) ID>/<scope>, goes in auth.oidc.scopes.
  4. (Access token only) Manifest → in api, set "requestedAccessTokenVersion": 2 → Save.
  5. (Access token only) Token configuration → add the optional claim email for the Access token, and tick Access on the groups claim.
Steps 1 and 2 with the Azure CLI. --web-redirect-uris replaces the whole list, so the command passes the existing redirects back with the new one, and --append keeps the existing secrets:
With the access token, clusterTokenAudience is the Application (client) ID: v2 access tokens carry it as aud.

In the hub

Store the client secret in a Secret:
Save the values below as radar-hub-user-tokens.yaml. As written, they relay the ID token. For the access token, change the lines marked Access token.
radar-hub-user-tokens.yaml
Then apply them:
scopes replaces the list you set before: keep any other scope you already request. Add only scopes your IdP defines: an unknown scope fails sign-in (Entra ID rejects groups). Neither prefix may be - or start with radar:, cloud: or system:. To check, open Radar → Settings → Organization → SSO: the Cluster access card now shows User tokens (read-only). From now on, clusters already connected don’t open until you switch them (step 3), so do steps 2 and 3 together.

What the hub checks on the access token

With clusterToken: access_token, the hub checks the access token at sign-in and at each refresh. It must be a JWT from auth.oidc.issuer (not an opaque token), with an exp, an aud that contains clusterTokenAudience, and the emailClaim claim exactly equal to the ID token’s email, case included. Add the groups claim if your RBAC binds groups. A failed check stops the sign-in with a message naming the claim and the setting.

3. Connect clusters

  • New clusters: Radar’s Connect a cluster page installs Radar 1.18.0 or newer with auth.kubernetesCredentials=user-token and cloud.defaultRbac.create=false.
  • Existing clusters: the hub refuses to open a cluster whose Radar still impersonates, until it’s switched. In Radar, Settings → Organization → SSO → Switch clusters you already connected has the command for each cluster:
Radar adds no role bindings for people in this mode: your existing bindings decide access. The cluster’s ServiceAccount loses its impersonate permission, and rbac.podExec and rbac.portForward are ignored: shells and port-forwards run on the person’s own token. What Radar does in this mode: User-token mode.

4. Check access

Sign in to Radar as someone whose permissions you know, and open a cluster. They should see and do the same as with any other tool that signs in through the IdP: a namespace they can’t list is missing in Radar too, and an action RBAC denies is refused. If someone sees less than expected after a change in the IdP, have them sign out of Radar and in again.

AI agents and MCP clients

Personal access tokens can’t make live cluster calls in this mode. MCP clients that sign in with your IdP need the hub to exchange their access token for one the API servers trust: set auth.oidc.mcpOAuth.tokenExchange. See MCP clients.

Troubleshooting