Skip to content

feat(redis): support configurable editor storage topologies - #25

Open
meisam-ui wants to merge 41 commits into
mainfrom
feat/redis-storage-topologies
Open

meisam-ui wants to merge 41 commits into
mainfrom
feat/redis-storage-topologies

Conversation

@meisam-ui

@meisam-ui meisam-ui commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

feat(redis)!: configurable Redis editor storage (standalone, Sentinel, Cluster) with TLS — chart 8.0.0

Summary

DocService can now keep its editor data and statistics in Redis instead of in Pod memory, so co-editing state is
shared across DocService replicas. The storage mode is configurable per store:

  • docservice.editorDataStorage: memory (default), standalone, sentinel or cluster
  • docservice.editorStatStorage: defaults to the data storage mode

Also included:

  • Redis and Sentinel TLS (connections.redisTLS, connections.redisSentinelTLS) with an optional private CA
    (connections.redisCAExistingSecret; only the ca.crt item is mounted)
  • Password-only and named ACL users for Redis and Sentinel (connections.redisUser, connections.redisSentinelUser)
  • Memory mode no longer needs Redis at all: no Redis Secret, credentials, CA or password validation are rendered

This PR replaces #11 (rebased on main and extended after review).

Breaking changes / upgrade notes

  • connections.redisConnectorName is removed. ioredis (or any value other than redis) now fails the install
    with a migration message; redis is ignored with a notice in NOTES.
  • Sentinel and Cluster are used when the storage mode is sentinel / cluster and
    connections.redisSentinelNodes / connections.redisClusterNodes is set. Node lists alone do nothing.
  • The Converter no longer receives Redis credentials or the Redis CA (it does not use Redis).
  • REDIS_SERVER_USER and REDIS_SENTINEL_USER moved from the shared documentserver ConfigMap into the env of
    the Pods that use Redis (DocService, AdminPanel, test Pods).
  • The Redis flags (redisTLS, redisSentinelTLS, redisNoPass, redisSentinelNoPass) are parsed like the
    DocumentServer entrypoint does. Previously the string "false" counted as true. Unrecognised values now fail.
  • New render-time validation (only when Redis is used): Cluster requires redisDBNum 0, a CA secret requires
    TLS, and redisDBNum must be a non-negative integer.
  • redisHost / redisPort are documented as standalone-only (they are ignored for Sentinel and Cluster).
  • All Pods restart once on upgrade, because the ConfigMap and Pod specs change.
  • The default stays memory storage with 2 DocService replicas. NOTES now warns about this combination, because the
    chart has no per-document routing and co-editors on different Pods don't share state.

Requirements and release coupling

