From b37379c22400e27b59665128f17d3d72c562d06c Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 30 Jun 2021 16:25:53 +0200 Subject: [PATCH] dnsdist: Reduce the "non-hashed password" messages to the info level --- pdns/dnsdist-lua.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index bd646ab0ed..9130bb34a3 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -946,7 +946,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) if (password) { auto holder = make_unique(std::string(*password), false); if (!holder->wasHashed() && holder->isHashingAvailable()) { - warnlog("Passing a plain-text password to 'webserver()' is deprecated, please use 'setWebserverConfig()' with a hashed password instead."); + infolog("Passing a plain-text password to 'webserver()' is deprecated, please use 'setWebserverConfig()' instead and consider generating a hashed password using 'hashPassword()'."); } setWebserverPassword(std::move(holder)); @@ -999,7 +999,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) std::string password = boost::get(vars->at("password")); auto holder = make_unique(std::move(password), hashPlaintextCredentials); if (!holder->wasHashed() && holder->isHashingAvailable()) { - warnlog("Passing a plain-text password via the 'password' parameter to 'setWebserverConfig()' is deprecated, please generate a hashed one using 'hashPassword()' instead."); + infolog("Passing a plain-text password via the 'password' parameter to 'setWebserverConfig()' is not advised, please consider generating a hashed one using 'hashPassword()' instead."); } setWebserverPassword(std::move(holder)); @@ -1009,7 +1009,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) std::string apiKey = boost::get(vars->at("apiKey")); auto holder = make_unique(std::move(apiKey), hashPlaintextCredentials); if (!holder->wasHashed() && holder->isHashingAvailable()) { - warnlog("Passing a plain-text API key via the 'apiKey' parameter to 'setWebserverConfig()' is deprecated, please generate a hashed one using 'hashPassword()' instead."); + infolog("Passing a plain-text API key via the 'apiKey' parameter to 'setWebserverConfig()' is not advised, please consider generating a hashed one using 'hashPassword()' instead."); } setWebserverAPIKey(std::move(holder)); -- 2.47.2