messaging-topology-operator
messaging-topology-operator copied to clipboard
Creating a passwordless user
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:
- If the secret has no
passwordkey, generate the password; but if the secret haspassword: "", disable password auth. (Not backwards compatible) - Add a new
noPassword: boolflag 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.