You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting an error when trying to use ArgoCD to decrypt a sealed secret for Dockerconfigjson
I am using a helm chart to pass in the dockerconfigjson value so that it will be used to create a pullsecret and mounted into a pod.
When I pass in the raw yaml into the templates directory it works fine. But when I pass it into the values.yaml file for interpolation I get this error from ArgoCD
ErrUnsealFailed
Failed to unseal: no key could decrypt secret (.dockerconfigjson)
12
I have confirmed the set up for sealedsecret is working fine because other sealed secrets work fine. It is just the dockerconfigjson one that does not decrypt
This is a snippet of the values.yaml file
secret:
# If enabled is false, then the template that uses this value will not be deployedsslTmplRequired:
enabled: false# To test HELM ARGO CD for repo secrettestimage_name: robot-pull-secrettestconfigjson: *****# repo-metadata-secret.yamlimagePullSecrets_name: stage-alfaapi-pull-secretdockerconfigjson: ******
And this is the corresponding file in the templates directory it should render
Generate a sealed secret with a dockerconfig.json ( using kubeseal )
Use the values.yaml to pass in the encrypted value for config.Json
Commit and push up to a repo monitored by argocd
Sync with ArgoCD
Expected behavior
ArgoCD will Sync with no issues. The sealed secret should create the corresponding secret
Screenshots
Version
argocd version
argocd: v2.5.5+fc3eaec
BuildDate: 2022-12-16T16:34:36Z
GitCommit: fc3eaec6f498ddbe49a5fa9d215a219191fba02f
GitTreeState: clean
GoVersion: go1.18.9
Compiler: gc
Platform: linux/amd64
WARN[0000] Failed to invoke grpc call. Use flag --grpc-web in grpc calls. To avoid this warning message, use flag --grpc-web.
argocd-server: v2.12.0+ec30a48
Logs
Paste any relevant application logs here.
The text was updated successfully, but these errors were encountered:
Checklist:
argocd version
.Describe the bug
I am getting an error when trying to use ArgoCD to decrypt a sealed secret for Dockerconfigjson
I have confirmed the set up for sealedsecret is working fine because other sealed secrets work fine. It is just the dockerconfigjson one that does not decrypt
This is a snippet of the values.yaml file
And this is the corresponding file in the templates directory it should render
To Reproduce
Expected behavior
ArgoCD will Sync with no issues. The sealed secret should create the corresponding secret
Screenshots
Version
argocd version argocd: v2.5.5+fc3eaec BuildDate: 2022-12-16T16:34:36Z GitCommit: fc3eaec6f498ddbe49a5fa9d215a219191fba02f GitTreeState: clean GoVersion: go1.18.9 Compiler: gc Platform: linux/amd64 WARN[0000] Failed to invoke grpc call. Use flag --grpc-web in grpc calls. To avoid this warning message, use flag --grpc-web. argocd-server: v2.12.0+ec30a48
Logs
The text was updated successfully, but these errors were encountered: