Open dmitry-mightydevops opened 5 months ago
I think it's a good idea to persist at least references to the cert/key combination.
Meanwhile, you should be able to set the ARGOCD_OPTS
environment variable with the required parameters before calling argocd
CLI, like so:
$ export ARGOCD_OPTS="--client-crt /home/dmitry/.tsh/keys/teleport.project.com/user-app/teleport.project.com/argo-cd-x509.pem --client-crt-key /home/dmitry/.tsh/keys/teleport.project.com/user"
@jannfis I'm aware about ARGOCD_OPTS
, however when working in multi-project environment and opening multi-shells it requires to copy past this command in each shell as I switch between clusters.
Summary
Persist and reuse client certificates if they were using in
argocd login
call.--client-crt
--client-crt-key
Motivation
Argocd runs behind teleport.
I am able to login via argocd cli passing two args above, but then any other CLI commands result in
grpc error: code = Unknown desc = unexpected EOF
error if certs are not passed:and errors:
but when all certs are passed, all is good:
Proposal
Is it possible to persist the certs arguments when
argocd login
is executed, so that future commands do not require certs to be passed.