Upgrade notes
- Node.js 22 or newer is required
- import accepts only commands that write data (
SET,RPUSH,SADD,ZADD,HSET,XADD,JSON.SET,RESTOREB64, ...), other lines are reported as errors - export: the key prefix is a plain prefix,
*and?are no longer glob patterns dump-base64exports of older versions wrote TTLs in seconds, keys with a TTL imported from them expire 1000 times earliersso.jwksUrimust use https (http only for localhost or withsso.jwksAllowInsecureHttp)- the process exits with code 0 on SIGTERM and SIGINT (before 143 and 130)
Bugfixes
- http auth: session tokens signed in the same second were equal, so a single use token (used for export downloads and imports) could already count as used if another user or browser tab signed in at the same time; each token now has a unique id
- add new connection: fix server crash on an invalid database index (e.g. "abc"), it was also saved to the config file; database index and port are now checked and saved as numbers
- add new connection: a connection added in the UI was disconnected for good on its first error after the login (e.g. Redis restart), now it reconnects like the connections from the config file
- add new connection: stop reconnecting after a failed login (wrong host, port or password), before the client kept trying every second in the background
- add new connection: fix TLS server name (SNI) taken from the sentinel field instead of the Redis field
- add new connection: when adding several databases found by "detect databases", wait for all logins before reloading the page
- remove connection: return 404 instead of 500 with an HTML stack trace for an unknown connection
- import: fix server crash on lines that could not be parsed, e.g. a value containing a command name like
SET k "RESET me"; import errors are now reported per line and the other lines are still imported - import: fix import of
dump-base64exports (RESTOREB64lines), nothing was imported before - export as redis commands: lists were written as one element joined with commas, quotes and backslashes in keys and values were not escaped, and a stream key made the whole export fail; binary keys and values are written as
\xHHescapes - export and import no longer open a new Redis connection each time that was never closed
- export
dump-base64: write the TTL in milliseconds asRESTOREexpects, before seconds were written (keys of older exports expire 1000 times earlier) /apiv2/execand/apiv1/execreturn 400 instead of 500 if the command is missing or empty- web CLI: pressing Enter on an empty line no longer leaves the console without a prompt
- reading cluster nodes from a server that is not a cluster crashed the server process, now returns an error message
- key tree: an error reading the size of one key no longer stops loading the branch
- fix error message when removing a connection fails
- fix config key "sso.subject" overwriting the expected token audience instead of the expected subject
- fix server crash and lost member when editing a set or sorted set member without a new value; all list, set, sorted set, hash and stream member routes now answer 400 for missing fields
- editing a sorted set member with an invalid score no longer deletes the member (and likewise for sets: the new member is added before the old one is removed)
- fix server crash when decoding a key that does not exist (
POST /apiv2/key/...?action=decode), now returns 404 - fix server crash when creating a key without
stringValue, now returns 400 - key tree: answer with an error if listing the keys fails (e.g. missing SCAN permission), before the request never got an answer
- fix connection id "R:undefined:undefined:undefined" of the default connection to localhost:6379 used if no connection is configured
- sentinel and cluster connections: resolve host names to IPv6 addresses too (e.g. on IPv6-only networks like Fly.io), before only plain connections did, #532
- fix XSS via crafted
data-target/hrefselectors in the bundled Bootstrap alert, carousel, collapse, dropdown, modal and tab plugins, #612 - Docker healthcheck: wait 30s after container start before failing, checking every 2s during that time, #603
Enhancements
- exit with code 0 on SIGTERM and SIGINT (e.g.
docker stop, Ctrl+C) after closing the Redis connections - export and import: replace the library node-redis-dump2 with an own implementation; the export as redis commands also writes streams (
XADD), ReJSON keys (JSON.SET), TTLs (PEXPIRE) and keys of other module types (RESTOREB64); the import reads the arguments like redis-cli and acceptsSET,RPUSH,RPUSHX,LPUSH,LPUSHX,LSET,LTRIM,SADD,ZADD,HSET,XADD,JSON.SET,EXPIRE,PEXPIRE,RESTOREandRESTOREB64 - export: the key prefix is a plain prefix, glob characters like
*and?are no longer patterns; the JSON export also writes streams and ReJSON keys and is named.json - document reverse proxy setup for nginx that keeps keys with special characters in the URL intact, #393
- require Node.js 22 or newer (
engines.node), matching the versions tested in CI; the Docker image uses Node.js 24 - validate SSO JWT signed with a private key (RS256, PS256, ES256, ...), the public key is either
configured directly (sso.jwtPublicKey) or downloaded from the JWKS endpoint of the identity
provider (sso.jwksUri) - reject HMAC algorithms at startup if a public key is used to validate SSO JWT signatures
- allow setting the list of allowed SSO JWT algorithms via env var
SSO_JWT_ALGORITHMS sso.jwksUrimust use https (http only for localhost or withsso.jwksAllowInsecureHttp)- add optional Redis username (ACL user, e.g. AWS ElastiCache Valkey) to the web UI form for adding a new connection, #599
- Docker image supports a read-only root filesystem: config files are copied to
/tmp/redis-commander/config
(orRUNTIME_CONFIG_DIR) if the config directory is not writable, #599 - helm chart: mount an emptyDir at
/tmpifsecurityContext.readOnlyRootFilesystemis true - helm chart is published with every release, versioned like the app and deploying the image of the same version:
oci://ghcr.io/joeferner/charts/redis-commanderand helm repohttps://joeferner.github.io/redis-commander/, #447 #573