Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote authenticator: validate cached JWTs before use #8651

Merged
merged 3 commits into from
Mar 14, 2025

Conversation

iain-macdonald
Copy link
Contributor

No description provided.

@iain-macdonald iain-macdonald changed the title Add a TTL on JWTs received from the remote auth service Remote authenticator: validate cached JWTs before use Mar 14, 2025
ctx := authenticator.AuthenticatedGRPCContext(contextWithApiKey(t, "foo"))
require.Equal(t, fooJwt, ctx.Value(authutil.ContextTokenStringKey))

// fooJwt should fail validation and be discarded.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

barJwt?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AH, ok, nevermind.

@iain-macdonald iain-macdonald merged commit c804309 into master Mar 14, 2025
15 checks passed
@iain-macdonald iain-macdonald deleted the expirejwts branch March 14, 2025 22:53
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.

3 participants