HADOOP-14317. KMSWebServer$deprecateEnv may leak secret. Contributed by John Zhuge.

This commit is contained in:
John Zhuge 2017-04-17 22:35:50 -07:00
parent ca2488c009
commit a9f07e0d3e
1 changed files with 3 additions and 4 deletions

View File

@ -105,10 +105,9 @@ public class KMSWebServer {
if (value == null) {
return;
}
String propValue = conf.get(propName);
LOG.warn("Environment variable {} = '{}' is deprecated and overriding"
+ " property {} = '{}', please set the property in {} instead.",
varName, value, propName, propValue, confFile);
LOG.warn("Environment variable {} is deprecated and overriding"
+ " property {}, please set the property in {} instead.",
varName, propName, confFile);
conf.set(propName, value, "environment variable " + varName);
}