Helm Wrapper with Sops written in Go, which decrypts encrypted value files with Sops
Helm is required for the wrapper to work: to install helm. Make sure to add Helm to your $PATH for the wrapper to work.
you can build using the command.
$> go build
This wrapper checks for Helm in $PATH.
If you decide to rename sops-helm-wrapper as Helm you can rename helm
as _helm
and make sure that _helm path in in you **$PATH
Create a secrets values file secrets.yaml
and encrypt it with sops
Use the wrapper to decrypt:
$> sops-helm-wrapper template . --values ./secrets.yaml`
or
$> helm template . --values ./secrets.yaml
if you are using the wrapper as helm.
The wrapper uses sops decrypt.go
to decrypt any encrypted values file before invoking helm
Encrypted values must match the following RegEx:
^((.*)\.secrets\.y(a)?ml)$