mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
* feat(auth): admit API callers by a claim value
An issuer's admit rules gain claims: a list of {name, value}. A token
is admitted when one rule's top-level claim is the value, or a string
array holding it. This admits tokens with no groups claim, such as
Teleport application-access JWTs (roles), Entra app-only tokens (roles)
and CI OIDC tokens.
Claims that describe the token rather than the caller (iss, aud, nonce,
jti, exp, nbf, iat, typ) are refused. LocalBundle role mappings use the
same rule, matcher and validation.
Signed-off-by: dbudris <dbudris@nvidia.com>
* docs(auth): Teleport needs an Authorization rewrite and either algorithm
Teleport sends its app JWT in Teleport-Jwt-Assertion, and NVKE reads only
Authorization, so the Teleport app needs a header rewrite. Teleport signs
with RS256 under the legacy signature_algorithm_suite and ES256 under the
others, so the example accepts both.
Signed-off-by: dbudris <dbudris@nvidia.com>
* docs(auth): spell out the Teleport app settings NVKE needs
The roles claim needs rewrite.jwt_claims to include roles. The header
rewrite has a different form in teleport.yaml and in a dynamic app
resource, so show both. Name the application access JWKS path, which is
not Teleport's OIDC discovery key set.
Signed-off-by: dbudris <dbudris@nvidia.com>
---------
Signed-off-by: dbudris <dbudris@nvidia.com>