sql, security: use stable IDs to key internal user information #76079
Labels
A-security
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Is your feature request related to a problem? Please describe.
Currently all internal per-user information is keyed by the username. This is not ideal because it makes it difficult to rename a user without breaking things. It's also not ideal because usernames can be considered personal data, but we need to use them in many places in logging.
Currently known places that use username keys: system.users, system.role_options, system.database_role_settings, privilege descriptors, descriptor owner field.
Note: Possibly more places. Please research before trying to complete this issue!
Describe the solution you'd like
Describe alternatives you've considered
N/A
Additional context
relates to #50821
Jira issue: CRDB-12968
Epic CRDB-14475
The text was updated successfully, but these errors were encountered: