Docs
Live demo

Review a Kubernetes token for a configured target client

POST/api/v2/internal/kubernetes-authn/{targetID}/token-review
Kubernetes TokenReview clientInternal integration

Target-local backchannel using a dedicated bearer credential bound to one target and organization. Enabled only when KUBERNETES_TOKEN_REVIEW_BACKCHANNEL_CREDENTIALS_FILE is configured. Browser cookies and agent-login sessions cannot authorize this endpoint. Client authentication precedes body decoding. Principal retains the existing JWT verification and federated snapshot semantics. Requests and identity responses are excluded from traffic body logging.

Parameters

Path1 required of 1
targetIDstring · uuidpathrequired

Kubernetes target UUID bound to the client credential.

Request body application/json · handler.KubernetesTokenReviewRequest

Required3 of 4 fields
apiVersionstringrequired
authentication.k8s.io/v1authentication.k8s.io/v1beta1
kindstringrequired
TokenReview
specobjectrequired
2 fields
tokenstringrequired
min length 1
audiencesarray of string
Optional1 field
metadatamap of string → any

Responses

200

TokenReview decision. An invalid user token returns authenticated false or omitted.

handler.KubernetesTokenReviewResponse · 4 fields
apiVersionstringrequired
authentication.k8s.io/v1authentication.k8s.io/v1beta1
kindstringrequired
TokenReview
metadatamap of string → any
statusobjectrequired
4 fields
authenticatedboolean
default false
userobject
3 fields
usernamestring
uidstring
groupsarray of string
audiencesarray of string
errorstring
400

Invalid TokenReview version, kind, token, audiences, or JSON document.

handler.KubernetesTokenReviewRequestError · 2 fields
errorstringrequired
TOKEN_REVIEW_REQUEST_INVALID
messagestringrequired
401

Missing, invalid, expired, or differently scoped client credential.

403

The configured target does not belong to the credential organization.

413

TokenReview exceeds 256 KiB or an upstream request limit.

handler.KubernetesTokenReviewRequestError · 2 fields
errorstringrequired
TOKEN_REVIEW_REQUEST_INVALID
messagestringrequired
429

Global API rate limit exceeded.

503

TokenReview dependencies are unavailable or the concurrency limit is reached.

handler.KubernetesTokenReviewResponse · 4 fields
apiVersionstringrequired
authentication.k8s.io/v1authentication.k8s.io/v1beta1
kindstringrequired
TokenReview
metadatamap of string → any
statusobjectrequired
4 fields
authenticatedboolean
default false
userobject
3 fields
usernamestring
uidstring
groupsarray of string
audiencesarray of string
errorstring

Common errors: 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close