Open unixfox opened 4 years ago
+1
Any chance of getting this in 1.0?
Not initially, no.
That would be a great ideia.
I think this is a critical component for allowing cloud providers to automate deploying servers with Pterodactyl.
We're allowing people to deploy servers with Pterodactyl already installed, and the artisan implementation allows you to get very close to the moment of allowing someone to simply create an egg, but it's not nearly as complete as the API.
We would like to, for instance, handle configuring an allocation for the user. Without an artisan command to do that, it leaves us wishing we could use the API... but without an artisan command to make the API key, we're left to decide if we want to come up with a sort of hackish solution to this (for instance, inserting directly into the allocations table).
I have a bit of free time, I am gonna look at what needs to be done to implement this.
Is your feature request related to a problem? Please describe. I would like to automate the creation of an application API key. This automation is used when deploying a new Pterodactyl installation with an external application that communicate with the API. The ability to automatically create an application API key is great to avoid asking the user to manually generate an application API key and make the external application integration with Pterodactyl seamless to the user.
Describe the solution you'd like An artisan command like
php artisan p:application-api:create-key
. To make it easy to release this feature, a first implementation would create an application API key with all permissions.Describe alternatives you've considered There is currently none.