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

spin registry login fails when trying to authenticate against Digital Ocean Container Registry #2326

Open
ThorstenHans opened this issue Mar 6, 2024 · 1 comment
Assignees
Labels
area/CLI CLI area/oci OCI distribution for Spin apps bug Something isn't working

Comments

@ThorstenHans
Copy link
Contributor

I tried to authenticate against Digital Ocean Container Registry using the spin registry login command and ran into the following error:

doUser="my-do-username"
doPAT="my-do-pat"

spin registry login registry.digitalocean.com -u $doUser -p $doPAT

Error: cannot log in to the registry

Caused by:
      cannot authenticate as <my-do-username> to registry registry.digitalocean.com: unexpected HTTP status 400 Bad Request

Setting RUST_LOG=debug I get the following log messages:

2024-03-06T21:19:13.706127Z DEBUG reqwest::connect: starting new connection: https://registry.digitalocean.com/
2024-03-06T21:19:13.707241Z DEBUG hyper::client::connect::dns: resolving host="registry.digitalocean.com"
2024-03-06T21:19:13.840619Z DEBUG hyper::client::connect::http: connecting to 104.18.7.242:443
2024-03-06T21:19:13.856569Z DEBUG hyper::client::connect::http: connected to 104.18.7.242:443
2024-03-06T21:19:13.973357Z DEBUG hyper::proto::h1::io: flushed 126 bytes
2024-03-06T21:19:14.007371Z DEBUG hyper::proto::h1::io: parsed 12 headers
2024-03-06T21:19:14.007414Z DEBUG hyper::proto::h1::conn: incoming body is content-length (87 bytes)
2024-03-06T21:19:14.007520Z DEBUG hyper::proto::h1::conn: incoming body completed
2024-03-06T21:19:14.007591Z DEBUG hyper::client::pool: pooling idle connection for ("https", registry.digitalocean.com)
2024-03-06T21:19:14.009875Z DEBUG reqwest::connect: starting new connection: https://api.digitalocean.com/
2024-03-06T21:19:14.009982Z DEBUG hyper::client::connect::dns: resolving host="api.digitalocean.com"
2024-03-06T21:19:14.029661Z DEBUG hyper::client::connect::http: connecting to 104.18.154.42:443
2024-03-06T21:19:14.069639Z DEBUG hyper::client::connect::http: connected to 104.18.154.42:443
2024-03-06T21:19:14.349884Z DEBUG hyper::proto::h1::io: flushed 326 bytes
2024-03-06T21:19:14.526252Z DEBUG hyper::proto::h1::io: parsed 10 headers
2024-03-06T21:19:14.526312Z DEBUG hyper::proto::h1::conn: incoming body is empty
2024-03-06T21:19:14.526446Z DEBUG hyper::client::pool: pooling idle connection for ("https", api.digitalocean.com)
Error: cannot log in to the registry

Caused by:
      cannot authenticate as <my-do-username> to registry registry.digitalocean.com: unexpected HTTP status 400 Bad Request

Credential Verification

I was able to login successfully by providing the same credentials to docker login.

Spin Information

spin --version
spin 2.3.0 (ee6706c 2024-02-29)

spin plugins list --installed
check-for-update 0.1.0 [installed]
cloud 0.7.0 [installed]
cloud-gpu 0.1.0 [installed]
js2wasm 0.6.1 [installed]
pluginify 0.6.0 [installed]
py2wasm 0.3.2 [installed]
@vdice vdice added bug Something isn't working area/CLI CLI area/oci OCI distribution for Spin apps labels Mar 13, 2024
@ThorstenHans
Copy link
Contributor Author

I've created a corresponding support ticket at Digital Ocean, to get connected to someone who can explain what they expect upon authentication.

I'll keep this issue updated

@ThorstenHans ThorstenHans self-assigned this Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CLI CLI area/oci OCI distribution for Spin apps bug Something isn't working
Projects
Status: 🔖 Backlog
Development

No branches or pull requests

2 participants