-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Unable to use ssh gitlab connection for on prem gitlab #1322
Comments
For private git repos over SSH, you need to either:
For private git repos over HTTPS, you need to customize the argocd image servers cert bundle under |
@jessesuen thanks. I will try the |
Did you update all services (argocd-server, argocd-repo-server, argocd-application-controller) with the cert bundle? I think we may need all of them to have the change. If that doesn't work, we can dup this bug to #1171 to figure out why self-signed HTTPS does not work. One user did report adding their cert bundle to /etc/ssl/certs resolved it for them. |
Aaa nope. Only added it to |
argocd-server tests the repo before storing it to verify it is valid, so it is needed there. argocd-repo-server is responsible for cloning the repo and rendering the manifests. I don't recall if it is truly necessary in argocd-application-controller. |
I tried the |
I have similar issue with private repository on selfhosted Gitlab :(
My config map:
And Log from
I am using minikube with kubernetes 1.14.0 |
For now im mounting the certs to the pods and use https instead of ssh. Though i still would want to use ssh access in the future. |
I got the same problem with private GitHub repository. I specified public key for the private repo and after run this command:
I got error:
|
I got the problem. I need to make |
I will give it a shot again. |
@balchua . Based on logs from #1322 (comment) it looks like |
@alexmt will try this one and let you know. Thanks for looking into this. |
Is there a way of doing this without having to use argocd cli or modying the default deployment yamls? The CA for my git repo is trusted on the host the node is running, yet the container has 0 awareness of this, it's only getting the regular CA's I dont know from where. I tested the latest 1.0-RC and this still happens. After initial deployment changing the Deployments in my cluster results in the UI always saying I have the wrong password... And theres no way to change the password in the ArgoCD UI. |
Back on the topic of ssh connection: I also get:
When I do
Is there anything else I can investigate or supply to get to the cause? EDIT: |
Next step: create a kustomize application that has a private remote base. |
@balchua where are you on this issue? |
Sorry guys i haven't updated this issue. Its all good for me now. Im closing this one. Thanks!! |
I see this issue myself when using SSH + declarative setup, what was the fix @balchua? |
Since I ran into the same problem today while trying to add a private repo from my GitLab instance via SSH (AND host key verification) in a declarative way to my ArgoCD running in Minikube, I'll share my solution:
I hope this helps anyone ;-) |
🎉 Multiple Private Repos in Gitlab - Shared SSH Key -
|
We wanted to use argocd with our on prem gitlab. Our gitlab is using self signed cert, so decided to use ssh instead.
But i keep getting this error
ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
If anyone have an idea on how to get past this one.
The text was updated successfully, but these errors were encountered: