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
We use sops extensively with terraform and ansible.
Often we have a scenario where we want to generate some secret with a tool and add it to a sops encrypted file under a key immediately.
For example: generating ssh keys, generate rsa keys.
The current workflow looks like:
$ openssl genrsa 4096 # key is printed to screen
# copy key to clipboard
$ sops path/to/file.sops.yml
# edit file and paste the key
The desired workflow would look like:
$ openssl genrsa 4096 | sops --set '["app1"]["key"]' path/to/file.sops.yml
# generate another one and store under a different key!
$ openssl genrsa 4096 | sops --set '["app2"]["key"]' path/to/file.sops.yml
Less user friendly but equally useful would be:
$ openssl genrsa 4096 | sops --set '["app1"]["key"]' --value-file /dev/stdin path/to/file.sops.yml
# generate another one and store under a different key!
$ openssl genrsa 4096 | sops --set '["app2"]["key"]' --value-file /dev/stdin path/to/file.sops.yml
The text was updated successfully, but these errors were encountered:
We use sops extensively with terraform and ansible.
Often we have a scenario where we want to generate some secret with a tool and add it to a sops encrypted file under a key immediately.
For example: generating ssh keys, generate rsa keys.
The current workflow looks like:
The desired workflow would look like:
Less user friendly but equally useful would be:
The text was updated successfully, but these errors were encountered: