Difference between revisions of "Sops --encrypt --gcp-kms"

From wikieduonline
Jump to navigation Jump to search
Line 16: Line 16:
 
* <code>export [[SOPS_GCP_KMS]]="projects/your-project/locations/global/keyRings/your-keyring/cryptoKeys/your-sops-encryption-key"</code>
 
* <code>export [[SOPS_GCP_KMS]]="projects/your-project/locations/global/keyRings/your-keyring/cryptoKeys/your-sops-encryption-key"</code>
 
* [[KMS]]
 
* [[KMS]]
* <code>export SOPS_GCP_KMS_IDS=projects/your-project/locations/global/keyRings/sops/cryptoKeys/your-sops-encryption-key</code>
 
  
 
== See also ==
 
== See also ==

Revision as of 08:00, 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

See also

Advertising: