Skip to content

[v14] Use GetRole in the user login state generator, fail if not found.#36321

Merged
mdwn merged 1 commit intobranch/v14from
bot/backport-36314-branch/v14
Jan 5, 2024
Merged

[v14] Use GetRole in the user login state generator, fail if not found.#36321
mdwn merged 1 commit intobranch/v14from
bot/backport-36314-branch/v14

Conversation

@mdwn
Copy link
Copy Markdown
Contributor

@mdwn mdwn commented Jan 5, 2024

Backport #36314 to branch/v14

The user login state generator will use GetRole instead of GetRoles to lookup
roles. GetRole has a more robust fallback when unable to find things in the
cache, so using it directly will make the user login state generator more
robust in general.

Additionally, the user login state generator should not allow missing roles,
so if a role is missing it will now throw an error.
@mdwn mdwn added the no-changelog Indicates that a PR does not require a changelog entry label Jan 5, 2024
@mdwn mdwn enabled auto-merge January 5, 2024 10:31
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from timothyb89 January 5, 2024 17:44
@mdwn mdwn added this pull request to the merge queue Jan 5, 2024
Merged via the queue into branch/v14 with commit bb772ea Jan 5, 2024
@mdwn mdwn deleted the bot/backport-36314-branch/v14 branch January 5, 2024 18:22
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