Additional locations where we have to block Azure credentials from being exposed

This commit is contained in:
Silvio Fiorito 2016-02-08 11:49:21 -05:00
parent 06914727f7
commit 659e7f36e7
2 changed files with 11 additions and 2 deletions

View file

@ -74,7 +74,12 @@ public class ConfigurationsRestApi {
new ZeppelinConfiguration.ConfigurationKeyPredicate() {
@Override
public boolean apply(String key) {
return !key.contains("password") && key.startsWith(prefix);
return !key.contains("password") &&
!key.equals(ZeppelinConfiguration
.ConfVars
.ZEPPELIN_NOTEBOOK_AZURE_CONNECTION_STRING
.getVarName()) &&
key.startsWith(prefix);
}
}
);

View file

@ -728,7 +728,11 @@ public class NotebookServer extends WebSocketServlet implements
new ZeppelinConfiguration.ConfigurationKeyPredicate() {
@Override
public boolean apply(String key) {
return !key.contains("password");
return !key.contains("password") &&
!key.equals(ZeppelinConfiguration
.ConfVars
.ZEPPELIN_NOTEBOOK_AZURE_CONNECTION_STRING
.getVarName());
}
});