uros-b commented on code in PR #55917:
URL: https://github.com/apache/spark/pull/55917#discussion_r3624122169


##########
sql/connect/server/src/main/scala/org/apache/spark/sql/connect/execution/ExecuteThreadRunner.scala:
##########
@@ -219,6 +219,12 @@ private[connect] class ExecuteThreadRunner(executeHolder: 
ExecuteHolder) extends
         s"Spark Connect - ${Utils.abbreviate(debugString, 128)}")
       session.sparkContext.setInterruptOnCancel(true)
 
+      val sessionUser = executeHolder.sessionHolder.userId

Review Comment:
   Can identity spoofing happen here? For example, clients could select another 
user ID and inherit that user’s permissions. So if Ranger treats this property 
as the authenticated user, then the client may receive admin permissions.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to