Skip to content

[bitnami/redis] Service binding gives wrong password #15626

@yanghanlin

Description

@yanghanlin

Name and Version

bitnami/redis:17.8.5

What architecture are you using?

None

What steps will reproduce the bug?

Deploy an instance of bitnami/redis with no password set (leaving password generation to this chart) and service bindings enabled:

helm install redis bitnami/redis --set serviceBindings.enabled=true

Inspect the passwords provided by secret redis and secret redis-svcbind (service binding):

kubectl get secrets/redis -o json | jq -r '.data["redis-password"] | @base64d' # output: DANNl007Cc
kubectl get secrets/redis-svcbind -o json | jq -r '.data.password | @base64d' # output: Pozxyif8SK

Are you using any custom parameters or values?

No response

What is the expected behavior?

Passwords provided by secrets redis and redis-svcbind are consistent and both correct.

What do you see instead?

The password provided by secret redis-svcbind (the service binding) is not correct.

Additional information

I believe that I have found the cause of this issue. In this file, the password of Redis instance/cluster being created is generated and assigned to $password:

{{- $password := include "redis.password" . }}

However, when creating the secret redis, the password is generated again:

redis-password: {{ include "redis.password" . | b64enc | quote }}

Metadata

Metadata

Labels

redissolvedstale15 days without activitytech-issuesThe user has a technical issue about an applicationtriageTriage is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions