Merge pull request #10317 from zmstone/0403-refactor-hide-listener-level-authentication
0403 refactor hide listener level authentication
This commit is contained in:
commit
eeb7b32bc8
|
@ -1880,7 +1880,9 @@ mqtt_listener(Bind) ->
|
||||||
default => <<"3s">>
|
default => <<"3s">>
|
||||||
}
|
}
|
||||||
)},
|
)},
|
||||||
{?EMQX_AUTHENTICATION_CONFIG_ROOT_NAME, authentication(listener)}
|
{?EMQX_AUTHENTICATION_CONFIG_ROOT_NAME, (authentication(listener))#{
|
||||||
|
importance => ?IMPORTANCE_HIDDEN
|
||||||
|
}}
|
||||||
].
|
].
|
||||||
|
|
||||||
base_listener(Bind) ->
|
base_listener(Bind) ->
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
%% -*- mode: erlang -*-
|
%% -*- mode: erlang -*-
|
||||||
{application, emqx_authz, [
|
{application, emqx_authz, [
|
||||||
{description, "An OTP application"},
|
{description, "An OTP application"},
|
||||||
{vsn, "0.1.15"},
|
{vsn, "0.1.16"},
|
||||||
{registered, []},
|
{registered, []},
|
||||||
{mod, {emqx_authz_app, []}},
|
{mod, {emqx_authz_app, []}},
|
||||||
{applications, [
|
{applications, [
|
||||||
|
|
|
@ -492,7 +492,9 @@ authz_fields() ->
|
||||||
?ARRAY(?UNION(UnionMemberSelector)),
|
?ARRAY(?UNION(UnionMemberSelector)),
|
||||||
#{
|
#{
|
||||||
default => [],
|
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},
|
required => {false, recursively},
|
||||||
desc => ?DESC(gateway_common_authentication),
|
desc => ?DESC(gateway_common_authentication),
|
||||||
|
%% we do not expose this to the user for now
|
||||||
|
importance => ?IMPORTANCE_HIDDEN,
|
||||||
examples => emqx_authn_api:authenticator_examples()
|
examples => emqx_authn_api:authenticator_examples()
|
||||||
}
|
}
|
||||||
).
|
).
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Do not expose listener level authentications before extensive verification.
|
|
@ -0,0 +1 @@
|
||||||
|
在大量验证完成前不暴露监听器级的认证功能。
|
Loading…
Reference in New Issue