Make it possible to specify encrypted values in rabbitmq conf (backport #11989)#11992
Merged
michaelklishin merged 6 commits intov4.0.xfrom Aug 14, 2024
Merged
Make it possible to specify encrypted values in rabbitmq conf (backport #11989)#11992michaelklishin merged 6 commits intov4.0.xfrom
michaelklishin merged 6 commits intov4.0.xfrom
Conversation
This makes possible to specify an encrypted
value in rabbitmq.conf using a prefix.
For example, to specify a default user password
as an encrypted value:
``` ini
default_user = bunnies-444
default_pass = encrypted:F/bjQkteQENB4rMUXFKdgsJEpYMXYLzBY/AmcYG83Tg8AOUwYP7Oa0Q33ooNEpK9
```
``` erl
[
{rabbit, [
{config_entry_decoder, [
{passphrase, <<"bunnies">>}
]}
]}
].
```
(cherry picked from commit 1c7e590)
'ctl encode' is unfortunately name and targets advanced.config commands. This introduce a command that targets 'rabbitmq.conf' values and has a more specific name. Eventually 'ctl encode' will be aliased and deprecated, although we still do not have an aliasing mechanism and it won't be in scope for 4.0. (cherry picked from commit c2fdd73)
(cherry picked from commit e1490c6)
(cherry picked from commit 9dc8994)
…ack traces (cherry picked from commit bd1e953)
(cherry picked from commit 8b90d4a)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an extension of an existent
advanced.configfeature:This is an automatic backport of pull request #11989 done by Mergify.