feat(redis): accept wrapped secrets as passwords
This commit is contained in:
parent
4385b2f020
commit
ad72ab7a8c
|
@ -147,7 +147,7 @@ on_start(
|
|||
[
|
||||
{pool_size, PoolSize},
|
||||
{username, maps:get(username, Config, undefined)},
|
||||
{password, eredis_secret:wrap(maps:get(password, Config, ""))},
|
||||
{password, maps:get(password, Config, "")},
|
||||
{auto_reconnect, ?AUTO_RECONNECT_INTERVAL}
|
||||
] ++ Database ++ Servers,
|
||||
Options =
|
||||
|
@ -296,7 +296,7 @@ redis_fields() ->
|
|||
[
|
||||
{pool_size, fun emqx_connector_schema_lib:pool_size/1},
|
||||
{username, fun emqx_connector_schema_lib:username/1},
|
||||
{password, fun emqx_connector_schema_lib:password/1},
|
||||
{password, emqx_connector_schema_lib:password_field()},
|
||||
{database, #{
|
||||
type => non_neg_integer(),
|
||||
default => 0,
|
||||
|
|
Loading…
Reference in New Issue