36 Commits
Author SHA1 Message Date
Dane Everitt a81c3b4d52 Add support for stripe-style identifiers on existing models with UUIDs (#5548)
This is a partial implementation to begin moving towards stripe-style
identifiers for resources in the system. Any models with an existing
`uuid` column can easily be updated to return an identifier in the
format of `prfx_xyz` where `prfx` is a four character prefix, and `xyz`
is the UUID, encoded using base-32.

These are quite easy to use within the API layer because we just need to
do one quick transformation to extract the UUID for those models. This
PR implements that logic for servers in the `SubstituteClientBindings`
logic.

A future PR will need to come through and handle identifiers for models
that _don't_ currently use UUIDs for reference that we want to expose to
clients. In those cases it is easier to just generate base-32 encoded
UUID7s that get stored in the database and indexed. They follow the same
base approach, but you don't need to do any transformations in the code
(other than stripping the prefix, unless we decide to store the prefix).

There is also now a `PTERODACTYL_USE_SERVER_IDENTIFIERS` environment
variable, that when set to true, updates the front-end and API response
to use this new identifier in place of the `uuidShort` value.
2026-02-14 11:21:57 -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
Boy132 032e4f2e31 Apply node maintenance mode to servers (#4421) 2022-11-06 16:02:30 -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 e9c633fd03 Update transformers and controllers to no longer pull an API key attribute 2022-05-22 15:37:39 -04:00
DaneEveritt 5705d7dbdd Run php-cs-fixer 2022-05-14 16:03:50 -04:00
DaneEveritt 8c63eebf13 Fix fractal errors 2022-05-04 19:35:10 -04:00
DaneEveritt 4252014d18 Update includes definition to match updated package requirements 2022-05-04 19:11:42 -04:00
Dane Everitt 5fdb0a5909 Correctly expose OOM disable state for a server 2021-09-13 21:02:12 -07: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 Everitt b38b8f6465 Mark some fields as deprecated in the API 2021-01-17 16:02:11 -08:00
Dane Everitt a75a347d65 Remove suspended & installing fields, replace with single status field 2021-01-17 15:51:56 -08:00
Matthew Penner fd848985ee Add ServerTransferringException, use is_null 2020-12-17 10:35:54 -07:00
Matthew Penner e6c4a68e4a Update logic for tracking a server's transfer state 2020-12-17 10:35:54 -07:00
Dane Everitt 5bbb36b3cf Support updating docker image for a server from the frontend 2020-12-13 11:07:29 -08:00
Dane Everitt 74b1776c00 Merge pull request #2646 from AreYouRlyScared/#2608
Add admin area link to view config
2020-11-08 11:48:22 -08:00
Dane Everitt c20d53bb17 Always return the primary allocation for a server, even without the allocation permissions 2020-11-07 09:57:53 -08:00
Dane Everitt aba7df3afa Basic concept for the EULA feature to demo how this will all work 2020-11-02 20:52:41 -08:00
Charles Morgan 6d909a4a97 Add admin area link to view config 2020-11-02 00:14:02 -05:00
Dane Everitt d087bebc93 Add some additional test coverage and clean up modification service and suspension service 2020-10-07 21:56:44 -07:00
Dane Everitt 813a671571 Hide startup line from API response if user doesn't have startup permissions 2020-08-22 19:01:42 -07:00
Dane Everitt 1b69d82daa Don't return things a user shouldn't be able to see via the API includes 2020-08-22 16:54:12 -07:00
Dane Everitt cae604e79d Include egg variables in the output from the API 2020-08-22 15:43:28 -07:00
Dane Everitt bfb28f949d [Breaking] Return server allocations automatically as a relation object 2020-07-09 19:17:24 -07:00
Dane Everitt 7b5139b2b1 [Breaking] Return all server allocations in API response 2020-07-08 21:04:45 -07:00
Dane Everitt f1c3762f4d Add base support for definining the number of backups that can be created for a server 2020-04-26 12:12:29 -07:00
Dane Everitt c4f4f1f5c8 Don't show an error in the listing if the server is still installing or suspended 2020-04-25 17:58:09 -07:00
Dane Everitt 5f13531c69 Fix up subuser API response for clients 2019-12-28 12:03:19 -08:00
Dane Everitt 2570b4e2d0 Base code for settings and schedules 2019-12-07 15:58:37 -08:00
Dane Everitt 67ff67a1bd Add endpoints to return a server's egg configuration 2019-09-22 15:30:53 -07:00
Dane Everitt aa61afb58f Add proper server models 2018-05-28 14:11:23 -07:00
Dane Everitt 6e5c365018 Use the client API to load servers on the listing page 2018-05-28 13:23:40 -07:00
Dane Everitt 87b96bdfc8 Add core logic to allow for limited databases and allocations 2018-03-01 20:08:27 -06:00
Dane Everitt cef3e4ced4 Add base routes for managing servers as a client 2018-02-27 21:28:43 -06:00