secretscli

command
v0.0.0-...-d325f09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2022 License: BSD-3-Clause, ISC Imports: 17 Imported by: 0

README

secretscli

An interactive secrets client

This is an interactive secrets manager that acts on the same secret stores used by the other tools in this collection. It offers a subset of the functions provided by the secrets utility, but does so interactively. To whit:

~/src/github.com/kisom/cryptutils/cmd/secretscli
(0) <straka:kyle> $ secrets -f secrets.db -i -init 
Secrets passphrase> 
creating store...
~/src/github.com/kisom/cryptutils/cmd/secretscli
(0) <straka:kyle> $ secretscli -f secrets.db -i 
Passphrase to unlock secrets.db: 
secrets.db command> list
Key store: 0 keys
secrets.db command> store mail db
[+] Storing secret for mail
New password: 
[+] Storing secret for db
New password: 
secrets.db command> wmeta db
Enter metadata; use an empty line to indicate that you are done.
key = value: host = db.local
key = value: user = db-user
key = value: name = blatdb 
key = value: 
secrets.db command> wmeta db 
Enter metadata; use an empty line to indicate that you are done.
key = value: name = blat-db
Note: replacing previous value of 'blatdb'
key = value: 
secrets.db command> store db
[+] Storing secret for db
db exists. Overwrite secret (y/n)? n
Not overwriting.
secrets.db command> store db
[+] Storing secret for db
db exists. Overwrite secret (y/n)? y
New password: 
secrets.db command> [+] storing secret store...
~/src/github.com/kisom/cryptutils/cmd/secretscli
(0) <straka:kyle> $ 

There's a help system too; enter the "help" command to see all the supported commands.

The UI is admittedly weak for other people, but this is what I wanted.

The tool will timeout after an adjustable period of time (5 minutes), relocking the secret store and exiting.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL