This service exposes secrets and usernames from a KeePass database file through a webservice interface.
This way, secrets and usernames can be queried using curl
.
For security reasons, data read from the KeePass database is encrypted in memory.
Usage of secrets in direnv
:
GITLAB_TOKEN="$(curl --silent "http://localhost:8123/access-keys/GitLab/GitLab-API-Token-Shell/secret")"
The same way you may obtain the username of an entry:
GITLAB_TOKEN="$(curl --silent "http://localhost:8123/access-keys/GitLab/GitLab-API-Token-Shell/username")"
You may want to start the service in background using the following command:
nohup seekret-service --keepass-path "/path/to/keepassfile.kdbx" > /dev/null 2>&1 &
For further help please run:
seekret-service --help