Password encryption
OpenAEV 2.1.0 encrypts the secrets of integrations stored in its database and needs two new mandatory settings, an encryption key and a salt.
From OpenAEV 2.1.0, the integrations of the catalog are managed from the OpenAEV interface, and their configuration is stored in the database. OpenAEV encrypts the passwords and secrets of that configuration, which needs two new mandatory settings. This page gives them and how to set them.
- Encryption key → OpenAEV: set before start
- Encryption salt → OpenAEV: set before start
- OpenAEV ↔ Integration configuration: encrypts and reads
- Encryption key → Your backups: keep a copy
- Encryption salt → Your backups: keep a copy
| Version | |
|---|---|
| Introduced in | OpenAEV 2.1.0 |
The two settings
| Parameter | Environment variable | Default | Description |
|---|---|---|---|
openaev.admin.encryption_key | OPENAEV_ADMIN_ENCRYPTION_KEY | None, mandatory | Key used with the salt to derive the 256-bit key that encrypts sensitive data in the database |
openaev.admin.encryption_salt | OPENAEV_ADMIN_ENCRYPTION_SALT | None, mandatory | Salt used with the key. At least 8 bytes long |
Set them
Set both before you start OpenAEV 2.1.0 or later. With xtm-docker, they are in .env.
-
Check whether
.envalready gives them a value.grep -E '^OPENAEV_ADMIN_ENCRYPTION_(KEY|SALT)=[^ #]' .envIf it prints both lines, keep them and stop here: OpenAEV needs the same values to read the secrets it has already encrypted.
-
Otherwise, generate a key and a salt and write them to
.env.sed -i.bak -e "s|^OPENAEV_ADMIN_ENCRYPTION_KEY=.*|OPENAEV_ADMIN_ENCRYPTION_KEY=$(openssl rand -hex 32)|" \ -e "s|^OPENAEV_ADMIN_ENCRYPTION_SALT=.*|OPENAEV_ADMIN_ENCRYPTION_SALT=$(openssl rand -hex 16)|" .envCheck that it workedgrep -E '^OPENAEV_ADMIN_ENCRYPTION_(KEY|SALT)=[^ #]' .envIt prints both lines, each with a value.
-
Start OpenAEV again:
docker compose up -d openaev.
Keep a copy of both values with your backups: without them, OpenAEV cannot read the secrets it has encrypted.
What's next
- OpenAEV configuration reference, every OpenAEV setting.
- Breaking changes, the other changes per version.