Merge pull request #9735 from kjellwinblad/kjell/fix/password_log_leak/EMQX-8718
fix: remove password from info logs
This commit is contained in:
commit
370b6b0d2f
|
@ -209,7 +209,7 @@ on_start(
|
|||
?SLOG(info, #{
|
||||
msg => "starting_http_connector",
|
||||
connector => InstId,
|
||||
config => Config
|
||||
config => emqx_misc:redact(Config)
|
||||
}),
|
||||
{Transport, TransportOpts} =
|
||||
case Scheme of
|
||||
|
|
|
@ -65,7 +65,7 @@ on_start(
|
|||
?SLOG(info, #{
|
||||
msg => "starting_ldap_connector",
|
||||
connector => InstId,
|
||||
config => Config
|
||||
config => emqx_misc:redact(Config)
|
||||
}),
|
||||
Servers = emqx_schema:parse_servers(Servers0, ?LDAP_HOST_OPTIONS),
|
||||
SslOpts =
|
||||
|
|
|
@ -155,7 +155,7 @@ on_start(
|
|||
rs -> "starting_mongodb_replica_set_connector";
|
||||
sharded -> "starting_mongodb_sharded_connector"
|
||||
end,
|
||||
?SLOG(info, #{msg => Msg, connector => InstId, config => Config}),
|
||||
?SLOG(info, #{msg => Msg, connector => InstId, config => emqx_misc:redact(Config)}),
|
||||
NConfig = #{hosts := Hosts} = maybe_resolve_srv_and_txt_records(Config),
|
||||
SslOpts =
|
||||
case maps:get(enable, SSL) of
|
||||
|
|
|
@ -149,7 +149,7 @@ on_start(InstId, Conf) ->
|
|||
?SLOG(info, #{
|
||||
msg => "starting_mqtt_connector",
|
||||
connector => InstanceId,
|
||||
config => Conf
|
||||
config => emqx_misc:redact(Conf)
|
||||
}),
|
||||
BasicConf = basic_config(Conf),
|
||||
BridgeConf = BasicConf#{
|
||||
|
|
|
@ -91,7 +91,7 @@ on_start(
|
|||
?SLOG(info, #{
|
||||
msg => "starting_mysql_connector",
|
||||
connector => InstId,
|
||||
config => Config
|
||||
config => emqx_misc:redact(Config)
|
||||
}),
|
||||
SslOpts =
|
||||
case maps:get(enable, SSL) of
|
||||
|
|
|
@ -94,7 +94,7 @@ on_start(
|
|||
?SLOG(info, #{
|
||||
msg => "starting_postgresql_connector",
|
||||
connector => InstId,
|
||||
config => Config
|
||||
config => emqx_misc:redact(Config)
|
||||
}),
|
||||
SslOpts =
|
||||
case maps:get(enable, SSL) of
|
||||
|
|
|
@ -123,7 +123,7 @@ on_start(
|
|||
?SLOG(info, #{
|
||||
msg => "starting_redis_connector",
|
||||
connector => InstId,
|
||||
config => Config
|
||||
config => emqx_misc:redact(Config)
|
||||
}),
|
||||
ConfKey =
|
||||
case Type of
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Password information has been removed from information log messages for http, ldap, mongo, mqtt, mysql, pgsql and redis.
|
|
@ -0,0 +1 @@
|
|||
密码信息已从http、ldap、mongo、mqtt、mysql、pgsql和redis的信息日志消息中删除。
|
Loading…
Reference in New Issue