tanishqgandhi1908 opened a new issue, #9227:
URL: https://github.com/apache/texera/issues/9227

   ### What happened?
   
   With COMPUTING_UNIT_SHARING_ENABLED=false, shared units disappear from the 
sharee’s list, and the share and revoke endpoints return 403. But existing 
computing_unit_user_access grants still give access. 
ComputingUnitAccess.getComputingUnitAccess (used by the access-control gateway 
and the mount endpoint) and ComputingUnitAccessResource.hasWriteAccess (used by 
rename) don’t check the flag.
   
   So a user who was given access before sharing was disabled can still connect 
to the owner’s unit and run workflows on it. The owner can’t see or revoke that 
access, because revoke is also blocked while sharing is disabled.
   
   Expected: while sharing is disabled, only the owner can access a unit. 
Existing grants are kept, and work again if sharing is re-enabled.
   
   ### How to reproduce?
   
   1. With sharing enabled, user A creates a computing unit and shares it with 
user B (READ or WRITE).
   2. Disable sharing (COMPUTING_UNIT_SHARING_ENABLED=false) and restart the 
services.
   3. As B, the unit no longer appears in the list, but connecting to it 
through the gateway (/api/auth?cuid=<cuid>) is still allowed. With WRITE, B can 
still rename or mount onto it.
   4. As A, revoking B returns 403: “The computing unit sharing feature is 
disabled by the administrator.”
   
   ### Version/Branch
   
   1.4.0-incubating-SNAPSHOT (main)
   
   ### Commit Hash (Optional)
   
   _No response_
   
   ### What browsers are you seeing the problem on?
   
   _No response_
   
   ### Relevant log output
   
   ```shell
   
   ```


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