You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (Jira)" <ji...@apache.org> on 2024/02/22 17:08:00 UTC

[jira] [Assigned] (FLINK-34499) Configuration#toString should hide sensitive values

     [ 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)