[ 
https://issues.apache.org/jira/browse/FLINK-34499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chesnay Schepler reassigned FLINK-34499:
----------------------------------------

    Assignee: Chesnay Schepler

> 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
>            Assignee: Chesnay Schepler
>            Priority: Major
>             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