Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-29247

HiveClientImpl may be log sensitive information

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 2.4.5, 3.0.0
    • SQL
    • None

    Description

      HiveClientImpl may be log sensitive information. e.g. url, secret and token:

            logDebug(
              s"""
                 |Applying Hadoop/Hive/Spark and extra properties to Hive Conf:
                 |$k=${if (k.toLowerCase(Locale.ROOT).contains("password")) "xxx" else v}
               """.stripMargin)
      

      We need to redact it. Please refer to SQLConf.get.redactOptions.

      https://github.com/apache/spark/blob/c8628354b7d2e6116b2a6eb3bdb2fc957c91fd03/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala#L181-L185

      Attachments

        Issue Links

          Activity

            People

              angerszhuuu angerszhu
              yumwang Yuming Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: