sql: GRANT gets confused when username argument is not normalized #65556
Labels
A-security
A-sql-privileges
SQL privilege handling and permission checks.
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-server-and-security
DB Server & Security
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Describe the problem
usernames are supposed to be case insensitive. Grant seems to be case sensitive.
To Reproduce
What did you do? Describe in your own words.
CREATE USER "v-root-keycloak-ruKOXLtxBFOd6iO473d7-1621531073" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}';
GRANT ALL ON DATABASE keycloak TO "v-root-keycloak-ruKOXLtxBFOd6iO473d7-1621531073";
Expected behavior
GRANT should succeed because usernames are case-insensitive.
Environment:
Additional context
What was the impact?
A partner at Red Hat is working on Vault/Keycloak integration for customers to have a solution to manage users and permissions.
Epic CRDB-7217
The text was updated successfully, but these errors were encountered: