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

Use separate cache keys for registry and realm #286

Merged
merged 1 commit into from
Jan 16, 2023
Merged

Use separate cache keys for registry and realm #286

merged 1 commit into from
Jan 16, 2023

Conversation

baronfel
Copy link
Member

@baronfel baronfel commented Jan 10, 2023

When we lookup any stored credentials through the docker auth mechanism, we should use the registry as the key. This is the value that users are expected to interact with when 'priming' the config file. Our short-lived token cache can still use the realm here - the short-lived token cache has a subsequent step that reuses the token generated for the realm for calls to the `registry.

This works very well and actually ended up being something that fixed our GitHub test workflow (ignore the Google Cloud failure here): https://github.com/baronfel/sdk-container-demo/actions/runs/3887048885

Closes #284

@baronfel baronfel changed the title Use separate keys for registry and realm Use separate cache keys for registry and realm Jan 13, 2023
@baronfel baronfel merged commit 8b868ee into main Jan 16, 2023
@baronfel baronfel deleted the diff-names branch January 16, 2023 01:51
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.

Registry login fails because wrong credentials are used
2 participants