0403 refactor hide listener level authentication
@@ -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) ->
@@ -1,7 +1,7 @@
%% -*- mode: erlang -*-
{application, emqx_authz, [
{description, "An OTP application"},
- {vsn, "0.1.15"},
+ {vsn, "0.1.16"},
{registered, []},
{mod, {emqx_authz_app, []}},
{applications, [
@@ -492,7 +492,9 @@ authz_fields() ->
?ARRAY(?UNION(UnionMemberSelector)),
#{
default => [],
- desc => ?DESC(sources)
+ desc => ?DESC(sources),
+ %% doc_lift is force a root level reference instead of nesting sub-structs
+ extra => #{doc_lift => true}
)}
@@ -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()
).
@@ -0,0 +1 @@
+Do not expose listener level authentications before extensive verification.
+在大量验证完成前不暴露监听器级的认证功能。