cli, sql, ui: allow all-numeric usernames #42155
Labels
A-security
A-webui-security
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
good first issue
Is your feature request related to a problem? Please describe.
A company evaluating CockroachDB for enterprise deployment ran into an issue in setting up GSSAPI with their Active Directory environment. The company uses numeric employee IDs as Active Directory usernames. CockroachDB requires usernames to start with a letter or underscore, so the company's usernames cannot be mapped to CockroachDB users.
Describe the solution you'd like
The username validation rules should be relaxed to allow all-numeric usernames.
Describe alternatives you've considered
We could also solve this problem by adding more sophisticated functionality for mapping GSSAPI users to CockroachDB users, like Postgres's map functionality, but that would take much more work.
Additional context
Postgres allows numeric usernames:
The text was updated successfully, but these errors were encountered: