Argo-cd: Allow adding repo with public key from the GUI

Created on 22 May 2019  路  5Comments  路  Source: argoproj/argo-cd

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:

  • create a secret with the ssh private key for the repo access
  • edit the argocd-cm configmap and add the repository by hand, referencing the configmap, like this:
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.

enhancement help wanted

All 5 comments

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

Was this page helpful?
0 / 5 - 0 ratings