Repository navigation
feat(runtime)!: replace Redis with Valkey 9.1.2 - #149
Merged
Merged
Conversation
Bundle pinned Valkey 9.1.2 in the appliance and CI while retaining the native Bun RESP client. Rename cache services, configuration, health responses and translations; verify Lua, TTL, Pub/Sub and reconnects. Preserve historical backup metadata and immutable Redis Alpha fixtures. Document explicit image selection, upgrades, rollback and transient cache state. Verify the production binaries, licenses and cache reset. BREAKING CHANGE: Compose requires RENTNERPROXY_IMAGE. Development uses VALKEY_URL instead of REDIS_URL. Foundation health exposes valkey instead of redis. Existing deployments must follow the documented migration. Refs #148
Contributor
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: RentnerKev/RentnerProxy/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (61)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace bundled Redis with Valkey 9.1.2 for the Beta 1 appliance, development configuration and CI. Pin both official Valkey images by digest, retain the native Bun RESP client, and preserve the single-container layout, non-root cache process, loopback binding and transient cache policy.
Rename application cache services, Foundation health and all eight UI translations. Preserve immutable Redis-based Alpha fixtures and the historical v4 backup field. Add real Valkey coverage for server-side disconnect/reconnect, Pub/Sub, concurrent Lua/TTL operations and single-consumption authentication challenges, plus appliance checks for binaries, licenses and cache reset. Document installation, upgrades and rollback.
Related issue
Closes #148. Milestone:
v1.0.0-beta.1.Type of change
Testing
Passed locally:
bun --no-env-file run typecheckandbun --no-env-file run lint.bun --no-env-file run test:fuzz: 24 passed, 0 failed.bun --no-env-file run build:weband formatting of all changed supported files.--network none: appliance exits with code 1, restarts healthy, discards transient cache and preserves its application identity.Exact head
409c7666dbbd368ea12b2acf1b86d26a5b300ee0: core CI passed, including all 1,072 web tests against PostgreSQL 18.6/Valkey 9.1.2, 208 Rust tests, formatting, lint, types, fuzz and build. The local full appliance smoke passed all 53 checks, including cache reset, restart, backup/restore and Alpha 1/3 upgrades. The short current reliability run also passed with no known limitations. All 24 regular PR checks passed, including Production Smokes, CodeQL, Gitleaks and Dependency Review. The full published-Alpha matrix passed fresh installation and all six published Alpha upgrades.The manually started 30-minute current/Alpha-6 run was cancelled at the owner's request: long profiles are release preparation, not a per-PR gate. No completed long-run evidence is claimed here; rerun it on the exact release candidate under #75.
Container comparison: Trivy 0.75.0 (official image digest
sha256:af6acf9a6b85dfe389a1941505c0ce9efef52a4719635e1a962f022a3d855daa) scanned the built PR image and unchanged492aca6baseline with the identical vulnerability database (updated 2026-10-01 19:00 UTC; SHA-25604da019ee567fb7389ec7d4ca9c534ea25feae3b377c4579870b30fd98357120). It detected 0 added findings. The PR image has 3 critical / 135 high findings versus 3 critical / 141 high in the baseline. Existing critical findings remain inlibxml2(CVE-2026-6653) and the embedded Go standard libraries inesbuildandgosu(CVE-2025-68121). Their runtime reachability has not been established; #72 must triage/remediate these before release. The new explicitlibsystemd0dependency is already present at the same version in the pinned PostgreSQL base.Trivy does not recognize the copied Valkey C binaries as a package, so absence of Valkey findings is not a security clearance. Valkey 9.1.2 is the upstream patched version for the latest Lua debugger and RDMA advisories. No RDMA listener or systemd supervision is enabled.
Checklist
Breaking changes
RENTNERPROXY_IMAGE. Replace the old Alpha 6 literal image with the repository's selector and set it to a Valkey-based image; keep the same Compose project, existing volume, ports, public origin and SMTP configuration. Until a release exists, buildrentnerproxy:localfrom this checkout. No unpublished Beta image is assumed.VALKEY_URLinstead ofREDIS_URL; the old variable is not read. The bundled production runtime supplies its URL internally.redis://,rediss://, Bun'sRedisClient, Luaredis.calland native protocol error codes remain protocol/client identifiers.valkeyin place ofredis; update consumers of that field.redis: "excluded"field remains readable and unchanged.Final release publication remains separately gated by #75, including the planned scale/security reviews (#70, #72).
Screenshots
None. The existing status card now identifies Valkey in all supported languages.
Summary by CodeRabbit
RENTNERPROXY_IMAGEvalue, with instructions for building and selecting a local image.VALKEY_URLin place ofREDIS_URL; the legacy variable is no longer read. Use a Valkey-based image when upgrading.