Skip to main content

Cookie Secret File

  • Environmental Variable: COOKIE_SECRET_FILE
  • Config File Key: cookie_secret_file
  • Kubernetes: see secrets
  • Type: string
  • Required for Proxy service

Path to file containing a secret used to encrypt and sign session cookies. You can generate a random key with head -c32 /dev/urandom | base64.

This is useful when deploying in environments that provide secret management like Docker Swarm. For example:

cookie_secret_file: '/run/secrets/POMERIUM_COOKIE_SECRET'