Difference between revisions of "Sops --encrypt"

From wikieduonline
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  
sops [[--encrypt]], -e   
+
* <code>sops [[--encrypt]], -e</code> 
 +
* <code>[[sops --encrypt --in-place]] your_file</code>
 +
* <code>[[sops --encrypt --gcp-kms]]</code>
 +
 
 +
== Examples ==
 +
  <code>[[sops --encrypt --in-place]] your_file</code>
 +
(no output)
 +
 
 +
sops --encrypt --in-place [[--unencrypted-regex]] '^(description|metadata)$' k8s-secret.yaml
 +
(no output)
 +
 
 +
sops --encrypt [[--encrypted-regex]] '^(data|stringData)$' app-secret.yaml
 +
(no output)
 +
 
 +
[[sops --encrypt --in-place]] --encrypted-regex '^(secrets)$' your-secrets_dev.yaml
  
 
== Related ==
 
== Related ==
 +
* <code>[[sops --decrypt]]</code>
 +
 
* To create file using [[GCP]]: <code>[[sops --gcp]] /your/path/to/your/sops-encryption-key test.yaml</code>
 
* To create file using [[GCP]]: <code>[[sops --gcp]] /your/path/to/your/sops-encryption-key test.yaml</code>
  
 
== See also ==
 
== See also ==
 
* {{sops}}
 
* {{sops}}
 +
* {{SOPS}}
  
 
[[Category:Secrets]]
 
[[Category:Secrets]]

Latest revision as of 07:18, 24 November 2022

Examples[edit]

sops --encrypt --in-place your_file
(no output)
sops --encrypt --in-place --unencrypted-regex '^(description|metadata)$' k8s-secret.yaml
(no output)
sops --encrypt --encrypted-regex '^(data|stringData)$' app-secret.yaml
(no output)
sops --encrypt --in-place --encrypted-regex '^(secrets)$' your-secrets_dev.yaml

Related[edit]

  • To create file using GCP: sops --gcp /your/path/to/your/sops-encryption-key test.yaml

See also[edit]

Advertising: