Skip to content

Make system roles case-insensitive in provision tokens#33053

Merged
atburke merged 2 commits intomasterfrom
atburke/token-role-case
Oct 10, 2023
Merged

Make system roles case-insensitive in provision tokens#33053
atburke merged 2 commits intomasterfrom
atburke/token-role-case

Conversation

@atburke
Copy link
Copy Markdown
Contributor

@atburke atburke commented Oct 5, 2023

This change makes system roles set in a provision token case-insensitive.

Resolves #30768.

Comment thread api/types/provisioning.go Outdated
Comment thread api/types/system_role.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understand that's just not to have an error for ease of usage and idea is it will error out upper?

@zmb3
Copy link
Copy Markdown
Collaborator

zmb3 commented Oct 6, 2023

Can we reuse some of the parsing code added in #9756? This seems duplicative

This change makes system roles set in a provision token
case-insensitive.
@atburke atburke force-pushed the atburke/token-role-case branch from ad79e19 to fbb720c Compare October 9, 2023 19:11
@atburke atburke enabled auto-merge October 9, 2023 19:12
@atburke atburke added this pull request to the merge queue Oct 10, 2023
Merged via the queue into master with commit b10a8e7 Oct 10, 2023
@atburke atburke deleted the atburke/token-role-case branch October 10, 2023 20:38
@public-teleport-github-review-bot
Copy link
Copy Markdown

@atburke See the table below for backport results.

Branch Result
branch/v14 Create PR

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make token roles case insensitive or improve error message

4 participants