charts icon indicating copy to clipboard operation
charts copied to clipboard

Airflow Redis password key value is not used

Open andymeierdev opened this issue 4 years ago • 3 comments

Name and Version

bitnami/airflow 12.0.1

What steps will reproduce the bug?

Set the value of externalRedis.existingSecretPasswordKey to anything other than redis-password

Are you using any custom parameters or values?

externalRedis.existingSecretPasswordKey=password

What is the expected behavior?

Airflow will use the specified redis password secret key

What do you see instead?

Deployment fails because it is looking for hardcoded value redis-password

Additional information

In _helpers.tpl the defined redis key is not actually used. Current:

- name: REDIS_PASSWORD
  valueFrom:
    secretKeyRef:
      name: {{ include "airflow.redis.secretName" . }}
      key: redis-password

Should be

- name: REDIS_PASSWORD
  valueFrom:
    secretKeyRef:
      name: {{ include "airflow.redis.secretName" . }}
      key: {{ include "airflow.redis.existingsecret.key" . }}

andymeierdev avatar Feb 11 '22 11:02 andymeierdev

Hi,

Thank you so much for spotting the issue! Would you like to submit a PR fixing it? We would review it and provide feedback.

javsalgar avatar Feb 14 '22 09:02 javsalgar

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Mar 02 '22 01:03 github-actions[bot]

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

github-actions[bot] avatar Mar 08 '22 01:03 github-actions[bot]