Browse Source

refactor: no support for listener level authentication for now

Zaiming (Stone) Shi 2 years atrás
parent
commit
2d6ca69ffb
2 changed files with 5 additions and 1 deletions
  1. 3 1
      apps/emqx/src/emqx_schema.erl
  2. 2 0
      apps/emqx_gateway/src/emqx_gateway_schema.erl

+ 3 - 1
apps/emqx/src/emqx_schema.erl

@@ -1880,7 +1880,9 @@ mqtt_listener(Bind) ->
                         default => <<"3s">>
                     }
                 )},
-            {?EMQX_AUTHENTICATION_CONFIG_ROOT_NAME, authentication(listener)}
+            {?EMQX_AUTHENTICATION_CONFIG_ROOT_NAME, (authentication(listener))#{
+                importance => ?IMPORTANCE_HIDDEN
+            }}
         ].
 
 base_listener(Bind) ->

+ 2 - 0
apps/emqx_gateway/src/emqx_gateway_schema.erl

@@ -580,6 +580,8 @@ authentication_schema() ->
         #{
             required => {false, recursively},
             desc => ?DESC(gateway_common_authentication),
+            %% we do not expose this to the user for now
+            importance => ?IMPORTANCE_HIDDEN,
             examples => emqx_authn_api:authenticator_examples()
         }
     ).