[bitnami/rabbitmq]fix secure password env hardcode (#13056)

* fix secure password env hardcode

Fixes: https://github.com/bitnami/charts/issues/12924
Signed-off-by: cleverhu <shouping.hu@daocloud.io>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: cleverhu <shouping.hu@daocloud.io>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: cleverhu <shouping.hu@daocloud.io>

Signed-off-by: cleverhu <shouping.hu@daocloud.io>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
cleverhu
2022-10-25 22:27:00 +08:00
committed by GitHub
parent 7d5fba2dc3
commit dfad63c3db
4 changed files with 7 additions and 2 deletions

View File

@@ -23,4 +23,4 @@ name: rabbitmq
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/rabbitmq
- https://www.rabbitmq.com
version: 11.0.4
version: 11.1.0

View File

@@ -94,6 +94,7 @@ The command removes all the Kubernetes components associated with the chart and
| `dnsConfig` | DNS Configuration pod | `{}` |
| `auth.username` | RabbitMQ application username | `user` |
| `auth.password` | RabbitMQ application password | `""` |
| `auth.securePassword` | Whether to set the RabbitMQ password securely. This is incompatible with loading external RabbitMQ definitions | `yes` |
| `auth.existingPasswordSecret` | Existing secret with RabbitMQ credentials (must contain a value for `rabbitmq-password` key) | `""` |
| `auth.erlangCookie` | Erlang cookie to determine whether different nodes are allowed to communicate with each other | `""` |
| `auth.existingErlangSecret` | Existing secret with RabbitMQ Erlang cookie (must contain a value for `rabbitmq-erlang-cookie` key) | `""` |

View File

@@ -224,7 +224,7 @@ spec:
- name: RABBITMQ_DEFINITIONS_FILE
value: {{ .Values.loadDefinition.file | quote }}
- name: RABBITMQ_SECURE_PASSWORD
value: "yes"
value: {{ ternary "yes" "no" .Values.auth.securePassword | quote }}
- name: RABBITMQ_USERNAME
value: {{ .Values.auth.username | quote }}
- name: RABBITMQ_PASSWORD

View File

@@ -123,6 +123,10 @@ auth:
## ref: https://github.com/bitnami/containers/tree/main/bitnami/rabbitmq#environment-variables
##
password: ""
## @param auth.securePassword Whether to set the RabbitMQ password securely. This is incompatible with loading external RabbitMQ definitions
## ref: https://github.com/bitnami/containers/tree/main/bitnami/rabbitmq#environment-variables
##
securePassword: yes
## @param auth.existingPasswordSecret Existing secret with RabbitMQ credentials (must contain a value for `rabbitmq-password` key)
## e.g:
## existingPasswordSecret: name-of-existing-secret