Skip to content

Conversation

@GavinFrazar
Copy link
Contributor

Backport #60339 to branch/v18

changelog: Fixed a bug that prevented using database role names longer than 30 chars for MySQL auto user provisioning. Now role names as long as 32 chars, which is the MySQL limit, can be used.

Previously, role names were effectively limited to 30 characters even
though MySQL supports up to 32.

The activation procedure now:
- Unquotes the role name from JSON
- Stores it in a TEXT variable (not a narrow VARCHAR)
- Re-quotes with proper escaping before GRANT

This allows full-length (32-char) role names to work.
@github-actions github-actions bot added backport database-access Database access related issues and PRs size/sm labels Oct 17, 2025
@github-actions github-actions bot requested review from Tener and greedy52 October 17, 2025 20:56
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from greedy52 October 20, 2025 09:34
@GavinFrazar GavinFrazar enabled auto-merge October 20, 2025 17:26
@GavinFrazar GavinFrazar added this pull request to the merge queue Oct 20, 2025
Merged via the queue into branch/v18 with commit 9e595a3 Oct 20, 2025
44 of 45 checks passed
@GavinFrazar GavinFrazar deleted the bot/backport-60339-branch/v18 branch October 20, 2025 18:05
@aadc-dev aadc-dev mentioned this pull request Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport database-access Database access related issues and PRs size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants