sops --encrypt --gcp-kms

From wikieduonline
Revision as of 08:06, 22 November 2022 by Welcome (talk | contribs)
Jump to navigation Jump to search

sops --encrypt --gcp-kms

You can define your key using --gcp-kms option or by defining a SOPS_GCP_KMS environment variable

Examples

sops --encrypt --gcp-kms $KMS_PATH secret.yaml > secret.enc.yaml
sops --encrypt --gcp-kms $KMS_PATH --in-place secret.yam 


sops --encrypt --gcp-kms only-one-file
Error: no file specified


Exporting your key:

  • export SOPS_GCP_KMS="projects/your-project/locations/global/keyRings/your-keyring/cryptoKeys/your-sops-encryption-key"


Related

See also

Advertising: