-
Notifications
You must be signed in to change notification settings - Fork 113
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
Unsupported type of credentials provided, either SSH private key or username/password is supported (exit code 110) #1116
Comments
I could be wrong but maybe this might help: #968 (comment) |
@SihengCui when you created the secret, where |
emmm.. Do you mean that the password field is filled with the token string? But the git repo is a private Bitbucket. It seems that there is only password. In this case, is there any way to pass the certification? |
I have never used BitBucket, but seems like will need some (doc?) changes based on https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/#Cloning-a-repository-with-an-access-token. @SihengCui can you try what happens when you put x-token-auth as username into the secret and your access token as password? |
There are something different with git repo using HTTP or HTTPS protocol.
After that I just modified http to https.
Could this be the cause ? |
I put access token as password. And success pull the private repository from my github. So I am sure the format of the secret is correct. When the url is replaced with |
From grooming:
|
Hi @SihengCui, if possible, can you help me by providing the exact yaml files you used as a step to reproduce this problem? |
That's a private git address on an internal network. If you need to reproduce the problem, just request any of the HTTP repositories. NOT https |
Awesome, I'll do that. Thank you! |
For private HTTP git repositories, the name references a secret in the namespace that contains username and password.
Looking at the Pod, it is found that the container that pulls the code exist the following command
/ko-app/git ... --secret-path /workspace/shp-source-secret
I keep the container, cd to the /workspace/shp-source-secret and find that there are two files
username
andpassword
,when I manually execute
/ko-app/git ... --secret-path /workspace/shp-source-secret
, it also printUnsupported type of credentials provided, either SSH private key or username/password is supported (exit code 110)
.Why, is my certificate format wrong?
The text was updated successfully, but these errors were encountered: