HyukjinKwon opened a new pull request, #42880:
URL: https://github.com/apache/spark/pull/42880

   ### What changes were proposed in this pull request?
   
   This PR removes the use of `userId` and `sessionId` in `CachedLocalRelation` 
messages and subsequently make `SparkConnectPlanner` use the 
`userId`/`sessionId` of the active session rather than the user-provided 
information.
   
   ### Why are the changes needed?
   
   Allowing a fetch of a local relation using user-provided information is a 
potential security risk since this allows users to fetch arbitrary local 
relations.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Virtually no. It will ignore the session id or user id that users set (but 
instead use internal ones that users cannot manipulate).
   
   ### How was this patch tested?
   
   Manually.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.
   


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