@@ -434,13 +434,12 @@ end}.
434
434
% % ===========================================================================
435
435
436
436
% % Choose the available SASL mechanism(s) to expose.
437
- % % The two default (built in) mechanisms are 'PLAIN' and
438
- % % 'AMQPLAIN'. Additional mechanisms can be added via
439
- % % plugins.
437
+ % % The three default (built in) mechanisms are 'PLAIN', 'AMQPLAIN' and 'ANONYMOUS'.
438
+ % % Additional mechanisms can be added via plugins.
440
439
% %
441
440
% % See https://www.rabbitmq.com/authentication.html for more details.
442
441
% %
443
- % % {auth_mechanisms, ['PLAIN', 'AMQPLAIN']},
442
+ % % {auth_mechanisms, ['PLAIN', 'AMQPLAIN', 'ANONYMOUS' ]},
444
443
445
444
{mapping , " auth_mechanisms.$name" , " rabbit.auth_mechanisms" , [
446
445
{datatype , atom }]}.
@@ -725,6 +724,21 @@ end}.
725
724
end
726
725
end }.
727
726
727
+ % % Connections that skip SASL layer or use SASL mechanism ANONYMOUS will use this identity.
728
+ % % Setting this to a username will allow (anonymous) clients to connect and act as the
729
+ % % given user without authenticating. For production environments, set this value to 'none'.
730
+ {mapping , " anonymous_login_user" , " rabbit.anonymous_login_user" ,
731
+ [{datatype , [{enum , [none ]}, string ]}]}.
732
+
733
+ {translation , " rabbit.anonymous_login_user" ,
734
+ fun (Conf ) ->
735
+ case cuttlefish :conf_get (" anonymous_login_user" , Conf ) of
736
+ none -> none ;
737
+ User -> list_to_binary (User )
738
+ end
739
+ end }.
740
+
741
+
728
742
% %
729
743
% % Default Policies
730
744
% % ====================
@@ -2639,32 +2653,6 @@ end}.
2639
2653
end
2640
2654
}.
2641
2655
2642
- % ===============================
2643
- % AMQP 1.0
2644
- % ===============================
2645
-
2646
- % % Connections that skip SASL layer or use SASL mechanism ANONYMOUS will connect as this account.
2647
- % % Setting this to a username will allow clients to connect without authenticating.
2648
- % % For production environments, set this value to 'none'.
2649
- {mapping , " amqp1_0.default_user" , " rabbit.amqp1_0_default_user" ,
2650
- [{datatype , [{enum , [none ]}, string ]}]}.
2651
-
2652
- {mapping , " amqp1_0.default_vhost" , " rabbit.amqp1_0_default_vhost" ,
2653
- [{datatype , string }]}.
2654
-
2655
- {translation , " rabbit.amqp1_0_default_user" ,
2656
- fun (Conf ) ->
2657
- case cuttlefish :conf_get (" amqp1_0.default_user" , Conf ) of
2658
- none -> none ;
2659
- User -> list_to_binary (User )
2660
- end
2661
- end }.
2662
-
2663
- {translation , " rabbit.amqp1_0_default_vhost" ,
2664
- fun (Conf ) ->
2665
- list_to_binary (cuttlefish :conf_get (" amqp1_0.default_vhost" , Conf ))
2666
- end }.
2667
-
2668
2656
{mapping , " stream.replication.port_range.min" , " osiris.port_range" , [
2669
2657
{datatype , [integer ]},
2670
2658
{validators , [" non_zero_positive_integer" ]}
0 commit comments