skaffold icon indicating copy to clipboard operation
skaffold copied to clipboard

useHelmSecrets not decrypting on render

Open panbanda opened this issue 3 years ago • 0 comments

Expected behavior

skaffold render should produce the same output as skaffold up for secrets that are used with useHelmSecrets: true

Actual behavior

skaffold render does not decrypt the secret, skaffold up does decrypt the secret

Information

Demo repo here:

https://github.com/panbanda/skaffold-helm-secrets-issue

Steps to reproduce the behavior

# Install SOPS sample gpg key
gpg --import pgp/sops_test_key.asc

# Encrypted with 
sops -e -i secrets.yaml

# Decrypted with 
sops -d -i secrets.yaml

# Skaffold dev puts the secret in container decrypted
# ie: test
skaffold dev

# Skaffold render creates a kube secret manifest with encrypted string
# ie: ENC[AES256_GCM,data:SyyH6w==,iv:CbNC...
skaffold render

panbanda avatar Jul 15 '22 09:07 panbanda