JingsongLi commented on PR #758:
URL: https://github.com/apache/paimon-rust/pull/758#issuecomment-5771953279

   [P1] Validate the loaded base table UUID before accepting a branch auth-off 
response (crates/paimon/src/table/rest_env.rs:118).
   
   A branch copied from base A retains A's location and snapshot managers. If A 
enables restricted query auth and the REST name is recreated as B at a new path 
with branch auth off, this early return trusts B's false without checking the 
original base UUID. The stale handle can then plan A's old branch files without 
a grant. A focused mock-server regression changing the base UUID and branch 
response failed as expected: the branch plan succeeded when it should have 
refused. The branch endpoint may have a distinct UUID; checking the base 
identifier against RESTEnv's stored UUID before trusting branch false avoids 
rejecting legitimate branches.


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

Reply via email to