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
Now I receive the error kustomize build .infrastructure/kustomizations/external-secrets-stores --enable-alpha-plugins --enable-exec failed exit status 1: failed to evaluate function: error decrypting file "./secrets/secret-doppler-auth-cert-manager.enc.yml" from manifest.Files: trouble decrypting file: Error getting data key: 0 successful groups required, got 0unable to generate manifests: error decrypting file "./secrets/secret-doppler-auth-cert-manager.enc.yml" from manifest.Files: trouble decrypting file: Error getting data key: 0 successful groups required, got 0Error: couldn't execute function: exit status 1
I also tried to exec into the pod and manually run kustomize build --enable-alpha-plugins --enable-exec . but it throws the same error. Also my GOOGLE_APPLICATION_CREDENTIALS are set correctly referring to a service account.
I verified the account permissions locally by doing the following:
Set GOOGLE_APPLICATION_CREDENTIALS accordingly.
Remove all permissions of the account and run kustomize.
This is failing with the same error.
Add the CryptoKey Encrypter/Decrypter permission (again) and run kustomize.
The secrets get decrypted successfully.
Hence, the service account permissions are correctly set to be able to encrypt/decrypt the secrets.
I also tried setting GOOGLE_CREDENTIALS but the same error occurs as well.
The version used are:
ArgoCD: 2.6.7
kustomize: v5.0.1+ksops.v4.1.1
For your reference, my kustomization files look like this. kustomization.yaml:
I finally got this resolved and my issue was two-fold:
1/ My server's date and time were out of sync which probably resulted in GCP not accepting authentication secrets.
2/ getsops/sops#1151 - I explicitly needed to set GOOGLE_CREDENTIALS for the repo server as GOOGLE_APPLICATION_CREDENTIALS did not work for me.
I have installed ArgoCD using the Helm Chart custom tooling resulting in my Helm
values.yaml
file like this:Now I receive the error
kustomize build .infrastructure/kustomizations/external-secrets-stores --enable-alpha-plugins --enable-exec failed exit status 1: failed to evaluate function: error decrypting file "./secrets/secret-doppler-auth-cert-manager.enc.yml" from manifest.Files: trouble decrypting file: Error getting data key: 0 successful groups required, got 0unable to generate manifests: error decrypting file "./secrets/secret-doppler-auth-cert-manager.enc.yml" from manifest.Files: trouble decrypting file: Error getting data key: 0 successful groups required, got 0Error: couldn't execute function: exit status 1
I also tried to exec into the pod and manually run
kustomize build --enable-alpha-plugins --enable-exec .
but it throws the same error. Also myGOOGLE_APPLICATION_CREDENTIALS
are set correctly referring to a service account.I verified the account permissions locally by doing the following:
GOOGLE_APPLICATION_CREDENTIALS
accordingly.kustomize
.CryptoKey Encrypter/Decrypter
permission (again) and runkustomize
.Hence, the service account permissions are correctly set to be able to encrypt/decrypt the secrets.
I also tried setting
GOOGLE_CREDENTIALS
but the same error occurs as well.The version used are:
2.6.7
v5.0.1+ksops.v4.1.1
For your reference, my kustomization files look like this.
kustomization.yaml
:secret-generator.yml
:secret.yml
:Now I have no idea anymore on why (k)sops doesn't pick up the credentials in the ArgoCD pod correctly, and would welcome any suggestions.
The text was updated successfully, but these errors were encountered: