AshAuthentication.Strategy.KubernetesServiceAccount.TokenVerifier.Jwks (AshAuthentication.Kubernetes v0.1.0)

Copy Markdown View Source

Verifies locally against the service-account issuer's JWKS (<api>/openid/v1/jwks by default, or jwks_uri): asymmetric signature by a published key, iss equal to issuer, an accepted audience, exp in the future and nbf (when present) reached, and a sub that agrees with the kubernetes.io claims. Keys are cached for jwks_ttl and refetched (at most every jwks_refetch_ms, default 30 seconds) when a token names an unknown kid, so issuer key rotation needs nothing.

Unlike TokenReview this cannot see that a token's Pod was deleted: such a token stays valid until its exp. Keep projected token lifetimes short.