Forked from https://github.com/singuliere/vault-keepass-import/tree/master/vault_keepass_import
Read the documentation.
Adds one option to skip the default metadata with the --skip-default-metadata
switch. This removes the UUID, time metadata and icon field from the entry when writing to HashiCorp Vault.
NOTE: This package requires Python versions 3.7 and newer.
It is recommended to install the packages in a virtual environment.
The easiest way of installing the package is by using the setup script:
./setup.sh
The vault-keepass-import
executable will be installed to $HOME/local/bin
. This can be added to the PATH
environment variable to make it easier to call.
To import a keepass file, run the following command:
$HOME/local/bin/vault-keepass-import \
--lowercase \
--skip-default-metadata \
--mount-point <secret mount point> \
--prefix <path under mount point> \
--address <vault server> \
--token <vault token> \
--password <keepass password> \
<path to keepass file>
lowercase
: change all path values to lowercaseskip-default-metadata
: removes the KeePass UUID and time metadata from the entries imported into Vaultprefix
: location to put the entries in: put them always into organizations/ in lower casepassword
: The password for the KeePass file that will be importedtoken
: a token with access to write the values, can be a root token