Skip to content

[v14] Fix ListUnifiedResources RBAC#39534

Merged
rosstimothy merged 1 commit into
branch/v14from
bot/backport-39519-branch/v14
Mar 19, 2024
Merged

[v14] Fix ListUnifiedResources RBAC#39534
rosstimothy merged 1 commit into
branch/v14from
bot/backport-39519-branch/v14

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #39519 to branch/v14

@rosstimothy rosstimothy added the no-changelog Indicates that a PR does not require a changelog entry label Mar 18, 2024
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 force-pushed the bot/backport-39519-branch/v14 branch from 34b2bc6 to f45de9d Compare March 18, 2024 21:19
@rosstimothy rosstimothy marked this pull request as ready for review March 18, 2024 21:32
@github-actions github-actions Bot requested review from avatus and zmb3 March 18, 2024 21:33
@rosstimothy rosstimothy enabled auto-merge March 18, 2024 21:36
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from zmb3 March 19, 2024 10:48
@rosstimothy rosstimothy added this pull request to the merge queue Mar 19, 2024
Merged via the queue into branch/v14 with commit b25356b Mar 19, 2024
@rosstimothy rosstimothy deleted the bot/backport-39519-branch/v14 branch March 19, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 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