Skip to content

Fix ListUnifiedResources RBAC#39519

Merged
rosstimothy merged 1 commit into
masterfrom
tross/unified_rbac
Mar 18, 2024
Merged

Fix ListUnifiedResources RBAC#39519
rosstimothy merged 1 commit into
masterfrom
tross/unified_rbac

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

RBAC works slightly different with the unified resources API so that if a user requests multiple resource kinds, and is only permitted to access a subset of them, only the allowed resources are returned instead of a trace.AccessDenied error. However, the logic for this had a slight omission if the user has access to none of the requested kinds. Prior to this change, in that scenario the API would return nil, nil instead of nil, trace.AccessDenied.

@rosstimothy rosstimothy added backport/branch/v14 no-changelog Indicates that a PR does not require a changelog entry labels Mar 18, 2024
@rosstimothy rosstimothy force-pushed the tross/unified_rbac branch 4 times, most recently from f1a488b to a29338a Compare March 18, 2024 18:31
@rosstimothy rosstimothy marked this pull request as ready for review March 18, 2024 18:31
@rosstimothy rosstimothy requested a review from zmb3 March 18, 2024 18:43
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from capnspacehook March 18, 2024 19:00
RBAC works slightly different with the unified resources API so
that if a user requests multiple resource kinds, and is only
permitted to access a subset of them, only the allowed resources
are returned instead of a trace.AccessDenied error. However, the
logic for this had a slight omission if the user has access to none
of the requested kinds. Prior to this change, in that scenario the
API would return nil, nil instead of nil, trace.AccessDenied.
@rosstimothy rosstimothy enabled auto-merge March 18, 2024 19:29
@rosstimothy rosstimothy added this pull request to the merge queue Mar 18, 2024
Merged via the queue into master with commit 77c2411 Mar 18, 2024
@rosstimothy rosstimothy deleted the tross/unified_rbac branch March 18, 2024 19:53
@public-teleport-github-review-bot
Copy link
Copy Markdown

@rosstimothy See the table below for backport results.

Branch Result
branch/v14 Create PR
branch/v15 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants