panel icon indicating copy to clipboard operation
panel copied to clipboard

Add external manager url for databases

Open itsgatto opened this issue 7 years ago • 1 comments

It would be good to have an option to to provide an external url for each database host, it could be used to provide the location of an external phpmyadmin or similar software installation, it could be a link or a button with the name of "management url" or "manage database" showed for each database entry on the database list of a server, it can also be just an unique field showed somewhere on the databases page. This would be an optional feature, so if no url is provided, no button, link orfield would appear at the panel.

If there's a button/link for each database, it would be good to have the next placeholders so they can be dynamically added to the URL based on the database where it belongs:

  • Username
  • Database name
  • Password

This would allow you to make auto-login urls like this: pma.domain.com/?username={username}&database={database}&password={password}. This is a phpmyadmin feature, but adding it as a placeholder allows you to use it with any software if it supports url parameters for the login details.

Just to clarify, the management software would be totally external, the added feature to pterodactyl would be the ability to provide an url to such management software.

This would make it easier for users, because most of them are already familiar with having an url to manage the database at the same place they get the login details for it. (not going to mention what panels does this, but i'm sure you already know)

itsgatto avatar May 24 '18 05:05 itsgatto

Even though it might be a feature of PHPMyAdmin it's never a good idea to add a password to a url.

Instead make it a post form and add inputs with the type hidden for the username and password. They should be named pma_username and pma_password. This is also supported by pma and is way safer.

Also regarding the idea itself, I don't think this should be something that the panel handles. It would add unnecessary complexity. It's way easier for the user to add the form themselves than it is for the developers to make a configurable system.

However, adding the option for just one simple url that would direct to a login screen for pma (or anything else), could be implemented.

stanjg avatar May 24 '18 08:05 stanjg