171 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
8be2b892c3 fix!: use POST instead of DELETE when disabling 2FA
Signed-off-by: Matthew Penner <me@matthewp.io>
2024-10-24 11:27:42 -06:00
Daniel Barton
2ffe019675 ui(server): support for decompressing .7z files (#5016) 2024-05-04 17:16:00 -06:00
Matthew Penner
8abf2d8106 ui(server): fix defaultValue not being used with VariableBox select 2023-10-20 19:30:25 -06:00
Devonte W
aea5c474db fix(resources/api): allow svg xml format (#4705) 2023-02-23 12:19:58 -07:00
Matthew Penner
fbdac5b63f ui(server): fix reinstall_failed conflict state 2023-01-17 15:21:31 -07:00
Boy132
032e4f2e31 Apply node maintenance mode to servers (#4421) 2022-11-06 16:02:30 -07:00
Boy132
f2095e815e Allow users to change the server description (#4420) 2022-10-31 10:20:53 -06:00
DaneEveritt
e040fd1ebd Fix display of database rows when password is not available
closes #4381
2022-09-17 11:50:40 -07:00
DaneEveritt
d6c30092ec Utilize a unique ID for activity logs to improve rendering perf 2022-07-10 14:53:29 -04:00
DaneEveritt
26d7d7e0e0 Fix SWR key logic 2022-07-04 18:22:58 -04:00
DaneEveritt
d6b6ac6dab Key activity log cache to the server instance, not the user instance. 2022-07-04 18:13:15 -04:00
DaneEveritt
2d836156d2 Update totp disable modal; require password for enable operation 2022-07-03 14:27:37 -04:00
DaneEveritt
4aa163b76f Hide IP addresses from activity logs not generated by the user themselves 2022-06-27 20:52:27 -04:00
DaneEveritt
bd278b2688 Fix install warning display and make it reactive 2022-06-27 20:36:24 -04:00
DaneEveritt
80ae600fe1 Correctly update dependencies for release 2022-06-26 17:31:47 -04:00
DaneEveritt
dc84af9937 Apply new eslint rules; default to prettier for styling 2022-06-26 15:13:52 -04:00
DaneEveritt
8bd518048e Fix excessive re-rendering due to route changesd 2022-06-20 13:19:40 -04:00
DaneEveritt
d47a05881b Show when an event was triggered via the API directly 2022-06-18 12:52:26 -04:00
DaneEveritt
68a654f9e8 Selectively show the additional metadata if it isn't in the display string at all 2022-06-12 15:30:49 -04:00
DaneEveritt
2f1c8ae91d Add basic server activity log view 2022-06-12 15:16:48 -04:00
DaneEveritt
06427f8d13 Don't make two API calls for activity log data 2022-06-11 14:52:33 -04:00
DaneEveritt
0bfba306bf Add filtering support for activity logs 2022-06-05 19:23:25 -04:00
DaneEveritt
c6e8b893c8 Add basic activity log view 2022-06-05 18:35:53 -04:00
DaneEveritt
03a497fb8a Use a post request to delete SSH keys, some hashes use slashes which cause 404 errors; closes #4100 2022-05-30 17:28:42 -04:00
DaneEveritt
a5521ecb79 Add support for returning transforming activity logs on the front-end 2022-05-29 20:34:48 -04:00
DaneEveritt
dca53611ff Ensure we don't cause a mess with the auth providers 2022-05-22 18:16:47 -04:00
DaneEveritt
4d3362b24f Perform a bit of code cleanup 2022-05-22 17:23:48 -04:00
DaneEveritt
be88e4e893 Ignore migrations, pass credentials 2022-05-22 17:01:39 -04:00
DaneEveritt
97280a62a2 Add support for storing SSH keys on user accounts 2022-05-14 17:31:53 -04:00
DaneEveritt
6d5ca5a811 Update java version modal to only suggest allowed images 2022-05-07 18:18:14 -04:00
DaneEveritt
c8faf64059 Support naming docker images on eggs; closes #4052
Bumps PTDL_v1 export images to PTDL_v2, updates the Minecraft specific eggs to use named images.
2022-05-07 17:45:22 -04:00
DaneEveritt
53207abcb3 Add base model layout from V2 for frontend 2022-05-07 16:52:58 -04:00
DaneEveritt
f5ad9b9e11 Replace debug bar with clockwork 2022-05-04 19:19:00 -04:00
Dane Everitt
bf9cbe2c6d Add consistent CSRF token verification to API endpoints; address security concern with non-CSRF protected endpoints 2021-11-16 20:02:18 -08:00
Alex
ef4410bac6 expose uptime to client resources API endpoint (#3705)
resolves #3704
2021-10-24 10:12:17 -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
Mia
bda1ff50ab [UI] Display the 2FA token, show spinner on load (#3367)
Co-authored-by: Dane Everitt <dane@daneeveritt.com>
2021-08-02 20:39:12 -07:00
Dane Everitt
5d5e4ca7b1 Add support for locking backups to prevent any accidental deletions 2021-05-03 21:26:09 -07:00
Dane Everitt
ea057cb1cb Update UI to support setting "Continue on Error" for tasks 2021-05-01 11:24:18 -07:00
Dane Everitt
92cd659db3 Add underlying data changes necessary for new task & schedule features 2021-05-01 10:44:40 -07:00
Matthew Penner
582521f419 fix: backup restore delete all files 2021-03-12 14:47:49 -07:00
Dane Everitt
00da092e45 Fix tests 2021-01-30 19:12:22 -08:00
Dane Everitt
32fb21d0b7 Update use of server error blocks 2021-01-30 18:01:32 -08:00
Dane Everitt
663143de0b Merge branch 'develop' into dane/restore-backups 2021-01-25 19:16:40 -08:00
Dane Everitt
f24193801a Add endpoint for triggering restoration completion 2021-01-18 21:14:49 -08:00
Dane Everitt
805952ac38 Update typescript bindings with new status field 2021-01-17 16:13:49 -08:00
Charles Morgan
ffeedf17e4 Adds months for schedules
Adds month variable for schedules
2021-01-16 22:07:39 -05:00
Jakob Schrettenbrunner
4fd2af028d fix urlencoding in the filemanager 2021-01-02 02:15:32 +01:00
Matthew Penner
01926e2896 Improve logic for logging into the websocket of the target node 2020-12-17 10:35:54 -07:00