Skip to content

fix: Key refresh should set no-cache to get most up to date keys#485

Merged
ericchiang merged 1 commit into
coreos:v3from
Yanni8:v3
Jun 15, 2026
Merged

fix: Key refresh should set no-cache to get most up to date keys#485
ericchiang merged 1 commit into
coreos:v3from
Yanni8:v3

Conversation

@Yanni8

@Yanni8 Yanni8 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Currently, the HTTP client fetches the keys without a Cache-Control header. This can lead to potential issues because, with the current logic, we always attempt to revalidate when we encounter an unknown kid. Therefore, we want to ensure that we retrieve the most up-to-date keys from the OIDC server.

For this reason, we should include a Cache-Control: no-cache header in the request to ensure that the keys are revalidated and that we do not receive a stale key set from an intermediary proxy.

Fixes #484

@ericchiang ericchiang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thanks!

@ericchiang ericchiang merged commit f77e01c into coreos:v3 Jun 15, 2026
2 checks passed
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.

Refresh doesn't send Cache-Control: no-cache header.

2 participants