SOPS requires an explicit filename even for stdin#651
Open
abth wants to merge 1 commit intofluxcd:mainfrom
Open
SOPS requires an explicit filename even for stdin#651abth wants to merge 1 commit intofluxcd:mainfrom
abth wants to merge 1 commit intofluxcd:mainfrom
Conversation
Signed-off-by: Andreas Bärnthaler <[email protected]>
29312d9 to
4d0dcfc
Compare
abth
commented
May 13, 2022
| 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 |
Author
There was a problem hiding this comment.
Adding /dev/stdin was necesary for me to make the commands work (tried it with SOPS 3.7.1 and 3.7.2).
Dropping the cat was meant to simplify the command. I can put it back in if someone prefers the old version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In some sops examples for the kustomize secretGenerator I had to add
/dev/stdinas an argument to make the examples work.