-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Description
Is your feature request related to a problem? Please describe.
rabbitmqctl hash_password
was introduced as an easy way to produce a salted password hash without using HTTP API client library helpers.
It delegates to rabbit_password
, a module shared with the server. However, the rabbit
application key, that picks the hashing algorithm module, won't be set for CLI tools, which means that only the default function can be used with the aforementioned command.
Describe the solution you'd like
Add an option, e.g. --hashing-algorithm
, that would be mapped to a hashing module.
For example,
SHA-256
,sha256
=>rabbit_password_hashing_sha256
SHA-512
,sha512
=>rabbit_password_hashing_sha512
- All other values => either use the default (
rabbit_password_hashing_sha256
)
Describe alternatives you've considered
No response
Additional context
rabbitmqadmin
v2 should arguably provide an equivalent command rabbitmq/rabbitmqadmin-ng#73.