Skip to content

Conversation

@DavidObando
Copy link

No description provided.

Copy link

Choose a reason for hiding this comment

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

I was trying to understand the scope and repository here, does it mean if I issue a show-tags command to my repository, I will only get an access_token that has access to my repository only rather than the entire registry?

Copy link
Author

Choose a reason for hiding this comment

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

Correct. When we request an access token, we'll do so with a scope. Since reading the tags for a repository only requires pull privileges then that's what we're asking for. This is the same behavior the docker CLI has. For example, if you want to push an image, the docker CLI will request an access token with the push scope on the affected repository.

Copy link

Choose a reason for hiding this comment

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

Thanks, otherwise, this PR looks good to me. Please consider rebasing from the main repo before/after you merge, there might be some conflict in is_tty check part. /cc @sajayantony

Copy link
Author

Choose a reason for hiding this comment

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

Rebase done.

djyou added 3 commits January 30, 2017 13:23
* expose refresh token retrieving mechanism in profile

* added unit tests for refresh token operations

* add acr login

* add the acr login command

* remove print in docker login utility

* fix linter errors

* switch protocol to https and tweak error message

* update help and readme for az login
@DavidObando DavidObando force-pushed the daobando/aad-repo-ops branch 2 times, most recently from d3c2549 to 1b18d2b Compare January 30, 2017 21:42
Copy link

@sajayantony sajayantony Jan 30, 2017

Choose a reason for hiding this comment

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

docker_login_to_registry [](start = 4, length = 24)

Can we move all the Docker and refresh token semantics to a _docker_utils.py or something appropriately named file?
These are alldata plane operations and so would be better to not mixing with management plane code.

Copy link
Author

Choose a reason for hiding this comment

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

Good call. Just did that.

@DavidObando DavidObando force-pushed the daobando/aad-repo-ops branch from 1b18d2b to 4e973d3 Compare January 30, 2017 22:20
@DavidObando DavidObando merged this pull request into master Jan 31, 2017
@DavidObando DavidObando deleted the daobando/aad-repo-ops branch January 31, 2017 20:21
@djyou djyou restored the daobando/aad-repo-ops branch February 9, 2017 00:49
@djyou djyou deleted the daobando/aad-repo-ops branch February 9, 2017 15:39
djyou pushed a commit that referenced this pull request Jul 26, 2019
* NFSAAS-2316 update to R4 RP standard (#30)

* NFSAAS-2316 update to R4 RP standard (#31)

* NFSAAS-2316 update to R4 RP standard

* NFSAAS-2316 update to R4 RP standard

* NFSAAS 2316 R4 update path correction (#32)

* NFSAAS-2316 update to R4 RP standard

* NFSAAS-2316 update to R4 RP standard

* NFSAAS-2316 correction to path in R4 update

* NFSAAS-2316 R4 update and structure change (#33)

* NFSAAS-2316 update to R4 RP standard

* NFSAAS-2316 update to R4 RP standard

* NFSAAS-2316 correction to path in R4 update

* NFSAAS-2316 R4 update and structure change

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* NFSAAS 2316 R4 update remove wheel (#34)

* NFSAAS-2316 update to R4 RP standard

* NFSAAS-2316 update to R4 RP standard

* NFSAAS-2316 correction to path in R4 update

* NFSAAS-2316 R4 update and structure change

* NFSAAS-2316 update to R4 remove wheel

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* This file should have been removed in the PR #33

* NFSAAS-2316 R4 update packaging fixes (#35)

* NFSAAS 2316 R4 update review comments (#36)

* NFSAAS-2316 R4 update packaging fixes

* NFSAAS-2316 update R4 review comments
Use enum for service level

* NFSAAS 2316 R4 corrections to booleans (#37)

* NFSAAS-2316 R4 update packaging fixes

* NFSAAS-2316 update R4 review comments
Use enum for service level

* NFSAAS-2316 correction to boolean usage

* NFSAAS-2316 update history (#38)

* NFSAAS-2316 R4 update packaging fixes

* NFSAAS-2316 update R4 review comments
Use enum for service level

* NFSAAS-2316 correction to boolean usage

* NFSAAS-2316 update history

* NFSAAS-2316 R4 fixes (#39)

* NFSAAS-2316 R4 update packaging fixes

* NFSAAS-2316 update R4 review comments
Use enum for service level

* NFSAAS-2316 correction to boolean usage

* NFSAAS-2316 update history

* NFSAAS-2316 further fixes to R4 commands

* NFSAAS-2316 R4 Fixes (#40)

* NFSAAS-2316 R4 update packaging fixes

* NFSAAS-2316 update R4 review comments
Use enum for service level

* NFSAAS-2316 correction to boolean usage

* NFSAAS-2316 update history

* NFSAAS-2316 further fixes to R4 commands

* NFSAAS-2316 R4 fixes
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.

4 participants