Simple CLI tool to handle encrypted secrets, heavily inspired in Symfony Secrets.
With undisclosed
you can set and store your credentials encrypted, and dump it in plain whenever you want.
Execute undisclosed init
to create a default config file template and the folder to store the keys.
With undisclosed generate-keypair
you will generate your keypair. It will be used to encrypt all your data.
$ undisclosed generate-keypair
βββββββββββ¬ββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββ
β (index) β type β path β value β
βββββββββββΌββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββ€
β 0 β 'public' β '/Users/mangel/Workspace/test/public.pem' β '-----BEGIN RSA PUBLI...' β
β 1 β 'private' β '/Users/mangel/Workspace/test/private.pem' β '-----BEGIN RSA PRIVA...' β
βββββββββββ΄ββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββ
With undisclosed list
you can list the secrets you previously stored.
$ undisclosed list
βββββββββββ¬βββββββββ¬ββββββββββββββββββββββββββββ
β (index) β key β value β
βββββββββββΌβββββββββΌββββββββββββββββββββββββββββ€
β 0 β 'USER' β 'XdnN70UTz1adJZIVUcb1...' β
βββββββββββ΄βββββββββ΄ββββββββββββββββββββββββββββ
With undisclosed set KEY value
you can store a new secret or update an existing one.
$ undisclosed set USER root
βββββββββββ¬βββββββββ¬ββββββββββββββββββββββββββββ
β (index) β key β value β
βββββββββββΌβββββββββΌββββββββββββββββββββββββββββ€
β 0 β 'USER' β 'XdnN70UTz1adJZIVUcb1...' β
βββββββββββ΄βββββββββ΄ββββββββββββββββββββββββββββ
With undisclosed get KEY
you can retrieve a secret value.
$ undisclosed get USER
βββββββββββ¬βββββββββ¬βββββββββ
β (index) β key β value β
βββββββββββΌβββββββββΌβββββββββ€
β 0 β 'USER' β 'root' β
βββββββββββ΄βββββββββ΄βββββββββ
With undisclosed delete KEY
you can delete a secret.
$ undisclosed delete USER
Secret deleted.
With undisclosed dump
you can dump all the stored secrets decrypted into a .env
file.