Skip to content

JWT verification extension - #1402

Open
TristonianJones wants to merge 1 commit into
cel-expr:masterfrom
TristonianJones:jwt-support
Open

JWT verification extension#1402
TristonianJones wants to merge 1 commit into
cel-expr:masterfrom
TristonianJones:jwt-support

Conversation

@TristonianJones

@TristonianJones TristonianJones commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Support for JWT verification with automation key-fetching.

Introduce jwt.Token type which models the structure of a JWT with a
series of well-defined claims accessible by their human-readable names
as well as support for optional claim-fetching.

As a best practice, you'll want to follow this flow:

  • Verify the token is signed and has not expired: jwt.verify (async) or jwt.verifyWithKey (sync)
  • Check that the token was presented by a trusted user: jwt.verify(token).presentedBy(aud, iss)
  • Inspect additional claims:
  cel.bind(auth, jwt.verify(token), 
      auth.presentedBy(aud, iss) && 
      auth.claim("spiffe-subject").orValue("") == "expected-subject")

Comment thread ext/jwt/jwt.go Outdated
@TristonianJones
TristonianJones marked this pull request as ready for review August 10, 2026 21:22
@TristonianJones
TristonianJones force-pushed the jwt-support branch 5 times, most recently from 305f355 to d0f5ff2 Compare August 10, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant