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

Merge latest v3 changes to feature-oidc #1154

Merged
merged 11 commits into from
Feb 12, 2024
Merged

Conversation

kian99
Copy link
Contributor

@kian99 kian99 commented Feb 7, 2024

Description

Merge the latest changes from v3 into feature-oidc.

Includes:

  • Ales' changes to move access control handler code to jimm, from jujuapi.
  • My changes to refactor the JWKS cache.

Normally I wouldn't merge the original branch into the feature-branch but it would be beneficial to bring in these changes for the cache system which we can reuse for the OAuth private key. cc @babakks

ale8k and others added 10 commits January 8, 2024 12:34
Moving access related logic from jujuapi to jimm.
Refactor the JWKS cache away from the jwk.Cache object which caches an HTTP response and causes JIMM to make an HTTP call to itself. Instead, we use a cache with a TTL and fetch the JWK set from Vault periodically (currently set to 1h) with a frequency much higher than the cache refresh interval.
Copy link
Contributor

@ale8k ale8k left a comment

Choose a reason for hiding this comment

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

Approving but can't guarantee all makes sense to me right now aha

@kian99 kian99 merged commit a1eb280 into canonical:feature-oidc Feb 12, 2024
4 checks passed
@kian99 kian99 deleted the merge-v3 branch February 12, 2024 13:56
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