messaging-topology-operator icon indicating copy to clipboard operation
messaging-topology-operator copied to clipboard

Creating a passwordless user

Open NikSays opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. RabbitMQ allows creating passwordless users. However when an User resource is added via this operator, the password is required. If the password is not provided, it is automatically generated.

Describe the solution you'd like I see two possible solutions:

  1. If the secret has no password key, generate the password; but if the secret has password: "", disable password auth. (Not backwards compatible)
  2. Add a new noPassword: bool flag to UserSpec.

Describe alternatives you've considered With the right configuration, password auth via AMQP can be disabled for all users, but not individually.

Additional context Management API endpoint /api/users/*name* creates a paswordless user if password_hash: "".

I can implement the noPassword: bool solution and open a PR, just want to be sure that this isn't already possible, and that the maintainers are okay with this solution.

NikSays avatar Aug 05 '24 15:08 NikSays