Skip to content

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

3 participants