github joeferner/redis-commander v0.12.0

2 hours ago

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]=1 is no longer an object)
  • node-config 5: config files named after NODE_ENV must start with it or follow the documented names (local-<NODE_ENV>.json, <NODE_ENV>-<NODE_APP_INSTANCE>.json, ...), a file like preprod.json is no longer loaded for NODE_ENV=prod; YAML config files need the yaml package installed instead of js-yaml
  • bcryptjs 3: bin/bcrypt-password.js writes $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 the Host header, 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-Policy and Cross-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 async dependency is removed
  • Express 4 → 5, the body-parser dependency 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 dateformat dependency 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.json is no longer committed
  • helm chart checks in CI: Helm 4, chart-testing 3.15, helm-docs 1.15, kubeconform instead of kubeval for 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 redis in the namespace added a second connection without password (Kubernetes service env var REDIS_PORT=tcp://...), the pod has enableServiceLinks: false now

Don't miss a new redis-commander release

NewReleases is sending notifications on new releases.