SAFE-AGENT(1) | General Commands Manual | SAFE-AGENT(1) |
safe-agent
—
decryption key agent
safe-agent |
[-hdv ] [-t
timeout] [-f
socket] |
safe-agent
can retain a derivated key and
its salt in memroy, and send it over a UNIX-domain socket to whichever
process can read this socket.
Pushing a key and its salt is done by writing them to the socket. The retained key can be instantly forgotten by sending signal SIGUSR1 or SIGALRM to the running agent.
-h
-d
-v
safe-agent
will print
debugging messages to stderr. This is useful to troubleshoot connection
issues between the agent and the client.-t
timeout-f
socketThe agent prints will print commands ( sh(1)) to stdout, that can be evaluated by the calling shell for exportation to the environment.
Later calls to safe(1) will use these environment variables internally to retrieve the key and use it to encrypt/decrypt the stored secrets.
Retrieve a secret from your safe, using the agent
$ eval $(safe-agent) $ safe -r password: $ safe secret/file > kitten.gif
Willy Goiffon <dev@z3bra.org>
2019-06-08 | POSIX.1-2017 |