Skip to content

Conversation

@lucab
Copy link
Member

@lucab lucab commented Mar 28, 2017

After PR #202, PutBlob() now goes through an initial HasBlob()
which may require authentication in order to perform the check;
in such case a push-only scoped token will fail with:

service="registry.docker.io",scope="repository:<name>:pull",error="insufficient_scope"

This fixes the above case by changing the scope of the token
requested for uploads, allowing pull+push.

Signed-off-by: Luca Bruno [email protected]

After PR containers#202, PutBlob() now goes through an initial HasBlob()
which may require authentication in order to perform the check;
in such case a push-only scoped token will fail with:
```
service="registry.docker.io",scope="repository:<name>:pull",error="insufficient_scope"
```

This fixes the above case by changing the scope of the token
requested for uploads, allowing pull+push.

Signed-off-by: Luca Bruno <[email protected]>
@lucab
Copy link
Member Author

lucab commented Mar 28, 2017

/cc @mtrmac as #202 author

@lucab lucab force-pushed the ups/docker-dest-scope-pull-action branch from 77a3551 to 0062a02 Compare March 28, 2017 14:59
@runcom
Copy link
Member

runcom commented Mar 28, 2017

LGTM

Approved with PullApprove

@mtrmac
Copy link
Collaborator

mtrmac commented Mar 28, 2017

👍

Thanks!

(Note to self: docker/docker/distribution.v2Pusher.Push is also using both push and pull, so this is, if anything, likely to be more compatible than the previous code.)

Approved with PullApprove

@mtrmac mtrmac merged commit 72d9323 into containers:master Mar 28, 2017
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