Skip to content
VerificationWould you notice if your agent drifted in production?Explore the 5-stage harness›
Reference

Secrets and environment variables

SecretsEmitter scaffolds 6 password keys into server/config/passwords.yaml (file permissions 0600, gitignored, never hash-locked) for local development runs. Continuous integration and production environments supply these secrets through Serverpod’s native SERVERPOD_* environment variables.

Password key Environment variable Run modes What it protects
database SERVERPOD_DATABASE_PASSWORD development, test, staging, production PostgreSQL database password for the Serverpod server (matched with POSTGRES_PASSWORD in server/docker-compose.yaml for development and test).
redis SERVERPOD_REDIS_PASSWORD development, test, staging (when redis: true), production (when redis: true) Redis password for Serverpod’s cache and pub/sub message central (always required in development and test for docker-compose; required in staging/production when @environment sets redis: true).
serviceSecret SERVERPOD_SERVICE_SECRET development, staging, production Internal Serverpod service secret used by the Insights server and service-to-service health/diagnostic calls in development, staging and production.
emailSecretHashPepper SERVERPOD_PASSWORD_emailSecretHashPepper development, test, staging, production Server-side pepper used by Serverpod’s email identity provider (EmailIdpConfigFromPasswords) to hash verification and password-reset codes.
jwtHmacSha512PrivateKey SERVERPOD_PASSWORD_jwtHmacSha512PrivateKey development, test, staging, production HMAC-SHA512 signing key used by Serverpod’s JwtConfigFromPasswords to sign and verify access JWTs.
jwtRefreshTokenHashPepper SERVERPOD_PASSWORD_jwtRefreshTokenHashPepper development, test, staging, production Server-side pepper used by Serverpod’s JwtConfigFromPasswords to hash rotating refresh tokens stored in the database.

Generated from aegil @ 948ae8e. Do not edit: change the code, or the description in site/annotations/.