panel icon indicating copy to clipboard operation
panel copied to clipboard

Ability to create an application API key from the CLI

Open unixfox opened this issue 5 years ago • 6 comments

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.

unixfox avatar Feb 13 '20 19:02 unixfox

+1

Fabian-Ser avatar Mar 11 '20 22:03 Fabian-Ser

Any chance of getting this in 1.0?

mason-rogers avatar Oct 04 '20 16:10 mason-rogers

Not initially, no.

DaneEveritt avatar Oct 05 '20 15:10 DaneEveritt

That would be a great ideia.

SAMXPS avatar Dec 23 '20 14:12 SAMXPS

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).

slicie avatar Feb 28 '23 03:02 slicie

I have a bit of free time, I am gonna look at what needs to be done to implement this.

GreatSymphonia avatar Apr 02 '24 08:04 GreatSymphonia