Open marcuskrantz opened 1 year ago
@marcuskrantz there was a similar issue against gitlab previously and we worked through the format of the credentials to make it work. Have you validated if you can bootstrap that repository manually through ArgoCD UI? E.g. defining credentials and repo through the web interface?
@shapirov103 Yes, we've tried adding the repo from ArgoCD with the same credentials as stored in AWS Secrets Manager and that works.
@marcuskrantz I suspect it is a defect that may have been caused by the secret name containing "/" characters. The kubernetes secret name that is created through the CSI Secret Store uses that name and that character might be escaped in some way. While it is still a defect, do you mind trying (as a workaround) a secret name in AWS that does not have "/" and is a valid kubernetes object name, e.g. "argocd-bootstrap-token"?
@shapirov103 That solved the issue! Thanks for your input in this. However, we still think this should be seen as a workaround since example secrets in AWS secrets manager are stated like "prod/.../.../secret-x".
It is a workaround, I will use this issue to fix the secret name mapping issue.
@shapirov103 Is this still an open issue?
Describe the bug
ArgoCDAddOn cannot synchronize bootstrap repository with credentials from AWS Secrets Manager of type TOKEN
Expected Behavior
ArgoCDAddOn should be able to synchronzie the bootstrap repository.
Current Behavior
The repository is added to argo cd but with status error:
rpc error: code = Unknown desc = authentication required
Reproduction Steps
Possible Solution
No response
Additional Information/Context
The
targetRevision
is set to an existing branch in the bootstrap repository and according to source code this should work. However, a status message in Argo CD says:Unknown aws-sandbox-eu-west-1
CDK CLI Version
v2.53.0
EKS Blueprints Version
v1.5.1
Node.js Version
v14.19.3
Environment details (OS name and version, etc.)
Fedora 37
Other information
No response