Describe the bug
As per documentation ( https://argoproj.github.io/argo-cd/operator-manual/sso/ ) I tried hiding the secret value clientSecret in the argocd-secret resource. The authentication fails because additional characters are added to the clientSecret value when using $dex.google.clientSecret notation.
To Reproduce
data:
url: https://argocd.example.com
dex.config: |
connectors:
- type: oidc
id: google
name: Google
config:
issuer: https://accounts.google.com
clientID: redacted-string.apps.googleusercontent.com
clientSecret: $dex.google.clientSecret
dex.google.clientSecret: base64-string-from-aboveclientSecret: |\n string-from-aboveExpected behavior
The value should be clientSecret: string-from-above
If the value is set directly in argocd-cm the dex server works as expected!
Version
Both: 0.12.2 and 1.1.1
Not familiar with golang but I can try debugging this myself if you want.
Nevermind, the additional characters were introduced by an automated base64 encoding for secret values.... Closing!
I had this issue too using echo $someValue | base64, however this generates a new line - the correct method is to use echo -n $someValue | base64