pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.81k stars 1.74k forks source link

Ability to create an application API key from the CLI #1831

Open unixfox opened 4 years ago

unixfox commented 4 years ago

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.

Fabian-Ser commented 4 years ago

+1

mason-rogers commented 4 years ago

Any chance of getting this in 1.0?

DaneEveritt commented 4 years ago

Not initially, no.

SAMXPS commented 3 years ago

That would be a great ideia.

slicie commented 1 year ago

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

GreatSymphonia commented 7 months ago

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