DopplerHQ / kubernetes-operator

Apache License 2.0
44 stars 18 forks source link

RabbitMQ - default-user-credential-updater using Doppler Secrets #48

Open sky29 opened 12 months ago

sky29 commented 12 months ago

Hello,

RabbitMQ has a repository "default-user-credential-updater" which works against Hashicorp Vault: https://github.com/rabbitmq/default-user-credential-updater

Is there any way we can achieve the same through Dopppler ?

I created an enhancement ticket (or query) on their repository, which describes the problem in detail: https://github.com/rabbitmq/default-user-credential-updater/issues/66

Let me know, If anyone has any suggestion.

nmanoogian commented 12 months ago

Hi @sky29, thanks for writing in!

Could you share a bit more about what you're trying to achieve with Doppler and RabbitMQ?

sky29 commented 12 months ago

@nmanoogian

I want to change RabbitMQ default User's password, when I change it in Doppler.

Step by Step Process/Scenario:

This issue is more on RabbitMQ side then Doppler. They seems to have a solution for this using Hashicorp Vault: https://github.com/rabbitmq/default-user-credential-updater but I don't think, it will work with other secret managers like doppler.

nmanoogian commented 11 months ago

Ah, I see! Thanks for walking me through that. Doppler doesn't support this kind of thing out-of-the-box today but there's almost certainly a way to make it work.

I haven't checked out this sidecar before but it looks like it's watching /etc/rabbitmq/conf.d/11-default_user.conf for changes. If that's the case, you might be able to mount that file using volumeMounts or write your own service which copies the username/password from Doppler into that volume.