Skip to content

Improve error message when users don't configure the password for password-protected SSH keys #802

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

Open
pjbgf opened this issue Jun 29, 2022 · 1 comment
Labels
area/git Git related issues and pull requests enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@pjbgf
Copy link
Member

pjbgf commented Jun 29, 2022

Flux supports the use of password-protected SSH keys. When they are being used, users must provide it via a password field on the same secret in which the identity (private key) and known_hosts are provided.

If users forget to provide such a password, they end up getting the error below:
error: error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"}

The error message could be improved to make it easier for users to realise what the problem is.

xref: https://fluxcd.io/docs/components/source/gitrepositories/#ssh-authentication

@pjbgf pjbgf added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed area/git Git related issues and pull requests labels Jun 29, 2022
@pjbgf pjbgf added this to the GA milestone Aug 23, 2022
@stefanprodan stefanprodan removed this from the GA milestone Jul 4, 2023
@sonbui00
Copy link

sonbui00 commented Dec 7, 2023

Error message is better now
failed to checkout and determine revision: unable to construct auth method with options: bcrypt_pbkdf: empty password

In case use flux create secret
ssh: this private key is passphrase protected
or
ssh: this private key is passphrase protected

I think this issue should be resolved @stefanprodan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/git Git related issues and pull requests enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

3 participants