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

configure jwks refresh interval #110

Merged

Conversation

mikemrm
Copy link
Contributor

@mikemrm mikemrm commented Jan 9, 2025

Currently jwks set is only fetched at startup.
This configures the jwks storage to refresh the key set.

By default, the keys are freshed every hour.

Currently jwks set is only fetched at startup.
This configures the jwks storage to refresh the key set.

By default, the keys are freshed every hour.

Signed-off-by: Mike Mason <mimason@equinix.com>
Signed-off-by: Mike Mason <mimason@equinix.com>
@mikemrm mikemrm marked this pull request as ready for review January 9, 2025 18:09
@mikemrm mikemrm requested review from a team as code owners January 9, 2025 18:09
@mikemrm mikemrm merged commit 1bf68f3 into infratographer:main Jan 9, 2025
4 checks passed
@mikemrm mikemrm deleted the configure-jwks-refresh-interval branch January 9, 2025 18:11
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@a9c6b76). Learn more about missing BASE report.

Files with missing lines Patch % Lines
internal/jwt/validator.go 0.00% 2 Missing ⚠️
internal/jwt/config.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #110   +/-   ##
=======================================
  Coverage        ?   31.96%           
=======================================
  Files           ?       29           
  Lines           ?     1996           
  Branches        ?        0           
=======================================
  Hits            ?      638           
  Misses          ?     1340           
  Partials        ?       18           
Flag Coverage Δ
unittests 31.96% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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