Commit Graph
26 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
Boy132 032e4f2e31 Apply node maintenance mode to servers (#4421) 2022-11-06 16:02:30 -07:00
DaneEveritt bd278b2688 Fix install warning display and make it reactive 2022-06-27 20:36:24 -04:00
DaneEveritt dc84af9937 Apply new eslint rules; default to prettier for styling 2022-06-26 15:13:52 -04:00
Dane Everitt 00da092e45 Fix tests 2021-01-30 19:12:22 -08:00
Dane Everitt 805952ac38 Update typescript bindings with new status field 2021-01-17 16:13:49 -08: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 7cf6b4bcfe Only load GA when valid key is provided; closes #2678 2020-11-08 13:18:15 -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 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 91cdbd6c2e Support modifying startup variables for servers 2020-08-22 18:13:59 -07:00
Dane Everitt cae604e79d Include egg variables in the output from the API 2020-08-22 15:43:28 -07:00
Dane Everitt 2278927fb6 Update allocations to support ids; protect endpoints; support notes 2020-07-09 20:36:08 -07:00
Dane Everitt fc9054312d Support modifying the primary allocation for a server 2020-07-09 19:56:46 -07:00
Dane Everitt 5c18fd1f0c Show allocated ports on settings page 2020-07-08 21:42:37 -07:00
Dane Everitt 7b5139b2b1 [Breaking] Return all server allocations in API response 2020-07-08 21:04:45 -07:00
Dane Everitt c419d15907 eslint cleanup 2020-07-04 18:30:50 -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
AreYouScared 71292a7642 Respond with thread limit
Retrun the cpu threads in the api resposne
2020-03-29 17:12:35 -04:00
Dane Everitt ab4c4e7e9e Add basic permissions checking logic to frontend 2020-03-28 17:25:04 -07:00
Dane Everitt 2570b4e2d0 Base code for settings and schedules 2019-12-07 15:58:37 -08:00
Dane Everitt fb9c106448 Update server listing and associated logic to pull from the panel dynamiacally 2019-08-17 16:03:10 -07:00
Dane Everitt f0ca8bc3a3 Handle connecting to websocket instance
Very beta code for handling sockets
2019-06-29 16:14:32 -07:00