spinframework / spinframework/spin

spin does not allow login to http-only registry

Open
#1,211 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/CLI
Dominant language
Rust
Stars
6.5k
Forks
310
Avg merge
1d 20h
Merged PRs (30d)
24

Description

env:

spin 0.9.0 (e2f4fac 2023-02-21)
Apple arm

  • started a registry on my laptop
docker run --rm -p 5000:5000 -e REGISTRY_HTTP_SECRET=secret --name registry arm64v8/registry:2
  • Login using Docker succeeds:
docker login -u rjindal -p secret http://127.0.0.1:5000/   
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Login Succeeded
  • Login using Spin fails:
spin registry login --username rjindal --password secret http://127.0.0.1:5000/
Error: cannot log in to the registry

Caused by:
    cannot authenticate as rjindal to registry 127.0.0.1: http transport error: error sending request for url (https://127.0.0.1/v2/): error trying to connect: tcp connect error: Connection refused (os error 61)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with spin registry login against the local registry started by the provided Docker command, then compare its handling of the http:// URL with the successful Docker login. Done means Spin authenticates successfully against an HTTP-only registry without attempting HTTPS.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, rust
Domain
cli, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.