Deploy
How-to guide

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.

OpenAEVFor platform engineers

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.

CONFIGURATION (.ENV)OPENAEV 2.1.0 AND LATERSTORAGEEncryption keyOPENAEV_ADMIN_ENCRYPTION_KEYEncryption saltOPENAEV_ADMIN_ENCRYPTION_SALT,at least 8 bytesOpenAEVDerives a 256-bit keyIntegration configurationPasswords and secrets encryptedYour backupsA copy of the key and the salt
  1. Encryption key → OpenAEV: set before start
  2. Encryption salt → OpenAEV: set before start
  3. OpenAEV ↔ Integration configuration: encrypts and reads
  4. Encryption key → Your backups: keep a copy
  5. Encryption salt → Your backups: keep a copy
From OpenAEV 2.1.0, a key and a salt set before the start let OpenAEV encrypt the secrets of integrations in its database, so keep both with your backups
Version
Introduced inOpenAEV 2.1.0

The two settings

ParameterEnvironment variableDefaultDescription
openaev.admin.encryption_keyOPENAEV_ADMIN_ENCRYPTION_KEYNone, mandatoryKey used with the salt to derive the 256-bit key that encrypts sensitive data in the database
openaev.admin.encryption_saltOPENAEV_ADMIN_ENCRYPTION_SALTNone, mandatorySalt 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.

  1. Check whether .env already gives them a value.

    grep -E '^OPENAEV_ADMIN_ENCRYPTION_(KEY|SALT)=[^ #]' .env
    

    If it prints both lines, keep them and stop here: OpenAEV needs the same values to read the secrets it has already encrypted.

  2. 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)|" .env
    
    Check that it worked
    grep -E '^OPENAEV_ADMIN_ENCRYPTION_(KEY|SALT)=[^ #]' .env
    

    It prints both lines, each with a value.

  3. 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

NextScenario generation from OpenCTI security coverage
Deploy
Install, configure, secure, scale and upgrade the platform.

Published

Overview
Run the XTM platform locally
OverviewDeploy with an AI agent