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

Redact sensitive information in Spark Thrift Server log

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.2
    • 3.2.0, 3.1.3
    • Security, SQL
    • None

    Description

      Spark Thrift Server logs query without sensitive information redaction in org.apache.spark.sql.hive.thriftserver.SparkExecuteStatementOperation.scala

        override def runInternal(): Unit = {
          setState(OperationState.PENDING)
          logInfo(s"Submitting query '$statement' with $statementId")
      

      Logs

      21/08/03 20:49:46 INFO SparkExecuteStatementOperation: Submitting query 'CREATE OR REPLACE TEMPORARY VIEW test_view
          USING org.apache.spark.sql.jdbc
          OPTIONS (
              url="jdbc:mysql://example.com:3306",
              driver="com.mysql.jdbc.Driver",
              dbtable="example.test",
              user="my_username",
              password="my_password"
          )' with 37e5d2cb-aa96-407e-b589-7cb212324100
      21/08/03 20:49:46 INFO SparkExecuteStatementOperation: Running query with 37e5d2cb-aa96-407e-b589-7cb212324100
      

      Attachments

        Activity

          People

            sarutak Kousuke Saruta
            dnskrv Denis Krivenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: