532 Commits
Author SHA1 Message Date
Mackenzie MolloyandDaneEveritt 7576d0d08e Added support for viewing and deleting of any Application API Keys (#5176)
This PR closes Issue #5175.

For context, I am aware that Application API Keys are deprecated in
favour of Client API Keys however they are still operational within
Pterodactyl and thus, not fully removed.

Currently in Pterodactyl, as an Admin, you can only view your
Application API Keys on the Admin Panel. In this PR, I made it so all
Application Keys are visible and deletable. The key strings are
obfuscated if the key does not belong to the user viewing.


![image](https://github.com/user-attachments/assets/9edb2533-d99c-4ec3-80cc-25630fd48594)

The reason for adding this is primarily so other admin users can be
aware of and delete another admin user's Application API keys from the
UI. This functionality is useful in the event of a malicious user
compromising an admin account, creating some API Keys to continue their
attacks and the owner of the compromised admin account being unaware of
Application API Keys. In this instance, even after a password reset, the
attack could continue via the Application API without the admin
realising it.

I've tested the creation and deleting of keys along with using keys via
the Application API to ensure no breakages have occurred.

---------

Co-authored-by: DaneEveritt <dane@daneeveritt.com>
2026-02-11 16:03:35 -08:00
Dane Everitt 2bd9d8badd Disconnect SFTP/Websocket when a user is removed as a subuser (#5472) 2025-12-26 17:51:25 -08:00
Dane Everitt a264791fd4 Update PHP and JS dependencies to latest versions and modernize codebase (#5446) 2025-12-20 15:55:13 -08:00
Matthew Penner 8ca098940a chore: update composer dependencies (#5198)
Signed-off-by: Matthew Penner <me@matthewp.io>
2024-10-21 19:18:20 -06:00
Matthew Penner 1d38b4f0e2 Laravel 10 (#4706) 2023-02-23 12:30:16 -07:00
Jelco c74314d2ab Fix file repository not catching 404 responses (#4637) 2023-01-17 15:12:22 -07:00
VibeGAMESNL 680bce6d94 api(client): fix decompress timeout (#4568) 2022-12-12 16:07:13 -07:00
Matthew Penner ee033d6d08 Telemetry (#4564) 2022-11-22 13:39:43 -07:00
Matthew Penner c3521e0221 api(server): fix undefined header 2022-11-21 13:20:50 -07:00
Matthew Penner df2402b54f Streaming Transfers (#4548) 2022-11-14 18:25:07 -07:00
Matthew PennerandDaneEveritt cbcf62086f Upgrade to Laravel 9 (#4413)
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
2022-10-14 10:59:20 -06:00
DaneEveritt 43156e8d53 Improve error messaging for validation exceptions 2022-06-26 16:31:48 -04:00
DaneEveritt c14c7b436e Pass along new fields to Wings instance when endpoint is used; closes #4048 2022-05-28 13:45:23 -04:00
Jim C K Flaten 2680fe4c8e Feature/task order (#3807) 2022-03-28 12:31:35 -07:00
281256e17c Grant all necessary permissions to generated SQL users (#3800)
* grant all necessary permissions to users

* fix CREATE TEMPORARY TABLES

Co-authored-by: A248 <theanandbeh@gmail.com>

Co-authored-by: A248 <theanandbeh@gmail.com>
Co-authored-by: Matthew Penner <me@matthewp.io>
2022-03-28 12:22:37 -07:00
Dane Everitt e96ead4c4d Update API calls to Wings to only pass the required details with the changes to the installer system 2021-08-29 14:09:43 -07:00
Dane Everitt 2d47f986ee Replace calls to server patch with a manual sync method 2021-08-29 13:32:55 -07:00
Dane Everitt 25d9ba4779 Run php-cs-fixer 2021-08-15 17:20:36 -07:00
Matthew Penner 10b357b71e ui(server): fix used backup count (#3526)
* ui(server): fix used backup count

* ui(server): refactor backup count code
2021-08-04 20:34:00 -07:00
Matthew Penner 970f281859 backups: default is_successful to false (#3522)
* backups: default is_successful to false
* backups: properly query backups
2021-08-03 19:45:25 -07:00
Leystryku 298e985d74 Permission for referencing other tables (foreign keys) (#3419) 2021-07-17 10:01:37 -07:00
Stephen White 8459b11019 Allow database users to create/alter/drop routines (#3389)
Database users may wish to create/alter/drop stored procedures on their databases in order to use extra MySQL functionality.
2021-06-05 08:37:10 -07:00
Dane Everitt 00da092e45 Fix tests 2021-01-30 19:12:22 -08:00
Dane Everitt 0a2c89e9f4 Reeformat with new rules post merge 2021-01-25 19:20:51 -08:00
Dane Everitt 663143de0b Merge branch 'develop' into dane/restore-backups 2021-01-25 19:16:40 -08:00
Dane Everitt c449ca5155 Use more standardized phpcs 2021-01-23 12:33:34 -08:00
Dane EverittandMatthew Penner a043071e3c Update to Laravel 8
Co-authored-by: Matthew Penner <me@matthewp.io>
2021-01-23 12:12:54 -08:00
Dane Everitt 87371901c0 Add base logic to support sending a request to restore a backup for a server 2021-01-17 17:51:09 -08:00
Dane Everitt dbb6f69e00 Use proper newline, not literal \n 2020-12-27 16:47:51 -08:00
Dane Everitt 794cf9d9dd Make backup throttling configurable 2020-12-27 16:41:53 -08:00
Dane Everitt 9a57011071 Merge branch 'develop' of https://github.com/Pterodactyl/Panel into develop 2020-12-24 09:15:05 -08:00
Dane Everitt 087c41d5ac Add endpoint to pull a remote file down 2020-12-24 09:15:03 -08:00
Matthew Penner 4b9eab8950 Send ignored_files as a string to wings 2020-12-22 19:31:52 -07:00
Dane Everitt 11054de5b3 Attempt revocation of JWT access when changing a server's owner
closes #2771
2020-12-06 12:16:12 -08:00
Matthew Penner 8611ebb2d6 Add /api/client/servers/{server}/files/chmod endpoint 2020-12-04 09:24:06 -07:00
Dane Everitt 16f49f8dc1 Close cleanup; only try to run power actions against non-suspended & installed servers; closes #2760 2020-11-29 12:50:22 -08:00
Dane Everitt 009f9c297d Revoke JWT JTIs when modifying a subuser's permissions 2020-11-03 21:01:15 -08:00
Matthew Penner 85af073438 Switch to s3 multipart uploads for backups 2020-11-01 15:27:43 -07:00
Dane Everitt c00e5b36a5 Return all servers for a node as a paginated response
Avoids crashing the PHP process and avoids a bad runaway N+1 query issue that previously existed.
2020-10-31 11:14:28 -07:00
Dane Everitt 8c6327fd32 Let MySQL do the time logic when looking for tasks 2020-10-25 15:06:54 -07:00
Dane Everitt c1ee0ac4f8 Add support for executing a scheduled task right now 2020-10-14 20:38:59 -07:00
Dane Everitt 8697185900 Fix up database creation and handling code for servers; ref #2447 2020-10-11 11:59:46 -07:00
Dane Everitt c2db163731 Update node finding service logic to be single query; add test coverage 2020-10-09 22:01:25 -07:00
Dane Everitt 3340ee7fd8 Fix bad encoding when handling files; closes #2399 2020-09-24 20:27:02 -07:00
Dane Everitt 7b57d65edf Cleanup allocation repository 2020-09-13 12:47:05 -07:00
Dane Everitt 9410a54c98 Removed unused interface functions 2020-09-13 12:37:59 -07:00
Dane Everitt d8c338df3e Update all remaining code pathways to use new search tooling 2020-09-13 12:21:44 -07:00
Dane Everitt 703f55271d Remove all references to daemon keys from the codebase 2020-09-13 11:38:42 -07:00
Dane Everitt 4dddcaebb0 Start ripping out old search functionality for models 2020-09-13 11:29:47 -07:00
Dane Everitt 3c7ffaaadb Remove all references of packs from the Panel 2020-09-13 11:13:37 -07:00