Skip to content

rabbitmqctl encode command fail during chipher operation #11053

Answered by michaelklishin
guoard asked this question in Other
Discussion options

You must be logged in to vote

So the value is parsed as an Erlang term, which allows you to encode arbitrary values but sadly, exposing the internals of Erlang data structures used.

# <<"Abc">> is an Erlang binary
rabbitmqctl encode '<<"Binary value to encode">>' '<<"pa$$phAs3">>' --print-stacktrace

works just fine because it does not interpret Abc as an unbound local ("variable").

Perhaps the command should by default assume that the value is a binary but that may or may not be a safe thing to ship in 3.13.x.

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@michaelklishin
Comment options

@michaelklishin
Comment options

@michaelklishin
Comment options

Comment options

You must be logged in to vote
1 reply
@michaelklishin
Comment options

Answer selected by michaelklishin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #11053 on April 22, 2024 12:25.