Scope endpoint deletion to the caller's authorized products - #15742
Scope endpoint deletion to the caller's authorized products#15742svader0 wants to merge 1 commit into
Conversation
Hardening to the endpoint (Location) delete paths. A Location row is shared by every product that records the same value, so both delete paths now route through one helper that removes only the references the caller's products own. Adds regression tests. No functional change for correctly-permissioned users.
|
Thanks for this. I looked into the failing 1.
2. The delete tests can't pass under the OS authorization model (the 2 failures, and the real blocker) With Making So exercising "delete scoped to the caller's authorized products" needs a non-staff user who can delete AND is limited to some products, which only holds under the Pro/RBAC auth filter, not the OS model this suite runs under. Since the PR doesn't change
Happy to help with whichever direction you pick. Leaving the PR to you rather than pushing a change to your branch, since this is a design call. |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Hardening / consistency improvement to endpoint (Location) delete handling.
A Location row is shared by every product that records the same value. Both delete paths now
route through one shared helper. The helper removes only the references the caller's products
own, and it deletes the row itself once nothing points at it any more.
Adds regression tests. No functional change for correctly-permissioned users.