Skip to content

Strengthen MySQL superset password generation - #121

Merged
szachovy merged 2 commits into
masterfrom
fix/89-strengthen-mysql-password
Apr 9, 2026
Merged

Strengthen MySQL superset password generation#121
szachovy merged 2 commits into
masterfrom
fix/89-strengthen-mysql-password

Conversation

@szachovy

@szachovy szachovy commented Apr 8, 2026

Copy link
Copy Markdown
Owner

Replace random.choice with secrets.choice (CSPRNG), expand charset from lowercase-only to ascii_letters+digits+punctuation, and increase length from 12 to 24 characters (~56 to ~157 bits entropy).

Closes #89

szachovy and others added 2 commits April 8, 2026 13:10
Replace random.choice with secrets.choice for CSPRNG, expand charset
from lowercase-only to ascii_letters+digits+punctuation, and increase
length from 12 to 24 characters. The previous password had ~56 bits of
entropy; the new one has ~157 bits.

Closes #89

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@szachovy
szachovy merged commit 2f08bf3 into master Apr 9, 2026
10 of 11 checks passed
@szachovy
szachovy deleted the fix/89-strengthen-mysql-password branch April 9, 2026 13:32
szachovy pushed a commit that referenced this pull request Apr 10, 2026
PR #121 strengthened the password but used string.punctuation which
includes > + [ ] @ : / and other chars that are invalid or require
percent-encoding in a MySQL URI (used in mysql-mgmt --bootstrap and
SQLAlchemy connection strings). Restrict to alphanumeric only: 24
chars of [A-Za-z0-9] gives ~143 bits of entropy which is sufficient.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CM-2: Strengthen MySQL superset password generation

1 participant