Upgrade notes
- Express 5: apps embedding redis-commander (
require("redis-commander")) get an Express 5 app; query strings are parsed with the simple parser (a[b]=1is no longer an object) - node-config 5: config files named after
NODE_ENVmust start with it or follow the documented names (local-<NODE_ENV>.json,<NODE_ENV>-<NODE_APP_INSTANCE>.json, ...), a file likepreprod.jsonis no longer loaded forNODE_ENV=prod; YAML config files need theyamlpackage installed instead ofjs-yaml - bcryptjs 3:
bin/bcrypt-password.jswrites$2b$hashes; existing$2a$hashes keep working - other sites can no longer show Redis Commander in a frame: set
server.frameAncestors(FRAME_ANCESTORS) to allow them, e.g."'self' https://dashboard.example.com" - requests changing data (POST, PUT, PATCH, DELETE) sent by web pages of other origins are rejected with 403; scripts and curl are not affected
Enhancements
- new config
server.allowedHosts(ALLOWED_HOSTS): rejects requests with other host names in theHostheader, protects against DNS rebinding; recommended without http auth, default: all host names allowed as before - security headers on all responses:
Content-Security-Policy(as strict as the current UI allows),X-Content-Type-Options: nosniff,Referrer-Policy: same-origin,Cross-Origin-Opener-PolicyandCross-Origin-Resource-Policy - the info of all servers (
/apiv2/server/info) lists the connections in their order, no longer in the order their servers answered - an old style config file (
~/.redis-commander) that cannot be read at startup is reported in the log instead of being ignored silently - the server code uses async/await instead of callbacks, the
asyncdependency is removed - Express 4 → 5, the
body-parserdependency is removed (built into Express 5) - a server port already in use is reported with a short error message and exit code 1 instead of an uncaught exception
- ioredis 5 → 6: the connections keep using RESP2 (ioredis 6 defaults to RESP3), idle connections send TCP keep-alive probes after 30 seconds
- config 3 → 5, yargs 17 → 18, bcryptjs 2 → 3, inflection 1 → 3; the unused
dateformatdependency is removed (its script was loaded by the page but never called) - releases: the GitHub Release has the SBOM of the npm package attached (
redis-commander-<version>.cdx.json, CycloneDX, runtime dependencies only), the Docker images have SBOM and provenance attestations;sbom.jsonis no longer committed - helm chart checks in CI: Helm 4, chart-testing 3.15, helm-docs 1.15,
kubeconforminstead ofkubevalfor Kubernetes 1.34 to 1.37 (npm run helm-test), the chart is installed on kind clusters with a Redis and checked (healthcheck, Redis connection,helm test); the published chart of a release is pulled from the OCI registry and the helm repo and checked; the chart is published with Helm 4
Bugfixes
- any web page visited could change data of a Redis Commander without http auth (e.g. run commands with a form posted to
/apiv2/exec): requests changing data from other origins are rejected now (CSRF) - helm chart: the HorizontalPodAutoscaler had the CPU target twice and an empty memory target with
autoscaling.targetMemoryUtilizationPercentage - helm chart: a Service named
redisin the namespace added a second connection without password (Kubernetes service env varREDIS_PORT=tcp://...), the pod hasenableServiceLinks: falsenow