Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove OIDC user regexp check #1481

Merged
merged 1 commit into from
Jul 25, 2023
Merged

Remove OIDC user regexp check #1481

merged 1 commit into from
Jul 25, 2023

Conversation

maraino
Copy link
Contributor

@maraino maraino commented Jul 19, 2023

Description

This commit removes the regular expression check on OIDC usernames. Although using any character in a username is not recommended, creating and using them is possible. The tool useradd has the flag --badname, and adduser has --allow-badname and --allow-all-names to create new users with any character.

Moreover, it is possible to create any username with the rest of provisioners.

Fixes #1436

This commit removes the regular expression check on OIDC usernames.
Although it is not recommended to use any character in a username,
it is possible to create and use them. The tool useradd has the flag
--badname and adduser has --allow-badname and --allow-all-names to
create new users with any character.

Moreover, it is possible to create any username with the rest of
provisioners.

Fixes #1436
@github-actions github-actions bot added the needs triage Waiting for discussion / prioritization by team label Jul 19, 2023
@maraino maraino requested review from hslatman and tashian July 19, 2023 18:07
@maraino
Copy link
Contributor Author

maraino commented Jul 19, 2023

@hslatman @tashian This PR can replace the one with the custom regular expression, #1478. What do you think?

@hslatman
Copy link
Member

Shouldn't this be behind a start up flag? It seems the check is now completely removed/disabled.

@maraino
Copy link
Contributor Author

maraino commented Jul 21, 2023

Shouldn't this be behind a start up flag? It seems the check is now completely removed/disabled.

At this moment, I don't see the point of this check. Something to take into account is that principals != usernames. You can configure SSH login a user with a principal ʕ•ᴥ•ʔ as any "valid" username.

@maraino maraino merged commit 95887eb into master Jul 25, 2023
14 checks passed
@maraino maraino deleted the remove-user-regex branch July 25, 2023 17:56
@hslatman hslatman added this to the v0.24.3 milestone Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow SSH usernames to begin with a digit
3 participants