Chesnay Schepler created FLINK-34499:
----------------------------------------

             Summary: Configuration#toString should hide sensitive values
                 Key: FLINK-34499
                 URL: https://issues.apache.org/jira/browse/FLINK-34499
             Project: Flink
          Issue Type: Improvement
          Components: Runtime / Configuration
            Reporter: Chesnay Schepler
             Fix For: 1.20.0


Time and time again people log the entire Flink configuration for no reason, 
risking that sensitive values are logged in plain text.

We should make this harder by changing {{Configuration#toString}} to 
automatically hide sensitive values, for example like this:

{code}
    @Override
    public String toString() {
        return ConfigurationUtils
                .hideSensitiveValues(this.confData.entrySet().stream().collect(
                        Collectors.toMap(Map.Entry::getKey, entry -> 
entry.getValue().toString())))
                .toString();
    }
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to