@mikxail/sops-secrets-js

0.0.2 • Public • Published

About

Utilities for working with SopSecrets(https://github.com/isindir/sops-secrets-operator).

Installation

npm i -g @Mikxail/sops-secrets-js

Available utilites

  1. sops-js - sops wrapper. https://github.com/mozilla/sops
  2. age-keygen-js - age-keygen wrapper. https://github.com/FiloSottile/age
  3. sops-secrets-js - main utilities for create and edit SopsSecret encoded files

Usage

Init secrets in project

  1. cd .helm directory
  2. sops-secrets-js init templates/secrets.enc.yaml - create personal private & public keys, create encoded secret file
  3. sops-secrets-js edit templates/secrets.enc.yaml - edit and save
  4. 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

Readme

Keywords

none

Package Sidebar

Install

npm i @mikxail/sops-secrets-js

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

28.3 kB

Total Files

7

Last publish

Collaborators

  • mikxail