Secret keys are used to encrypt data your in Garnet using AES-256. Your encryption key must be 256 bits (32 bytes). To generate a random secret key, run:
openssl rand -hex 32
ENCRYPTION_KEY must be passed to Garnet as an environment variable. One-click deploys automatically set a secure key for you, but deployments from source and using Docker currently require you to manually set this.
openssl rand -hex 32. This will generate a new key for you. You'll need this in the next step.
docker-compose.yml file with the command:
"<randomly-generated-256-bit-key>" for the key you got from the key generation command.
ENCRYPTION_KEY: line will end up looking something like this (with your key, of course):