Feature Request: Database Password Generation Method Switc #7239
obteo
started this conversation in
Feature Requests
Replies: 1 comment
|
Maybe add a checkbox that lets you switch between the two. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello
I’d like to suggest a small feature for the panel related to database password generation.
At the moment, Pterodactyl generates database passwords using special characters. This is generally fine, but it can cause compatibility problems with older applications or software that uses database connection strings directly, especially when characters such as @, +, %, /, or : are included in the password.
For example, I use BigBrotherBot (B3) with MySQL connection strings in this format:
mysql://username:password@host:3306/databaseSome generated passwords can break parsing in older software unless they are manually URL-encoded or changed afterward.
It would be very useful to have a switch in the Pterodactyl Admin Panel, for example under Database Host or general database settings, allowing the administrator to choose the password generation method:
An optional configurable password length would also be useful.
I currently solved this locally by changing:
Utilities::randomStringWithSpecialCharacters(24)to:
bin2hex(random_bytes(12))inside DatabasePasswordService.php, but this customization can be overwritten during panel updates.
Having this as an official panel option would avoid modifying core files and would improve compatibility with applications that cannot safely handle special characters in database connection strings.
Thank you for considering it.
Best regards,
Teo
All reactions