Skip to content

Commit

Permalink
Allow for tagged values for a few more rabbitmq.conf settings
Browse files Browse the repository at this point in the history
(cherry picked from commit 8b90d4a)
  • Loading branch information
michaelklishin authored and mergify[bot] committed Aug 13, 2024
1 parent 75d6f50 commit 3fd0541
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion deps/rabbit/priv/schema/rabbit.schema
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ end}.
]}.

{mapping, "default_users.$name.password", "rabbit.default_users", [
{datatype, string}
{datatype, [tagged_binary, binary]}
]}.

{mapping, "default_users.$name.configure", "rabbit.default_users", [
Expand Down
4 changes: 2 additions & 2 deletions deps/rabbit/test/config_schema_SUITE_data/rabbit.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ ssl_options.fail_if_no_peer_cert = true",
[{rabbit, [{default_users, [
{<<"a">>, [{<<"vhost_pattern">>, "banana"},
{<<"tags">>, [administrator, operator]},
{<<"password">>, "SECRET"},
{<<"password">>, <<"SECRET">>},
{<<"read">>, ".*"}]}]}]}],
[]},

Expand Down Expand Up @@ -510,7 +510,7 @@ tcp_listen_options.exit_on_close = false",
[{cacertfile,"test/config_schema_SUITE_data/certs/cacert.pem"},
{certfile,"test/config_schema_SUITE_data/certs/cert.pem"},
{keyfile,"test/config_schema_SUITE_data/certs/key.pem"},
{password,"t0p$3kRe7"}]}]}],
{password,<<"t0p$3kRe7">>}]}]}],
[]},
{ssl_options_tls_ver_old,
"listeners.ssl.1 = 5671
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ end}.
[{datatype, {enum, [true, false]}}]}.

{mapping, "auth_http.ssl_options.password", "rabbitmq_auth_backend_http.ssl_options.password",
[{datatype, string}]}.
[{datatype, [tagged_binary, binary]}]}.

{mapping, "auth_http.ssl_options.psk_identity", "rabbitmq_auth_backend_http.ssl_options.psk_identity",
[{datatype, string}]}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
[{cacertfile,"test/config_schema_SUITE_data/certs/invalid_cacert.pem"},
{certfile,"test/config_schema_SUITE_data/certs/invalid_cert.pem"},
{keyfile,"test/config_schema_SUITE_data/certs/invalid_key.pem"},
{password,"t0p$3kRe7"}]}]}],
{password,<<"t0p$3kRe7">>}]}]}],
[]},
{ssl_options_tls_versions,
"auth_http.ssl_options.cacertfile = test/config_schema_SUITE_data/certs/invalid_cacert.pem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ end}.
{mapping, "management.ssl.cacertfile", "rabbitmq_management.ssl_config.cacertfile",
[{datatype, string}, {validators, ["file_accessible"]}]}.
{mapping, "management.ssl.password", "rabbitmq_management.ssl_config.password",
[{datatype, string}]}.
[{datatype, [tagged_binary, binary]}]}.

{mapping, "management.ssl.verify", "rabbitmq_management.ssl_config.verify", [
{datatype, {enum, [verify_peer, verify_none]}}]}.
Expand Down Expand Up @@ -295,7 +295,7 @@ end}.
[{datatype, {enum, [true, false]}}]}.

{mapping, "management.listener.ssl_opts.password", "rabbitmq_management.listener.ssl_opts.password",
[{datatype, string}]}.
[{datatype, [tagged_binary, binary]}]}.

{mapping, "management.listener.ssl_opts.psk_identity", "rabbitmq_management.listener.ssl_opts.psk_identity",
[{datatype, string}]}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ end}.
[{datatype, {enum, [true, false]}}]}.

{mapping, "trust_store.ssl_options.password", "rabbitmq_trust_store.ssl_options.password",
[{datatype, string}]}.
[{datatype, [tagged_binary, binary]}]}.

