About
Utilities for working with SopSecrets(https://github.com/isindir/sops-secrets-operator).
Installation
npm i -g @Mikxail/sops-secrets-js
Available utilites
-
sops-js
- sops wrapper. https://github.com/mozilla/sops -
age-keygen-js
- age-keygen wrapper. https://github.com/FiloSottile/age -
sops-secrets-js
- main utilities for create and edit SopsSecret encoded files
Usage
Init secrets in project
-
cd .helm
directory -
sops-secrets-js init templates/secrets.enc.yaml
- create personal private & public keys, create encoded secret file -
sops-secrets-js edit templates/secrets.enc.yaml
- edit and save - profit
Help
sops-secrets-js --help
Some commands
sops-js [SOPS OPTIONS]
sops-secrets-js age-keygen
sops-secrets-js init-keygen [keys.txt]
sops-secrets-js init-recipients [-k keys.txt] [.recipients.txt]
sops-secrets-js init-encrypted [sops-secret.enc.yaml]
sops-secrets-js init [sops-secret.enc.yaml]
sops-secrets-js decrypt [-k keys.txt] sops-secret.enc.yaml
sops-secrets-js encrypt [-r fp1,fp2] [-R fp_file.txt] sops-secret.yaml
sops-secrets-js edit [-k keys.txt] [-r fp1,fp2] [-R fp_file.txt] sops-secret.enc.yaml
sops-secrets-js get-secret [-k keys.txt] SECRET_NAME sops-secret.env.yaml
sops-secrets-js get-value [-k keys.txt] SECRET_NAME KEY sops-secret.env.yaml
sops-secrets-js set-value [-r fp1,fp2] [-R fp_file.txt] [-o] [-f] SECRET_NAME KEY VALUE|- sops-secret.yaml
sops-secrets-js del-value [-r fp1,fp2] [-R fp_file.txt] [-o] SECRET_NAME KEY sops-secret.yaml
#sops-secrets-js edit-value [-r fp1,fp2] [-R fp_file.txt] [-o] SECRET_NAME KEY sops-secret.yaml
sops-secrets-js recipients [-R fp_file.txt] sops-secret.enc.yaml