|
@@ -1633,7 +1633,9 @@ fields("sysmon") ->
|
|
|
{"top",
|
|
{"top",
|
|
|
sc(
|
|
sc(
|
|
|
ref("sysmon_top"),
|
|
ref("sysmon_top"),
|
|
|
- #{}
|
|
|
|
|
|
|
+ %% Userful monitoring solution when benchmarking,
|
|
|
|
|
+ %% but hardly common enough for regular users.
|
|
|
|
|
+ #{importance => ?IMPORTANCE_HIDDEN}
|
|
|
)}
|
|
)}
|
|
|
];
|
|
];
|
|
|
fields("sysmon_vm") ->
|
|
fields("sysmon_vm") ->
|
|
@@ -2235,6 +2237,7 @@ common_ssl_opts_schema(Defaults) ->
|
|
|
#{
|
|
#{
|
|
|
default => <<"emqx_tls_psk:lookup">>,
|
|
default => <<"emqx_tls_psk:lookup">>,
|
|
|
converter => fun ?MODULE:user_lookup_fun_tr/2,
|
|
converter => fun ?MODULE:user_lookup_fun_tr/2,
|
|
|
|
|
+ importance => ?IMPORTANCE_HIDDEN,
|
|
|
desc => ?DESC(common_ssl_opts_schema_user_lookup_fun)
|
|
desc => ?DESC(common_ssl_opts_schema_user_lookup_fun)
|
|
|
}
|
|
}
|
|
|
)},
|
|
)},
|
|
@@ -2762,10 +2765,16 @@ str(S) when is_list(S) ->
|
|
|
S.
|
|
S.
|
|
|
|
|
|
|
|
authentication(Which) ->
|
|
authentication(Which) ->
|
|
|
- Desc =
|
|
|
|
|
|
|
+ {Importance, Desc} =
|
|
|
case Which of
|
|
case Which of
|
|
|
- global -> ?DESC(global_authentication);
|
|
|
|
|
- listener -> ?DESC(listener_authentication)
|
|
|
|
|
|
|
+ global ->
|
|
|
|
|
+ %% For root level authentication, it is recommended to configure
|
|
|
|
|
+ %% from the dashboard or API.
|
|
|
|
|
+ %% Hence it's considered a low-importance when it comes to
|
|
|
|
|
+ %% configuration importance.
|
|
|
|
|
+ {?IMPORTANCE_LOW, ?DESC(global_authentication)};
|
|
|
|
|
+ listener ->
|
|
|
|
|
+ {?IMPORTANCE_HIDDEN, ?DESC(listener_authentication)}
|
|
|
end,
|
|
end,
|
|
|
%% poor man's dependency injection
|
|
%% poor man's dependency injection
|
|
|
%% this is due to the fact that authn is implemented outside of 'emqx' app.
|
|
%% this is due to the fact that authn is implemented outside of 'emqx' app.
|
|
@@ -2781,7 +2790,7 @@ authentication(Which) ->
|
|
|
hoconsc:mk(Type, #{
|
|
hoconsc:mk(Type, #{
|
|
|
desc => Desc,
|
|
desc => Desc,
|
|
|
converter => fun ensure_array/2,
|
|
converter => fun ensure_array/2,
|
|
|
- importance => ?IMPORTANCE_HIDDEN
|
|
|
|
|
|
|
+ importance => Importance
|
|
|
}).
|
|
}).
|
|
|
|
|
|
|
|
%% the older version schema allows individual element (instead of a chain) in config
|
|
%% the older version schema allows individual element (instead of a chain) in config
|