{mapping, "trust_store.ssl_options.psk_identity", "rabbitmq_trust_store.ssl_options.psk_identity",
[{datatype, string}]}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
{url,"https://example.com"},
{ssl_options,
[{certfile,"test/config_schema_SUITE_data/certs/cert.pem"},
{password,"i_am_password"}]}]}],
{password,<<"i_am_password">>}]}]}],
[rabbitmq_trust_store]}].
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
{mapping, "web_mqtt.ssl.cacertfile", "rabbitmq_web_mqtt.ssl_config.cacertfile",
[{datatype, string}, {validators, ["file_accessible"]}]}.
{mapping, "web_mqtt.ssl.password", "rabbitmq_web_mqtt.ssl_config.password",
[{datatype, string}]}.
[{datatype, [tagged_binary, binary]}]}.

{translation,
"rabbitmq_web_mqtt.ssl_config",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
{certfile,"test/config_schema_SUITE_data/certs/cert.pem"},
{keyfile,"test/config_schema_SUITE_data/certs/key.pem"},
{cacertfile,"test/config_schema_SUITE_data/certs/cacert.pem"},
{password,"changeme"}]}]}],
{password,<<"changeme">>}]}]}],
[rabbitmq_web_mqtt]},

{ssl,
Expand All @@ -108,7 +108,7 @@
{certfile,"test/config_schema_SUITE_data/certs/cert.pem"},
{keyfile,"test/config_schema_SUITE_data/certs/key.pem"},
{cacertfile,"test/config_schema_SUITE_data/certs/cacert.pem"},
{password,"changeme"},
{password,<<"changeme">>},

{versions,['tlsv1.2','tlsv1.1']}
]}]}],
Expand Down Expand Up @@ -145,7 +145,7 @@
{certfile,"test/config_schema_SUITE_data/certs/cert.pem"},
{keyfile,"test/config_schema_SUITE_data/certs/key.pem"},
{cacertfile,"test/config_schema_SUITE_data/certs/cacert.pem"},
{password,"changeme"},
{password,<<"changeme">>},

{honor_cipher_order, true},
{honor_ecc_order, true},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
{mapping, "web_stomp.ssl.cacertfile", "rabbitmq_web_stomp.ssl_config.cacertfile",
[{datatype, string}, {validators, ["file_accessible"]}]}.
{mapping, "web_stomp.ssl.password", "rabbitmq_web_stomp.ssl_config.password",
[{datatype, string}]}.
[{datatype, [tagged_binary, binary]}]}.

{translation,
"rabbitmq_web_stomp.ssl_config",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
{certfile,"test/config_schema_SUITE_data/certs/cert.pem"},
{keyfile,"test/config_schema_SUITE_data/certs/key.pem"},
{cacertfile,"test/config_schema_SUITE_data/certs/cacert.pem"},
{password,"changeme"}]}]}],
{password,<<"changeme">>}]}]}],
[rabbitmq_web_stomp]},

{ssl,
Expand All @@ -99,7 +99,7 @@
{certfile,"test/config_schema_SUITE_data/certs/cert.pem"},
{keyfile,"test/config_schema_SUITE_data/certs/key.pem"},
{cacertfile,"test/config_schema_SUITE_data/certs/cacert.pem"},
{password,"changeme"},
{password,<<"changeme">>},

{versions,['tlsv1.2','tlsv1.1']}
]}]}],
Expand Down Expand Up @@ -136,7 +136,7 @@
{certfile,"test/config_schema_SUITE_data/certs/cert.pem"},
{keyfile,"test/config_schema_SUITE_data/certs/key.pem"},
{cacertfile,"test/config_schema_SUITE_data/certs/cacert.pem"},
{password,"changeme"},
{password,<<"changeme">>},

{honor_cipher_order, true},
{honor_ecc_order, true},
Expand Down

0 comments on commit 3fd0541

Please sign in to comment.