DBZ-702 Mask SASL configuration

This commit is contained in:
Jiri Pechanec 2018-06-08 00:02:24 +02:00 committed by Gunnar Morling
parent 3bf3e2e989
commit de0e1ad4b5
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@
@Immutable @Immutable
public interface Configuration { public interface Configuration {
public static final Pattern PASSWORD_PATTERN = Pattern.compile(".*password$", Pattern.CASE_INSENSITIVE); public static final Pattern PASSWORD_PATTERN = Pattern.compile(".*password$|.*sasl\\.jaas\\.config$", Pattern.CASE_INSENSITIVE);
/** /**
* The basic interface for configuration builders. * The basic interface for configuration builders.

View File

@ -38,7 +38,7 @@ public final void start(Map<String, String> props) {
} }
LOGGER.info("Starting " + getClass().getSimpleName() + " with configuration:"); LOGGER.info("Starting " + getClass().getSimpleName() + " with configuration:");
config.forEach((propName, propValue) -> { config.withMaskedPasswords().forEach((propName, propValue) -> {
LOGGER.info(" {} = {}", propName, propValue); LOGGER.info(" {} = {}", propName, propValue);
}); });