Repository navigation
fix(redis-stack): replace the unlicensed vendored chart with an Intel chart - #50
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Legacy chart settings are ignored when the new password is supplied, potentially allowing Redis access from every namespace and causing immutable StatefulSet upgrade failures.
1 open issue
What changed in this PR
Replaces the unlicensed vendored Redis Stack subchart with an Intel-authored Apache-2.0 chart for the shared memory backend, retaining the Redis image and existing resource names.
Changes:
- Adds standalone StatefulSet, Service, Secret, and NetworkPolicy templates.
- Updates the Ansible role to use the chart’s new values layout.
- Removes the vendored subchart and documents licensing requirements for third-party charts.
| File | Description |
|---|---|
roles/redis_stack/tasks/install.yaml |
Passes storage, authentication, and mesh settings through the new values layout. |
charts/redis-stack/values.yaml |
Defines top-level configuration for the standalone chart. |
charts/redis-stack/templates/statefulset.yaml |
Defines the Redis workload and persistent storage. |
charts/redis-stack/templates/service.yaml |
Exposes Redis through the existing Service name. |
charts/redis-stack/templates/secret.yaml |
Defines credentials and the client connection URL. |
charts/redis-stack/templates/networkpolicy.yaml |
Defines namespace restrictions and optional mesh ingress. |
charts/redis-stack/templates/_helpers.tpl |
Centralizes resource names and labels. |
charts/redis-stack/charts/redis-stack-server/values.yaml |
Removes vendored subchart defaults. |
charts/redis-stack/charts/redis-stack-server/templates/secret.yaml |
Removes the vendored Secret template. |
charts/redis-stack/charts/redis-stack-server/templates/redis-stack-server.yaml |
Removes vendored Service and StatefulSet templates. |
charts/redis-stack/charts/redis-stack-server/templates/networkpolicy.yaml |
Removes the vendored NetworkPolicy template. |
charts/redis-stack/charts/redis-stack-server/templates/_helpers.tpl |
Removes vendored template helpers. |
charts/redis-stack/charts/redis-stack-server/Chart.yaml |
Removes vendored subchart metadata. |
charts/redis-stack/Chart.yaml |
Adds licensing headers and increments the chart version. |
charts/README.md |
Clarifies dependency handling and third-party licensing requirements. |
Review effort: Balanced
| @@ -0,0 +1,36 @@ | |||
| # Copyright (C) 2025-2026 Intel Corporation | |||
| # SPDX-License-Identifier: Apache-2.0 | |||
| {{- if .Values.networkPolicy.enabled }} | |||
There was a problem hiding this comment.
Thanks. Addressed in 75fc1d5.
- Supported install path (
roles/redis_stack) is not affected. The role passes the values inline on every install or upgrade (no saved values file), already in the new layout, with the same storage class and size as before, so the volume claim is unchanged. It never setallowedNamespacesor placement, so those stay at the same defaults. - Manual Helm installs with the old keys: rather than translating the old layout, the chart now stops with a clear error if a
redis-stack-server:block is passed. The message names the new top-level keys and warns to keeppersistence.*equal to the installed values. A dropped allowlist can no longer happen silently.
Tested with helm template: the role's values render the same objects as before (and pass kubeconform strict on Kubernetes 1.35); the old redis-stack-server.redis_stack_server.* keys fail with the message.
There was a problem hiding this comment.
🔵 Needs a closer look
The shared Redis chart replacement lacks live-cluster upgrade validation, leaving PVC data and credential retention, failed-upgrade retries, and cross-namespace ambient-mesh Service connectivity unverified.
1 open issue
Review effort: Balanced
2cdb194 to
87121c8
Compare
Cluster test resultsSingle-node Kubernetes v1.35.4 test cluster, installed with Upgrade over the existing install (release
|
| Check | Result |
|---|---|
helm upgrade --dry-run=server |
✅ accepted, no immutable-field errors |
helm upgrade --install --wait |
✅ revision 2 deployed in 9 s; the pod restarted once |
| Same data volume before and after | ✅ |
| A key and a RediSearch index written before the upgrade | ✅ both still present |
PING; modules |
✅ PONG; search, ReJSON, timeseries, bf, redisgears_2 |
| Password unchanged; access without password | ✅ unchanged; NOAUTH |
Secret keys REDIS_PASSWORD, REDIS_URL |
✅ |
| Service endpoint; NetworkPolicy ports | ✅ 6379; 6379 and 15008 |
Client in another meshed namespace using REDIS_URL |
✅ PONG and read the test key |
./toolkit_manager.sh validate agent-toolkit |
✅ failed=0: Redis pods OK, PING OK, RediSearch module OK |
Fresh install (separate test namespace)
| Check | Result |
|---|---|
helm upgrade --install --create-namespace --wait |
✅ StatefulSet, Service, Secret, NetworkPolicy and PVC created |
PING, RediSearch index and search, access without password |
✅ PONG; 1 result; NOAUTH |
REDIS_URL host |
✅ redis-stack-server.<namespace>.svc.cluster.local:6379 |
Not covered: running roles/redis_stack itself from this branch; the test used the exact values the role passes. Test data and the test namespace were removed afterwards.
… chart charts/redis-stack embedded a modified copy of the redis-stack-server chart from github.com/redis-stack/helm-redis-stack. That repository declares no license, so Intel IP policy does not allow us to use or redistribute it. This removes the copied subchart and makes charts/redis-stack a single Intel-written chart (Apache-2.0), in the same style as charts/pgvector. It still deploys the same licensed image, redis/redis-stack-server:7.4.0-v8. Kept unchanged so existing installs upgrade in place and clients keep working: - Service, StatefulSet and NetworkPolicy name redis-stack-server - StatefulSet selector app: redis-stack-server and volume claim db at /data - Secret redis-stack-server-credentials with REDIS_PASSWORD and REDIS_URL - password passed with REDIS_ARGS --requirepass, port 6379, tolerations, security context, NetworkPolicy rules (incl. the Istio HBONE port) The values layout is now the chart's own (persistence.*, auth.*, networkPolicy.* at the top level); roles/redis_stack passes them in that form. Rendered with the role's values, the objects match the previous chart field for field, apart from explicit protocol/targetPort defaults and standard app.kubernetes.io labels.
A values file written for the old vendored sub-chart (redis-stack-server. redis_stack_server.*) would otherwise be ignored silently on upgrade: a namespace allowlist would be dropped (Redis open to every namespace) and storage overrides would no longer apply, so the immutable volume claim could differ. Stop with a message that names the new top-level keys instead. The redis_stack role passes the new layout and is not affected.
The previous chart set metadata.namespace on the Secret, Service and NetworkPolicy. Set it on all four objects (StatefulSet included), so the manifests stay in the release namespace even when they are rendered with helm template and applied with kubectl. Installs through the redis_stack role were not affected: Helm already places namespace-less objects in the release namespace.

Why
charts/redis-stackembedded a modified copy of theredis-stack-serverchart from redis-stack/helm-redis-stack. That repository declares no license, and under Intel IP policy code without a license can't be used or redistributed. This needs to be fixed before the v2.0.1 tag.What changed
charts/redis-stack/charts/redis-stack-server/(6 files).charts/redis-stackis now a single Intel-written chart (Apache-2.0 headers), in the same style ascharts/pgvector: StatefulSet, Service, Secret, NetworkPolicy.redis/redis-stack-server:7.4.0-v8(RSALv2 / SSPL-1.0, Redis Stack 7.4). Redis itself is unchanged.roles/redis_stack/tasks/install.yamlpasses values in the chart's own layout (persistence.*,auth.*,networkPolicy.*).charts/README.md: only add third-party chart code whose license allows Intel to use and redistribute it.Kept the same, for in-place upgrades and existing clients
redis-stack-server; StatefulSet selectorapp: redis-stack-server; volume claimdbat/data.redis-stack-server-credentialswithREDIS_PASSWORDandREDIS_URL.REDIS_ARGS --requirepass, port 6379, tolerations, security context, NetworkPolicy rules (including the Istio HBONE port 15008).Testing
helm lint charts/redis-stackpasses.helm templatewith the values the role passes, compared with the previous chart: the same 4 objects, and the selector, service name, volume claim, image, pull policy, env, mounts, security context, tolerations, Secret data and NetworkPolicy rules are identical. The only differences are explicitprotocol: TCP/targetPortdefaults and standardapp.kubernetes.io/*pod labels.auth.enabled=falserenders no Secret and noREDIS_ARGS; a namespace allowlist, storage class, resources and affinity work.docker/) doesn't use this chart and isn't affected.