Skip to content

Commit

Permalink
[FLINK-15113][config] add fs.azure.account.key to list of sensitive c…
Browse files Browse the repository at this point in the history
…onfigs
  • Loading branch information
NicoK committed Dec 6, 2019
1 parent 06fb0ec commit e9afee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public final class GlobalConfiguration {
public static final String FLINK_CONF_FILENAME = "flink-conf.yaml";

// the keys whose values should be hidden
private static final String[] SENSITIVE_KEYS = new String[] {"password", "secret"};
private static final String[] SENSITIVE_KEYS = new String[] {"password", "secret", "fs.azure.account.key"};

// the hidden content to be displayed
public static final String HIDDEN_CONTENT = "******";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public void testHiddenKey() {
assertTrue(GlobalConfiguration.isSensitive("123pasSword"));
assertTrue(GlobalConfiguration.isSensitive("PasSword"));
assertTrue(GlobalConfiguration.isSensitive("Secret"));
assertTrue(GlobalConfiguration.isSensitive("fs.azure.account.key.storageaccount123456.core.windows.net"));
assertFalse(GlobalConfiguration.isSensitive("Hello"));
}
}

0 comments on commit e9afee7

Please sign in to comment.