Redis editor storage and Redis TLS need a DocumentServer release that contains both the Redis entrypoint
(DocumentServer #386) and the server Redis module (server eb05353).

  • The chart contains a version gate (ds.redis.minImageVersion). It is inactive until that DocumentServer
    release is tagged; the final commit of this PR sets it together with appVersion and images.tag.
  • Compatibility (tested against the real entrypoint): a new image with the old 7.x chart starts normally in memory
    mode; this chart with an old image works in memory mode. Selecting a Redis mode on an old image is caught by
    helm test (test-redis-config fails fast) and, once set, by the version gate.

Tests and verification

Automated (also in CI):

  • sources/scripts/test_redis_rendering.py: 55 tests (rendering, validation, env/CA wiring, NOTES, version gate,
    no duplicate env names)
  • sources/scripts/test_ds_tls.py: 12 tests (test-ds logic: Redis skip, key prefix, all nodes, TLS/CA, RabbitMQ)
  • tests/entrypoint_contract.py: renders the chart and runs the real DocumentServer orchestrated entrypoint with the
    env of DocService, Converter and AdminPanel for 9 Redis setups, plus 2 file-configured Sentinel checks
  • New chart-unit-tests job in lint.yaml (pinned DocumentServer commit) and a weekly entrypoint-drift workflow
    against DocumentServer main. Test-only files are excluded from the chart package.

helm test:

  • test-redis-config checks that the image selects the requested storage and topology; it fails fast on images
    without Redis support.
  • test-ds skips Redis in memory mode, uses all Sentinel and Cluster nodes, writes a temporary
    ds:helm-test:<uuid> key (60 s expiry, works with ACL users limited to ~ds:*), and works with RabbitMQ 4.x.

Demo / test infrastructure

  • demo/redis-sentinel.yaml (2 nodes, 3 Sentinels) and demo/redis-cluster.yaml (6 nodes), Valkey 8.1.12,
    Pod Security "restricted"; the Sentinel setup is split-brain safe on restart
  • demo/redis-tls-certs.yaml: cert-manager resources (test CA and server certificate)
  • Values overlays for each setup and for TLS; docs for apply, checks, failover and switching to TLS
  • The manifests follow the DocumentServer compose test stacks; all files are Apache-2.0

Incidental changes

demo/Readme.md (Postgres credentials, step numbering, pod count), a comment in demo/my-values.yml, and an
indentation-only change in the ConfigMap template (no change in output).

Follow-ups (tracked separately)

  • Release: set the DocumentServer version in the chart.
  • Backlog: persistent volumes for the demo Cluster, minimal Sentinel ACL docs, exclude demo/ from the package, pin
    GitHub Actions to SHAs, a shared helper for embedded scripts, namespace-independent demo, Helm 4 in CI, support for
    RWO storage

Reviewer guide

  1. templates/_helpers.tpl: storage modes, flag parsing, validation, version gate
  2. templates/configmaps/documentserver.yaml and the workloads: env and CA wiring per component
  3. templates/tests/*, sources/scripts/test_ds.py, sources/scripts/test_redis_config.sh: helm test
  4. values.yaml, README.md, CHANGELOG.md: user-facing docs
  5. .github/workflows/*, tests/entrypoint_contract.py: CI
  6. demo/*: test infrastructure only

AI disclosure

The original commits from #11 were made with Codex/ChatGPT (see their Assisted-by trailers). The review and the
follow-up fixes were made with Claude Code; every one of those commits carries an Assisted-by: ClaudeCode:<model>
trailer. Review findings were checked against the chart, the DocumentServer entrypoint and the server code, and
fixes were verified with unit tests, the real entrypoint, Docker and dev-fra-0. I reviewed all changes and signed
off every commit.

nvanlaerebeke and others added 10 commits October 10, 2026 17:03
- Add standalone, Sentinel, and Cluster editor storage configuration
- Validate shared Redis topology and authentication settings
- Centralize Redis secret environment variables across workloads and tests
- Add Redis configuration Helm tests and example values
- Update documentation and deployment test coverage

Assisted-by: ChatGPT 5.6
Signed-off-by: Nico Van Laerebeke <1520618+nvanlaerebeke@users.noreply.github.com>
Signed-off-by: Nico Van Laerebeke <1520618+nvanlaerebeke@users.noreply.github.com>
- Add independent TLS settings for Redis nodes and Sentinel discovery
- Use TLS in connectivity checks and validate generated TLS configuration
- Pass the explicit memory statistics backend to DocumentServer
- Validate editor data and statistics storage independently
- Document TLS settings and required image support

Assisted-by: Codex:GPT-6
Signed-off-by: Nico Van Laerebeke <1520618+nvanlaerebeke@users.noreply.github.com>
- Apply the configured service account and security contexts
- Respect test scheduling settings and global fallbacks
- Include test annotations, resource limits, and init containers

Assisted-by: Codex:GPT-6
Signed-off-by: Nico Van Laerebeke <1520618+nvanlaerebeke@users.noreply.github.com>
Allow optional usernames while preserving existing defaults and independent
NoPass behavior. Expand authentication coverage across standalone, Sentinel,
and Cluster, and document password-only authentication.

Assisted-by: Codex:GPT-6
Signed-off-by: Nico Van Laerebeke <1520618+nvanlaerebeke@users.noreply.github.com>
Add a shared CA Secret setting for Redis and Sentinel TLS.
Mount the bundle and configure trust in application and connectivity
test containers, avoiding duplicate configuration.

Document shared trust settings and add regression tests.

Assisted-by: Codex:gpt-6
Signed-off-by: Nico Van Laerebeke <1520618+nvanlaerebeke@users.noreply.github.com>
…pologies

Conflicts:
	README.md
	templates/deployments/converter.yaml
	templates/deployments/docservice.yaml
	templates/statefulset/adminpanel.yaml
	templates/tests/test-ds-pod.yaml

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: mheidari <meisam.heidari@strato.de>
Bump the chart to 8.0.0 and add the changelog entry for the Redis storage
topologies. The removal of connections.redisConnectorName (ioredis Sentinel
switch) is a breaking change, with migration notes in the changelog.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: mheidari <meisam.heidari@strato.de>
…ction check

The orchestrated entrypoint no longer prints NODE_CONFIG with ENTRYPOINT_CONFIG_ONLY; it writes only to ENTRYPOINT_CONFIG_ONLY_OUTPUT, so the old test-redis-config hook failed against dev/redis images and would hang on images that predate config-only output. Replace the 25-case auth/TLS matrix, which duplicated the image repo's own tests, with a slim check that the image selects the requested storage and topology. It fails fast on images without Redis storage support. The Pod now mirrors docservice extraEnvVars and the extraConf mount, has activeDeadlineSeconds: 120, and keeps its logs after success. Connectivity, auth and TLS remain the job of test-ds.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
MonaAghili

This comment was marked as off-topic.

…sion

No published DocumentServer image supports the new Redis settings yet: v9.3.8 ignores EDITOR_DATA_STORAGE, REDIS_SERVER_TLS and REDIS_SENTINEL_TLS without any error, so DocService silently runs with in-memory editor storage. Add ds.redis.minImageVersion and a gate in ds.editor.storage.validate that rejects known older numeric docservice image tags when a Redis storage mode or Redis TLS is requested. The gate stays inactive (empty minimum) until the DocumentServer release containing PR #386 is decided and tagged; non-numeric tags are not checked. Document the requirement and how to verify a running image, and test the gate against a copy of the chart with a placeholder minimum version.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
…image branches

Kubernetes counts activeDeadlineSeconds from status.startTime, which is set when the kubelet acknowledges the Pod and before the image is pulled. The DocService image is large, so on a node without it cached the 120 s deadline can expire during the pull and fail the test before the script runs. The script is already bounded: the capability guard fails fast on unsupported images, timeout 60 bounds the dry run and helm test --timeout bounds the whole hook. Add a test that the Pod has no activeDeadlineSeconds.

dev/<feature> branches in Euro-Office/DocumentServer are temporary and deleting one deletes its dev images, and PR #386 is already merged into main. Point the helm test docs at a DocumentServer release with Redis editor storage support and the existing image requirement subsection instead of the dev/redis branch.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
Memory mode no longer gets Redis secret env, Secrets, CA wiring or password validation; all of it is rendered only when editorDataStorage or editorStatStorage is a Redis mode (AdminPanel keeps it when statistics use Redis). test-ds skips the Redis check when Redis isn't used and only failed or unknown checks fail the run, so Skipped is accepted. The Redis check uses a temporary ds:helm-test:<uuid> key with a 60 s expiry, so ACL users restricted to ~ds:* work. The DocumentServer version gate now applies only to Redis storage modes, since the TLS settings have no effect without one.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
…vice replicas

In memory editor storage the co-editing state (locks, chat, save and force-save state, presence) is kept per DocService process, and the chart has no document-affinity routing, so with more than one Pod co-editors of one document can reach different Pods and overwrite each other's changes. The default values (memory storage, 2 replicas) are in this situation. Print a NOTES.txt warning when editor data storage is memory and docservice.replicas is above 1 or autoscaling is enabled, document the behaviour and the recommendation in the README, and test the warning with helm install --dry-run=client. No defaults or validation changed.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
…olete key

connections.redisConnectorName was removed in chart 8.0.0, but Helm ignores unknown keys, so values files that still set it rendered silently. A value of ioredis implies a Sentinel setup that the chart no longer derives from this key. Fail the render for any value other than redis with a migration message that points to docservice.editorDataStorage: sentinel and connections.redisSentinelNodes, and print an obsolete-parameter notice in NOTES.txt when the value is redis. An absent, empty or null value is treated as not set. Add rendering tests for all of these cases.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
The server builds the Sentinel node and Sentinel client options without host and port, and Cluster uses only rootNodes, so redisHost and redisPort do nothing in those modes. The entrypoint falls back to REDIS_SERVER_HOST:PORT as a Sentinel address only when Sentinel settings come without REDIS_SENTINEL_NODES, which cannot happen because the chart renders the Sentinel group name, user and password only together with redisSentinelNodes. No probe, init container or job in the chart reads them, and test-ds uses them only for standalone Redis. Reword the values.yaml and README descriptions accordingly, drop the misleading fallback wording, and stop setting them in the Sentinel and Cluster demo overlays.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
…mber

Three misconfigurations rendered without error. A non-zero redisDBNum with Cluster storage is silently ignored by the server, so environments sharing one Cluster and separated by DB number collide in database 0. A redisCAExistingSecret without redisTLS or redisSentinelTLS is ignored and the connections stay plaintext although TLS was likely expected. A redisDBNum that is not a non-negative integer is rejected by the image entrypoint at container start, which only shows up as CrashLoopBackOff. Fail at render time with one-line messages for all three. The checks apply only when Redis is used, so memory mode is unaffected. Document the rules in values.yaml, the README and the CHANGELOG, and test the accepted and rejected combinations.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
The Converter never uses Redis: a static require trace from FileConverter/sources/convertermaster.js reaches no editor data, statistics or Redis module. Only DocService and AdminPanel (statistics through DocService routes/info.js) use Redis. The Converter processes untrusted documents and makes outbound HTTPS requests, so holding the Redis password and trusting the Redis CA through NODE_EXTRA_CA_CERTS there is unnecessary exposure. Remove the Redis env, CA env, CA volume and CA mount from the Converter Deployment; DocService, AdminPanel and the test Pods keep them. The Converter Pods roll once on upgrade because the pod spec changes. Update the docs and tests accordingly.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
…is Pods

The Converter no longer gets Redis passwords, but it still received REDIS_SENTINEL_USER through the shared documentserver ConfigMap. The entrypoint runs the Redis configuration for every service mode and exits with 'REDIS_SENTINEL_USER is set without a Sentinel password', so the Converter crash-looped in Sentinel mode with a named Sentinel ACL user. Render REDIS_SERVER_USER and REDIS_SENTINEL_USER as env entries from ds.redis.env, with the same conditions as before, so only DocService, AdminPanel and the test Pods get them. The usernames are no longer in the ConfigMap, so all Pods that use it restart once on upgrade. Verified against the dev/redis entrypoint for standalone, Sentinel (including a named user), Cluster and memory.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
<F15 body, plus: the Sentinel ACL was verified with node-redis 6.2.1 and a failover (ACL LOG empty), and all pods meet the restricted Pod Security Standard>

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
…nstalls

QA could not test redisTLS, redisSentinelTLS and the private CA path (redisCAExistingSecret) end to end, nor that the Converter starts without the Redis CA in Cluster mode. Add demo/redis-tls.sh, which creates a test CA and one server certificate with wildcard SANs for the three headless Services and stores them in the Secrets redis-tls (for the pods) and redis-ca (for the chart). The Sentinel and Cluster manifests mount an optional redis-tls Secret and switch to TLS (the compose flags, same ports, TLS-aware probes, Sentinel lookup and cluster init) when it exists; without it they run unchanged in plain mode. demo/my-values.redis-tls.yml enables the chart TLS values. Verified in Docker with node-redis 6.2.1 for Sentinel and Cluster, including failover and the old primary rejoining as a replica, plus a plain-mode regression run.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
The fixes from the Redis review had no CI coverage, and the Converter crash loop came from entrypoint rules that only a run of the real entrypoint catches. Add a chart-unit-tests job to lint.yaml: the rendering and connectivity-hook unit tests, and tests/entrypoint_contract.py, which renders the chart for nine Redis setups and runs the real DocumentServer orchestrated entrypoint (ENTRYPOINT_CONFIG_ONLY) with the environment of the docservice, converter and adminpanel containers, failing on a non-zero exit or on any Redis secret reference on the Converter. Pull requests check a pinned DocumentServer commit; a weekly entrypoint-drift workflow checks DocumentServer main and fails when its entrypoint stops accepting the chart. The test files are excluded from the packaged chart (the /tests/ pattern is anchored so that templates/tests stays). Mutation checks confirmed that the contract catches REDIS_SENTINEL_USER in the shared ConfigMap and that the unit tests catch a removed Cluster database validation.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
The storage-mode defaulting was copied in six places, and test-redis-config used a different rule for the statistics mode. The Redis flags were read with template truthiness, so the string "false" meant true: redisNoPass="false" dropped the password and redisTLS="false" mounted the CA with TLS off. Add ds.editor.dataStorage and ds.editor.statStorage as the only places that default the modes, and ds.bool, which mirrors the entrypoint's bool.sh (true/yes/y/on/1, false/no/n/off/0, case-insensitive, trimmed; empty is unset; anything else fails the render), and use them everywhere, including the ConfigMap TLS values. Renders for typed values are byte-identical in eleven configurations; new tests cover the mode consistency and the flag parsing.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
REDIS_CONNECTOR_NAME is the entrypoint default and the only connector the server accepts, so it is no longer rendered. REDIS_SENTINEL_TLS is rendered only with connections.redisSentinelNodes or when connections.redisSentinelTLS is true: a missing value means false in the entrypoint, so a false flag without Sentinel nodes adds nothing, while true is kept because the entrypoint also applies it to a Sentinel configured in local.json or NODE_CONFIG (it no longer shows "false" in the standalone and Cluster renders). The entrypoint contract gains two cases that run the real entrypoint with a file-configured Sentinel and check sentinelClientOptions.socket.tls. 8.0.0 already restarts the Pods that use the ConfigMap, so this adds no extra rollout.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
The connectivity hook built its Sentinel and Cluster clients from the first configured node only, so helm test failed whenever that one node was down even though the others could serve the connection. Parse REDIS_SENTINEL_NODES and REDIS_CLUSTER_NODES into all (host, port) pairs and pass them to Sentinel and to RedisCluster as startup nodes; the authentication, TLS and CA keyword handling is unchanged. Unit tests check that all nodes reach each client in order. Verified in Docker against the demo Sentinel and Cluster with the first node stopped: the old script failed, the new one succeeds.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
The helm test hint in NOTES only named the test-ds Pod, although helm test also runs the test-redis-config hook when a Redis editor storage mode is used. Add its log command and a one-line description to the hint, shown only when tests are enabled and Redis is used, with the chart's name suffix handling. Tests check the dry-run NOTES in the Redis modes, with a name suffix, in memory mode and with tests disabled.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
Replace demo/redis-tls.sh, which was adapted from the AGPL licensed DocumentServer script, with namespaced cert-manager resources: a self-signed test CA, a CA Issuer and one server Certificate for the three headless Services with the same SANs and usages, written into the Secret redis-tls. The demo TLS setup is now declarative, the keys never leave the cluster, the certificates renew, and the chart repository contains only Apache-2.0 files. The Redis manifests are unchanged, and the chart reads the CA from the ca.crt item of the redis-tls Secret only, so the server private key is not mounted into DocService, AdminPanel or the test Pods. The Readme documents the cert-manager steps, the renewal (restart the Redis pods and DocService) and the cleanup. Verified in Docker with equivalent openssl certificates and node-redis 6.2.1 for Sentinel and Cluster including failover; cert-manager itself was not run.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
Describe the removed redisConnectorName with the final rules (Sentinel and Cluster are used with the storage mode and the nodes set), replace the maintainer release requirement with a user-facing note on the DocumentServer version for Redis editor storage and TLS, and add the test-ds node handling and the test-redis-config NOTES hint to the Fixes.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
Running the Python tests creates __pycache__ directories. Ignore them in git and keep them out of the chart package.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
Thirty-one tests rendered NOTES.txt with helm install --dry-run=client, which still asks the API server for its version in client mode, so chart-unit-tests failed on a runner without a cluster and only passed locally because a kubeconfig was present. Render NOTES.txt through helm template instead: a shared helper copies the chart, turns NOTES.txt into a named template shown in a ConfigMap, and returns the rendered text. The helm calls of the tests also run without KUBECONFIG and with an empty HOME, so they cannot reach a cluster. Removing the memory replica warning from NOTES.txt makes the warning tests fail.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
…ntract

The contract runs the DocumentServer entrypoint with a temporary working directory, so the relative --ds-scripts path used in lint.yaml (ds/build/scripts) did not resolve and every case failed with rc 127. Resolve --ds-scripts and --chart to absolute paths after argument parsing, and exit 2 with a clear message when the entrypoint or redis-topology.sh is missing. Also drop the deprecated token input of azure/setup-helm in lint.yaml and entrypoint-drift.yaml.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
The Pod rendered COMPANY_NAME and JWT_ENABLED and then appended docservice.extraEnvVars. A user value with the same name produced a duplicate env entry, which Helm 4 server-side apply rejects. Render the two defaults only when extraEnvVars does not define them, and test all demo overlays for duplicate names.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
RabbitMQ 4.3 rejected the transient non-exclusive test queue (seen on dev-fra-0 and with rabbitmq:4.3.8); the RabbitMQ deprecated features list recommends durable or exclusive queues instead. Declare the test queue as exclusive; it is deleted with the connection. Checked against rabbitmq:4.3.8 and 3.13.7.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
Add +ping (DocService startup check) and +sentinel|masters (redis-py Sentinel discovery in test-ds) to the named Sentinel user. Checked in Docker with a node-redis 6.2.1 client script and the redis-py check of test_ds.py: both pass and ACL LOG stays empty. The old ACL fails both.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
The pre-upgrade Job contacts the running Docservice with its old configuration, so it fails against a TLS-only Redis. Document a safe order using plain and TLS ports during the switch.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
Use CLUSTER FAILOVER on a replica to test the promotion. Keep SHUTDOWN NOSAVE only as a node restart test and state what it does not prove.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
The Readme listed SENTINEL get-master-addr-by-name and CLIENT SETNAME, which the ACL does not grant, and suggested a check command that the user cannot run (NOPERM, verified with valkey 8.1). List the granted commands and check with SENTINEL master.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
Add the RabbitMQ 4.3 fix of the test-ds queue and the Redis TLS switch and Cluster failover docs to the 8.0.0 entry. Fix the lowercase anchor of the step 7 link in the README table of contents.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
…e new docs

Add the RabbitMQ 4.3 fix of the test-ds queue and the Redis TLS switch and Cluster failover docs to the 8.0.0 entry. Fix the lowercase anchor of the step 7 link in the README table of contents. Describe the pre-upgrade and node restart behaviour in general terms instead of one test run.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Signed-off-by: mheidari <meisam.heidari@strato.de>
meisam-ui and others added 2 commits November 27, 2026 16:38
Signed-off-by: mheidari <meisam.heidari@strato.de>

# Conflicts:
#	templates/configmaps/documentserver.yaml
Correct the managed Redis TLS note, which claimed the chart has no TLS
switch, point the Deploy Redis and manual scaling sections to the Redis
storage modes, and list the Redis subsections in the contents.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: mheidari <meisam.heidari@strato.de>

@chrip chrip left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve. Looks good from my side, but please hold the merge until the version question below is settled.

This makes the DocService editor data and statistics storage configurable (memory, standalone Redis, Sentinel or Cluster), adds Redis TLS and ACL users, and stops requiring Redis in memory mode. I read the templates, helpers and test scripts. On the current head I ran test_redis_rendering.py (55 tests), test_ds_tls.py (12 tests), tests/entrypoint_contract.py against the pinned DocumentServer commit, and helm lint, and all of them pass. Since my last look you merged main and extended the README. The conflict in templates/configmaps/documentserver.yaml keeps both the storage variables and the new COMPANY_NAME, and the new README links all resolve.

Earlier comments:

  • The earlier review from MonaAghili contains only "Re" and no inline comments, so nothing is open from it.

question: When does the minimum image version get set?
templates/_helpers.tpl:82 still leaves ds.redis.minImageVersion empty, and images.tag is still v9.3.8 (values.yaml:508). That image has no Redis editor storage: Euro-Office/DocumentServer#386 was merged on 2026-11-25, after the v9.3.8 release on 2026-11-13, and there is no newer DocumentServer release yet. So --set docservice.editorDataStorage=standalone renders without an error, and DocService then keeps the data in memory without a warning. Only helm test notices. The description still says in one place that "the final commit of this PR" sets the version, and lists it as a separate follow-up in another. If it comes in this PR, I'd wait for the DocumentServer release and that commit before merging. If it is a follow-up, please say so in the description, so that nobody releases 8.0.0 from main before it lands.

Assisted-by: ClaudeCode:claude-opus-5-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants