Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-34499

Configuration#toString should hide sensitive values

    XMLWordPrintableJSON

Details

    Description

      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:

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

      Attachments

        Activity

          People

            chesnay Chesnay Schepler
            chesnay Chesnay Schepler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: