Harden Redis entrypoint password handling and maxmemory policy checks #1
Loading…
Reference in a new issue
No description provided.
Delete branch "review-redis-image-defaults"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
entrypoint.redis.sh
/tmp/redis.password) before validation. A single trailing newline is stripped from the copy, so the original secret file is never modified.exec redis-server.wcoutput so they compare cleanly on all platforms.REDIS_MAXMEMORY_POLICYis now refused whenREDIS_MAXMEMORYis empty. Previously a policy could be set on agenericprofile that has no maxmemory, which silently did nothing.README.md
REDIS_MAXMEMORY_POLICYrequiresREDIS_MAXMEMORY.genericneeds the volume and a 64 MiB/tmptmpfs;cachestores data on a tmpfs of at least 512 MiB and omits/data;queuekeeps the volume and needs at least 1536 MiB container memory with the default768mb.Why
echocommonly append a trailing newline to secret files; rejecting it caused confusing startup failures.