A production NextAudit AI deployment sits at the intersection of endpoint telemetry, compliance data, and AI-assisted analysis — all of it sensitive. The default configuration is intentionally minimal so that development environments start quickly, but before exposing the stack to a production network you must enable TLS on the Fleet server, replace every placeholder secret with a strong generated value, and confirm that internal services are not reachable outside the Docker network. This page walks through each layer of hardening in the order you should apply it.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Kevin2523/nextAuditAi/llms.txt
Use this file to discover all available pages before exploring further.
TLS configuration for Fleet
Fleet terminates TLS directly. WhenFLEET_SERVER_TLS is set to true, Fleet reads the certificate and private key from the paths defined by FLEET_SERVER_CERT and FLEET_SERVER_KEY.
certs/ directory on the host:
:ro flag mounts the files read-only inside the container so that the Fleet process cannot overwrite them.
Set the corresponding environment variables to the in-container paths:
Secret management
Fleet private key
FLEET_SERVER_PRIVATE_KEY is used by Fleet for internal cryptographic operations. Generate a strong random value with OpenSSL:
.env file. Do not reuse this value across environments.
Fleet license key
FLEET_LICENSE_KEY activates Fleet Premium features. Store this value the same way as the private key — in a .env file that is excluded from version control, or in a secrets manager injected at deploy time.
Database passwords
Three separate password variables protect the MySQL instance:| Variable | Purpose |
|---|---|
MYSQL_ROOT_PASSWORD | MySQL root account — used only for initial setup |
MYSQL_PASSWORD | Runtime password used by Fleet to connect |
POSTGRES_PASSWORD | Password for the PostgreSQL user shared by Flowise |
POSTGRES_PASSWORD to protect the database shared by Flowise.
Network isolation
All services communicate over the internal Docker Compose network by address. The Fleet container reaches MySQL atmysql:3306 and Redis at redis:6379 — neither service needs to be reachable from the host or any external network.
Session configuration
FLEET_SESSION_DURATION controls how long an authenticated Fleet session remains valid before requiring re-login. Set this to the shortest duration that is practical for your operators.
n8n settings file permissions
n8n enforces strict file permissions on its settings file whenN8N_ENFORCE_SETTINGS_FILE_PERMISSIONS is set to true. This is enabled by default in all three compose environments: