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

Fix cross-repo push fallback when access to the source repo is not granted #2630

Merged
merged 2 commits into from
Feb 14, 2022

Conversation

tonistiigi
Copy link
Member

fixes #2454

Reverts #2062 and replace with a default expiration time for the case where expiration time is not sent by the server.

@jmacelroy @dchw

This reverts commit 9b7a5fc.

This patch casues issues for cross-repo mounts
when user doesn't have credentials for source repo
and fallback needs to happen.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
When server does not return expiration time for token
default to 60s. This replaces previous solution
in error handling that broke cross-repo push.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi added this to the v0.10.0 milestone Feb 14, 2022
@tonistiigi tonistiigi merged commit 0b9cd24 into moby:master Feb 14, 2022
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.

Cross repository blob mounts always result in a 401 when read access is not granted.
2 participants