New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bitnami/rabbitmq] invalid credentials issue when extraConfiguration used #4635
Comments
Hi @bmailhe I think this could be the reason why the user/password are not configured: As you can see, it skips invoking the The thing is.. I'm unable to find where we're setting that env. var to "yes" anywhere in the chart. Could you please confirm that, when you access the |
Hi @juan131
No, empty return for |
In the logs I have
|
To keep the directory clear I changed /app to /secret here
Which it now appears like it might have set the password the logs still don't say that it reset the user/pass .... I have set auth.username and auth.password in my values.yaml {edit) tried on a new namespace and it tried to reset the user/pass but failed 09:23:03.29 DEBUG ==> Changing password for user 'admin'... found this in the logs further up |
I managed it to work by adding the user configuration in the load_definition :
and by removing the |
that lines up with the message I saw about not seeding. So for me the question is how I would have to modify the helm chart I'm currently working on which has this chart as a dependency, where I'm pushing through values from that value file. |
Great @bmailhe !! I'm glad you were able to solve by adding the user configuration in the load_definition! @christopher-russell regarding your issue, if you're using RabbitMQ as a subchart, you can still use the |
Thanks @juan131 yes I've tested that but if you set auth.username and auth.password these are ignored and placing them as templated vulues doesn't work as the vulues aren't translated e.g.
|
My configuration looks like this at the moment
|
If you're using RabbitMQ as a subchart, try changing |
unfortunately its not subbing the values in ..
|
Hi @christopher-russell ,
In my case, I am using the chart version |
@miguelaeh di you try that when the rabbitmq chart was a subchart? I'm starting to wonder if that issue is related to helm/helm#2492 Either way I think extra definitions these should be in an overwrite mode not an or as in defaults or definitions or at least a toggle to specify which you would prefer. |
I've managed to get a workaround sorted, by creating the secret in the parent chart and then passing it as an existing secret to rabbit I've attached the config for anyone in the future with the same issue as me . rabbit-definition.conf goes in a conf directory at chart root level secrets in your templates directory config below in your values.yaml
|
Great @christopher-russell !! I'm glad you were able to workaround it!!! |
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. |
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. |
Description
When using
extraSecrets
toloadDefinition
forextraConfiguration
, the user and password defined (in another secret) is made invalid. This occurs when adding this configuration:The message in the log is
ℹ️ Deploying the chart without the
extraSecrets
toloadDefinition
forextraConfiguration
defined above work perfectly.The extra conf is well loaded in the container :
I can also see the
env
forThe secret defining the RABBITMQ_PASSWORD :
the templating for the password is
Steps to reproduce the issue:
extraSecrets
,loadDefinition
andextraConfiguration
extraSecrets
,loadDefinition
andextraConfiguration
(see above). I also tested with an another extra configuration defining only thevhosts
and not thepolicies
and it also fails.Another test
Steps:
extraSecrets
,loadDefinition
andextraConfiguration
sts
to replicas=0secret
with the extra conf, edit thests
to add thevolumeMount
andvolume
for this new secret and edit theconfigmap
to enable theload_definitions = /app/rabbit_policies.json
sts
to 1Versions used
Chart: rabbitmq bitnami v8.0.4
Image tag: 3.8.9-debian-10-r37
The text was updated successfully, but these errors were encountered: