Difference between revisions of "Sops --encrypt --gcp-kms"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | You can define your key using <code>--gcp-kms</code> option or by defining a <code>[[SOPS_GCP_KMS]]</code> [[environment variable]] | ||
[[sops --encrypt]] --gcp-kms | [[sops --encrypt]] --gcp-kms | ||
[[sops --encrypt --gcp-kms]] $[[KMS_PATH]] secret.yaml > secret.enc.yaml | [[sops --encrypt --gcp-kms]] $[[KMS_PATH]] secret.yaml > secret.enc.yaml |
Revision as of 07:58, 22 November 2022
You can define your key using --gcp-kms
option or by defining a SOPS_GCP_KMS
environment variable
sops --encrypt --gcp-kms sops --encrypt --gcp-kms $KMS_PATH secret.yaml > secret.enc.yaml sops --encrypt
sops --encrypt --gcp-kms only-one-file Error: no file specified
Related
sops --decrypt --gcp-kms
SOPS_GCP_KMS
environment variable- KMS
export SOPS_GCP_KMS_IDS=projects/your-project/locations/global/keyRings/sops/cryptoKeys/your-sops-encryption-key
See also
- 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: