Enable Redis Authentication
Starting with Helm chart version 3.8.2, the bundled Redis instance is password-protected by default. The chart generates the password automatically, stores it in a Kubernetes Secret, and wires it into both Redis and Appsmith.
This page explains how to enable Redis authentication on existing deployments, including deployments running chart versions older than 3.8.2.
This page applies only to the bundled Redis subchart (redis.enabled: true). If you use an external Redis instance, see External Redis.
Upgrade an existing deployment to chart 3.8.2 or later
For most deployments, enabling Redis authentication is a standard chart upgrade.
-
Update your local chart repository and upgrade:
helm repo update
helm upgrade -i appsmith-ee appsmith-ee/appsmith -n appsmith-ee -f values.yaml -
Verify that the Secret exists:
kubectl get secret appsmith-redis-secret -n appsmith-ee -
Verify that all pods are running and that Appsmith can reach Redis:
kubectl get pods -n appsmith-eeOptionally, test the authenticated connection directly:
kubectl exec -it appsmith-ee-redis-master-0 -n appsmith-ee -- \
sh -c 'REDISCLI_AUTH="<your-redis-password>" redis-cli ping'Replace
<your-redis-password>with the value from theappsmith-redis-secretSecret. The command should returnPONG.
Bring your own password
To control the password yourself, create the Secret before installing or upgrading:
kubectl create secret generic appsmith-redis-secret \
--from-literal=redis-password='<your-password>' \
-n appsmith-ee
To use a different Secret name or key, point the chart at it in values.yaml:
redis:
auth:
existingSecret: my-redis-secret
existingSecretPasswordKey: my-password-key
Opt out
To keep the bundled Redis unauthenticated (for example, in an isolated development cluster), disable auth in values.yaml:
redis:
auth:
enabled: false
This restores the behavior of earlier chart versions: a passwordless Redis.
Air-gapped and restricted networks
The bootstrap Job pulls docker.io/alpine/kubectl:latest by default. If your cluster cannot reach Docker Hub, mirror the image to your private registry and override it in values.yaml:
redisAuth:
passwordInit:
image:
registry: registry.example.com
repository: mirrored/alpine-kubectl
tag: "1.33.1"
Pinning a specific tag is also recommended if you need reproducible deployments.
Enable auth on chart versions before 3.8.2
Chart versions older than 3.8.2 require manual configuration to enable Redis authentication:
-
Create the password Secret:
kubectl create secret generic appsmith-redis-secret \
--from-literal=redis-password='<your-password>' \
-n appsmith-ee -
Point the bundled Redis subchart at the Secret in
values.yaml:redis:
auth:
enabled: true
existingSecret: appsmith-redis-secret
existingSecretPasswordKey: redis-password -
Set the authenticated Redis URL explicitly:
applicationConfig:
APPSMITH_REDIS_URL: "redis://:<your-password>@<release-name>-redis-master.<namespace>.svc.cluster.local:6379"Replace
<release-name>and<namespace>with your Helm release name and namespace.cautionOn charts older than 3.8.2, the password set in
applicationConfigis stored in cleartext in the rendered ConfigMap and in yourvalues.yaml. Upgrading to chart 3.8.2 or later avoids this: the password is injected by Secret reference instead. Remove the manualAPPSMITH_REDIS_URLoverride after upgrading so the chart can manage the URL. -
Apply the changes:
helm upgrade -i appsmith-ee appsmith-ee/appsmith -n appsmith-ee -f values.yaml
ArgoCD on older charts
If you can't use a pre-created Secret, ignore drift on the generated Secret in your Application spec:
spec:
ignoreDifferences:
- kind: Secret
name: <release-name>-redis
jsonPointers:
- /data
This is a workaround, not a recommendation. The pre-created Secret keeps the password deterministic and visible to you, and upgrading to chart 3.8.2 or later removes the problem entirely.
Troubleshooting
Appsmith logs show NOAUTH Authentication required or WRONGPASS
The password in the Secret doesn't match what Redis was started with, typically after editing the Secret manually. After changing the password, restart both Redis and Appsmith so they pick up the new value:
kubectl rollout restart statefulset appsmith-ee-redis-master -n appsmith-ee
kubectl rollout restart statefulset appsmith-ee -n appsmith-ee
The bootstrap Job pod shows ImagePullBackOff
Your cluster can't pull docker.io/alpine/kubectl. Mirror the image and override redisAuth.passwordInit.image as described in Air-gapped and restricted networks.
Appsmith can't resolve the Redis host
This can happen when your Helm release name contains the word redis, which prevents the chart from deriving the correct Redis hostname. Set applicationConfig.APPSMITH_REDIS_URL explicitly with the actual Redis service hostname, or reinstall under a release name without redis in it.
See also
- Helm Chart: Architecture and configuration reference for the Appsmith Helm chart.
- External Redis: Connect Appsmith to a Redis instance outside the cluster.
- Chart parameters reference: Full list of configurable Helm values.