AV-293347 fix(utils): resolve tenant_ref via user-tenant-list to avoid Tenant-read RBAC dependency - #714
Open
Rohan-sss1 wants to merge 1 commit into
Open
AV-293347 fix(utils): resolve tenant_ref via user-tenant-list to avoid Tenant-read RBAC dependency#714Rohan-sss1 wants to merge 1 commit into
Rohan-sss1 wants to merge 1 commit into
Conversation
…d Tenant-read RBAC dependency Signed-off-by: Rohan Suryawanshi <rohan.suryavanshi@broadcom.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
requires the Tenant-read RBAC permission — users without it got a 403 on every create/read/update/delete of a resource with a
tenant_ref.
letting a nonexistent/inaccessible tenant name resolve to an empty tenant_ref (objects landed in the default tenant instead of
failing).
in, not Tenant-read, and returns exactly the tenants the calling user can access.
replacing the direct, permission-gated tenant API calls in APICreate, APIUpdate, APIRead, and APIDelete.
through to the generic "not found → clear id, continue" handling, so a nonexistent tenant name is now a hard plan-time error instead
of a silent empty tenant_ref.
Test plan
permission (previously 403).