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

Cache credentials tokens #784

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Cache credentials tokens #784

merged 1 commit into from
Jul 2, 2024

Conversation

souleb
Copy link
Member

@souleb souleb commented Jun 25, 2024

We currently use the full image url as key for the cache. The new change introduced here reduce cardinality and permit reusing a cached credentials based on aws region, gcp project and azure endpoint.

oci/auth/login/login.go Outdated Show resolved Hide resolved
@souleb souleb force-pushed the cache-key-fix branch 2 times, most recently from 0fd95c9 to c8d33f6 Compare June 28, 2024 15:09
Copy link
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

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

LGTM!
Left a minor suggestion which can be taken into account.

oci/auth/login/login.go Outdated Show resolved Hide resolved
oci/auth/login/login.go Outdated Show resolved Hide resolved
If implemented, a specific function is used to compute the key for
caching credentials based on the provider way of requesting it.

Signed-off-by: Soule BA <[email protected]>
@souleb souleb merged commit c647aea into main Jul 2, 2024
12 checks passed
@souleb souleb deleted the cache-key-fix branch July 2, 2024 20:30
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.

2 participants