Difference between revisions of "Sops --encrypt"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
* <code>[[sops --encrypt --in-place]] your_file</code> | * <code>[[sops --encrypt --in-place]] your_file</code> | ||
* <code>[[sops --encrypt --gcp-kms]]</code> | * <code>[[sops --encrypt --gcp-kms]]</code> | ||
+ | |||
+ | == Examples == | ||
+ | <code>[[sops --encrypt --in-place]] your_file</code> | ||
+ | (no output) | ||
sops --encrypt --in-place [[--unencrypted-regex]] '^(description|metadata)$' k8s-secret.yaml | sops --encrypt --in-place [[--unencrypted-regex]] '^(description|metadata)$' k8s-secret.yaml | ||
+ | (no output) | ||
sops --encrypt [[--encrypted-regex]] '^(data|stringData)$' app-secret.yaml | sops --encrypt [[--encrypted-regex]] '^(data|stringData)$' app-secret.yaml | ||
+ | (no output) | ||
+ | [[sops --encrypt --in-place]] --encrypted-regex '^(secrets)$' your-secrets_dev.yaml | ||
== Related == | == Related == |
Latest revision as of 07:18, 24 November 2022
sops --encrypt, -e
sops --encrypt --in-place your_file
sops --encrypt --gcp-kms
Examples[edit]
sops --encrypt --in-place your_file
(no output)
sops --encrypt --in-place --unencrypted-regex '^(description|metadata)$' k8s-secret.yaml (no output)
sops --encrypt --encrypted-regex '^(data|stringData)$' app-secret.yaml (no output)
sops --encrypt --in-place --encrypted-regex '^(secrets)$' your-secrets_dev.yaml
Related[edit]
- To create file using GCP:
sops --gcp /your/path/to/your/sops-encryption-key test.yaml
See also[edit]
- SOPS,
sops | sops -d | sops -e | sops exec-env | sops exec-file | sops publish | sops keyservice | sops groups | sops updatekeys | sops --help
- SOPS: Secrets OPerationS,
sops
, GCP,ENC[AES256_GCM, sops-secrets-operator
Advertising: