Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOPS requires an explicit filename even for stdin #651

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abth
Copy link

@abth abth commented May 13, 2022

In some sops examples for the kustomize secretGenerator I had to add /dev/stdin as an argument to make the examples work.

@abth abth force-pushed the fix-sops-secretGenerator-example branch from 29312d9 to 4d0dcfc Compare May 13, 2022 13:04
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
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant