Config Vault (cfgvault)
Config Vault exposes a Rest interface to retrieve secrets from a KeePass keystore.
A Configuration Vault Service
cfgvault is a minimalistic configuration vault for your application secrets.
Quick Start
Minimal Configuration File
Create the following example configuration file:
$ cat $HOME/.config/cfgvault/config.json
{
"endpoint":"127.0.0.1:8080",
"keystore":"/path/to/keystore.kdbx",
"secretkey":"/path/to/secretkey.keyx"
}
this is the minimal configuration file needed to test cfgvault locally over http or behind a reverse proxy.
The keystore and secretkey files must be created beforehand with KeePass or some compatible tool.
A proper configuration file for a production deployment should include TLS certificates and keys.
$ cat $HOME/.config/cfgvault/config.json
{
"endpoint":"127.0.0.1:8433",
"keystore":"/path/to/keystore.kdbx",
"secretkey":"/path/to/secretkey.keyx",
"server_tls_certificate":"/path/to/server.crt",
"server_tls_key":"/path/to/server.key"
}
You can enable mutual TLS by providing a CA certificate to validate client certificates against, and switching mutual authentication on:
$ cat $HOME/.config/cfgvault/config.json
{
"endpoint":"127.0.0.1:8433",
"keystore":"/path/to/keystore.kdbx",
"secretkey":"/path/to/secretkey.keyx",
"server_tls_certificate":"/path/to/server.crt",
"server_tls_key":"/path/to/server.key",
"server_ca":"/path/to/ca.crt",
"validate_client_cert":true
}
The application allows you also to specify an array of IP subnets that are allowed to connect to the service:
$ cat $HOME/.config/cfgvault/config.json
{
"endpoint":"127.0.0.1:8080",
"keystore":"/path/to/keystore.kdbx",
"secretkey":"/path/to/secretkey.keyx",
"server_tls_certificate":"/path/to/server.crt",
"server_tls_key":"/path/to/server.key",
"allowlist":["127.0.0.1/8","10.2.3.4/24"],
"server_ca":"/path/to/ca.crt",
"validate_client_cert":true
}
All IP addresses not in the allowlist will be rejected with a 403 Forbidden response.
Building cfgvault
cd cfgvault
cargo build --release
Running cfgvault
You can just run the executable:
$ ./target/release/cfgvault
License
cfgvault is authored by Paolo Lulli 2026 and is publicly available under the Affero GPL license.