Is your feature request related to a problem? Please describe.
Currently I am deploying applications from a private git repository and I want to use ssh private keys for argocd to access the repo.
To configure the public key I have to:
repositories:
- url: [email protected]:username/reponame.git
sshPrivateKeySecret: username-reponame-gitkey
Describe the solution you'd like
I would like it to be an option on the GUI to configure a git repository that is accessed through ssh with a private key.
eg. a way of configuring a repo with ssh url and private key file instead of url and username/password.
Describe alternatives you've considered
Alternative is that I keep using kubectl to set up the secret and argocd config map.
To configure the public key I have to:
Actually the CLI supports doing what you are asking, but the UI doesn't. So the steps you are currently doing could have been:
argocd repo add [email protected]:username/reponame.git --ssh-private-key-path ~/.ssh/id_rsa
instead of hand-editing the config.
That said the UI should reach feature parity with CLI.
Actually I manage argocd configmap with argocd as well (DAM, argocd deploying itself as well ;)), but I would imagine if someone wants to do this on the GUI they would be disappointed and give up early on.
That's why I think that feature is so important, since I am guessing a lot of people are using private github repos.
@reegnz we 'gave up early' too because of the GUI. Thanks for this issue. Now we know the CLI can handle it. Having it available through the GUI would be a nice improvement though.
Working on it
Implemented by https://github.com/argoproj/argo-cd/pull/2043