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

Cannot get read-only creds with doctl registry login #1375

Closed
iansltx opened this issue May 13, 2023 · 1 comment
Closed

Cannot get read-only creds with doctl registry login #1375

iansltx opened this issue May 13, 2023 · 1 comment
Labels

Comments

@iansltx
Copy link

iansltx commented May 13, 2023

Describe the Issue:

There's no command line flag to log into the DO registry read-only, though that's the default on doctl registry config. This means that logins always request read-write access, which fails if doctl is logged in with a read-only token.

Environment:

  • doctl version:

doctl version 1.94.0-release
Git commit hash: d51d12c

  • OS: Ubuntu 22.04 (Docker marketplace image)
  • Installation method: Snap
@iansltx iansltx added the bug label May 13, 2023
bentranter added a commit to bentranter/doctl that referenced this issue May 17, 2023
Addresses digitalocean#1375. Adds a new flag to login to the container registry
generating a read-only API token.

Still WIP.
bentranter added a commit that referenced this issue May 18, 2023
* allow read-only creds for container registry login

Addresses #1375. Adds a new flag to login to the container registry
generating a read-only API token.

Still WIP.

* add tests for read-only registry login creds
@bentranter
Copy link
Member

Hey @iansltx, thanks for the report. Support has been added for logging into the DO registry read-only as of the most recent release.

You can now do,

$ doctl registry login --read-only tru

to log into the registry read-only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants