-
Notifications
You must be signed in to change notification settings - Fork 179
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
macOS credentials not found error apparently changed #177
Comments
This is not related to the return "", "", errors.New("No stored credential for " + serverURL) So best guess for docker/docker-py#2482 (comment) is this user didn't set any Suggest to https://github.com/docker/docker-py maintainers to add a new error case for this store. |
I don't see this implementation anymore in current |
https://github.com/docker/docker-credential-helpers/blob/master/osxkeychain/osxkeychain_darwin.go contains the hardcoded string
The specified item could not be found in the keychain.
supposedly returned bySecCopyErrorMessageString
(https://github.com/docker/docker-credential-helpers/blob/master/osxkeychain/osxkeychain_darwin.c#L7-L15) when an entry cannot be found in the keychain. Apparently that error message changed toNo stored credential for XXX
, according to the error messages reported in docker/docker-py#2482.It would probably better to not rely on magic strings returned by
SecCopyErrorMessageString
, but instead (also) using the enum values (https://developer.apple.com/documentation/security/1542001-security_framework_result_codes?language=objc), probably this one: errSecItemNotFound.The text was updated successfully, but these errors were encountered: