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

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
 
  sops --encrypt --gcp-kms only-one-file
 
  sops --encrypt --gcp-kms only-one-file
 
  [[Error: no file specified]]
 
  [[Error: no file specified]]
 +
 +
 +
Exporting your key:
 +
* <code>export [[SOPS_GCP_KMS]]="projects/your-project/locations/global/keyRings/your-keyring/cryptoKeys/your-sops-encryption-key"</code>
 +
  
  

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


Exporting your key:

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


Related

See also

Advertising: