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
$ echo FOO=secret >secret-vars.env
$ sops -e -i secret-vars.env
$ cat secret-vars.env | SopsSecretGenerator
failed to evaluate function: failed to parse input bytes: failed to extract objects: unhandled node kind 8failed to parse input bytes: failed to extract objects: unhandled node kind 8
SopsSecretGenerator is a Kustomize generator plugin that generates Secrets from sops-encrypted files.
This plugin supports legacy Kustomize plugin style as well KRM Functions style.
Note:
The usage examples here are for standalone execution. If the plugin is used via Kustomize,
then Kustomize will handle passing data to the plugin.
Usage:
- Legacy: SopsSecretGenerator SopsSecretGenerator.yaml
- KRM: cat ResourceList.yaml | SopsSecretGenerator
$ SopsSecretGenerator secret-vars.env
Error: yaml: unmarshal errors:
line 1: cannot unmarshal !!str `FOO=ENC...` into main.SopsSecretGenerator
The text was updated successfully, but these errors were encountered:
I think I was trying to encrypt some secrets for storing in git, so that later they could be read by kustomize + sops.
But I've moved to other solutions.
First time working with sops.
The text was updated successfully, but these errors were encountered: