docker / docker/docker-credential-helpers
Docker login command accesses random KeyChain entries and fails
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.3k
- Forks
- 195
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 5
Description
Duplicated from https://github.com/docker/for-mac/issues/1540 Adding here to hopefully get more visibility.
Expected behavior:
Running the command
docker login -u USER -p PASS HOST:8443
should login to the specified repo.
Unexpected behavior:
Running the above command causes docker to ask to access the KeyChain for a randomly chosen entry.
If I deny the request, then the command fails with:
"error getting credentials - err: exit status 1, out: The user name or passphrase you entered is not correct."
If I allow the request, then the command fails with:
"Error saving credentials: error storing credentials - err: exit status 1, out: The specified item already exists in the keychain."
Could be related to issue #47, but I believe that has already been resolved. I also tried downloading docker-credential-osxkeychain v0.5.0 and replacing /usr/local/bin/docker-credential-osxkeychain with that release and I had the same issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce docker login -u USER -p PASS HOST:8443 and observe the KeyChain prompt and credential errors. Start with /usr/local/bin/docker-credential-osxkeychain and compare its behavior with the specified repository; done means login stores credentials for the requested host without accessing a random entry or reporting that the item already exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go, macos
- Domain
- authentication, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100