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

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
[[sops --encrypt]] [[--gcp-kms]]
+
<code>[[sops --encrypt]] [[--gcp-kms]]</code>
  
 
You can define your key using <code>--gcp-kms</code> option or by defining a <code>[[SOPS_GCP_KMS]]</code> [[environment variable]]
 
You can define your key using <code>--gcp-kms</code> option or by defining a <code>[[SOPS_GCP_KMS]]</code> [[environment variable]]

Revision as of 07:05, 24 November 2022

sops --encrypt --gcp-kms

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

Exporting your key:

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

Examples

Errors

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

Related

See also

Advertising: