Skip to content

Commit

Permalink
SOPS requires an explicit filename even for stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Bärnthaler committed May 13, 2022
1 parent 8779722 commit 29312d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/spec/v1beta2/kustomization.md
Original file line number Diff line number Diff line change
Expand Up @@ -1365,9 +1365,9 @@ them on the cluster.
For secrets in `.json`, `.yaml` and `.env` format, make sure you specify the input type when encrypting them with SOPS:

```sh
cat config.json | sops -e --input-type=json > config.json.encrypted
cat config.yaml | sops -e --input-type=yaml > config.yaml.encrypted
cat config.env | sops -e --input-type=env > config.env.encrypted
sops -e --input-type=json /dev/stdin < config.json > config.json.encrypted
sops -e --input-type=yaml /dev/stdin < config.yaml > config.yaml.encrypted
sops -e --input-type=env /dev/stdin < config.env > config.env.encrypted
```

For kustomize-controller to be able to decrypt a JSON config, you need to set the file extension to `.json`:
Expand Down

0 comments on commit 29312d9

Please sign in to comment.