Commit Graph
121 Commits
Author SHA1 Message Date
Joshua Piper 66ce0f2a16 Fix 2 SFTP Lockout Ratelimit Bugs (#7257)
Fixes two SFTP lockout bugs:

- `ad374661f` moved the server lookup after the password check, so fake
server identifiers bypassed the rate limit.
- `24f340c9a` keyed the lockout on server + Wings IP, so anyone could
lock every user out of a server.

Unknown servers are now rejected before any credential check, and the
lockout is keyed on the normalised username + resolved server UUID.
2026-10-06 22:46:46 -04:00
Sky Mulley ad374661f2 prevent ability to scrape usernames from panel by preventing timing differences between correct and wrong usernames 2026-10-06 12:53:25 +01:00
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00
Carlton 33695c642d Fix transfer status permission checks (#5573) 2026-03-26 16:53:41 -07:00
Dane Everitt 7c9c56bf51 Scope the remote node token to limit the servers it can manage for backups/transfers (#5476)
Improves the security posture of things more by limiting the servers
that a node can even communicate about with the Panel.
2026-02-11 16:04:09 -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 f8dfef04c4 api(remote): fix oops in BackupStatusController, yet again 2024-05-08 18:08:18 -06:00
Matthew Penner 7bfc265a7e api(remote): fix use of missing node_id field
Fixes #5088
2024-05-04 16:06:13 -06:00
Matthew Penner b1fa3927c1 api(remote): fix oops in BackupStatusController 2024-04-11 10:42:18 -06:00
Matthew Penner 319ca683f8 api(remote): ensure requesting node is checked 2024-04-10 17:38:09 -06:00
Matthew Penner 1d38b4f0e2 Laravel 10 (#4706) 2023-02-23 12:30:16 -07:00
Matthew Penner 6272bb6710 api(remote): cleanup 2022-12-01 11:52:22 -07:00
Matthew Penner 3c278a8c51 api(remote): check if transfer is present before trying to update status 2022-12-01 11:51:26 -07:00
Lance Pioch a4f6870518 server: track reinstall failures differently from initial install failures (#4531) 2022-11-21 13:53:54 -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
Matthew Penner 44598bf724 Support configuring storage class for S3 backup uploads (#4399)
Closes <https://github.com/pterodactyl/panel/issues/4072>
2022-10-04 19:39:25 -06:00
Matthew Penner 2dcc46ecd6 backups: support Cloudflare R2 by listing uploaded parts from Wings 2022-09-26 11:15:52 -06:00
Pascal Zarrad 1ca4b08b48 backups: add S3 part size configuration (#4382) 2022-09-25 14:38:49 -06:00
Matthew Penner 8e1a21563e server: add configuration for install notifications (#4331)
* server: track `installed_at`, only send install notification on first install
* server: add configuration for install notifications
2022-09-25 13:16:58 -06:00
DaneEveritt 2da8042b0f Fix clock() usage causing errors in prod environments 2022-07-24 20:43:14 -04:00
DaneEveritt 7558c0380e Don't log SFTP logins, it just is noisy 2022-07-10 14:30:11 -04:00
DaneEveritt 33ab762f5a Add support for tracking more SFTP specific events 2022-07-09 19:30:38 -04:00
DaneEveritt 2e01891074 Account for natural event naming 2022-07-09 17:53:07 -04:00
DaneEveritt 1eee55b27c Add endpoint needed for recieving and processing activity 2022-07-09 17:45:38 -04:00
DaneEveritt 271197e823 Fix cs-fix run 2022-06-26 16:21:07 -04:00
DaneEveritt 287fd60891 Log activity when modifying account details 2022-05-29 18:48:35 -04:00
DaneEveritt 0b2c0db170 Remove last references to audit logs 2022-05-29 18:20:54 -04:00
DaneEveritt 2fc5a734f9 Update backup logic to use activity logs, not audit logs 2022-05-29 16:19:04 -04:00
DaneEveritt e313dff674 Massively simplify API binding logic
Changes the API internals to use normal Laravel binding which automatically supports nested-models and can determine their relationships. This removes a lot of confusingly complex internal logic and replaces it with standard Laravel code.

This also removes a deprecated "getModel" method and fully replaces it with a "parameter" method that does stricter type-checking.
2022-05-22 14:10:01 -04:00
DaneEveritt d4bf6bd46a Add test coverage and fix permissions mistake 2022-05-15 17:30:57 -04:00
DaneEveritt a9364061c1 Store keys in standard format; query with fingerprint not public key 2022-05-15 16:41:15 -04:00
DaneEveritt b563f13d09 Trim the key provided to query correctly; don't increment throttles when keys aren't found 2022-05-15 16:23:17 -04:00
DaneEveritt 3d6a30c9fd Oops, don't make this abstract 2022-05-15 16:06:00 -04:00
DaneEveritt 412ac5ef39 Have the panel handle all of the authorization for both public key and password based attempts 2022-05-15 16:00:08 -04:00
DaneEveritt e856daee19 Reject requests for public key auth when the user has no keys 2022-05-15 15:47:06 -04:00
DaneEveritt 12927a3202 Update SFTP authentication endpoint to support returning user public keys 2022-05-15 15:37:58 -04:00
DaneEveritt 530558b0f8 Update deprecated JSON response creation and unnecessary middleware 2022-05-04 19:23:01 -04:00
DaneEveritt 34ffaebd3e Run cs-fix, ensure we only install dependency versions supporting 7.4+ 2022-05-04 19:01:29 -04: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
Matthew Penner b4cae916ac transfers: fix allocation array merging logic (#3551) 2021-08-18 12:58:41 -06:00
Dane Everitt 25d9ba4779 Run php-cs-fixer 2021-08-15 17:20:36 -07:00
Matthew Penner 1a79b4827c backups: allow updating a failed backup (#3470) 2021-07-18 08:46:20 -07:00
Dane Everitt d049839ffc Fix deleting a backup that is locked and failed; closes #3404 2021-06-13 10:26:47 -07:00
Lance Pioch 77a3ca682f Change to actual function names to support MariaDB 2021-04-08 17:34:25 -04:00
xcgc 397df3bf71 Update ServerInstallController.php 2021-03-06 15:52:24 +08:00
Dane Everitt 1b2c4931ee Add endpoint logic necessary to reset server states if they get stuck installing/restoring when wings restarts 2021-02-23 21:20:02 -08:00
Matthew Penner 352910f897 api(remote): fix inproper reading of boolean for installation status 2021-02-06 10:16:08 -07:00
Dane Everitt e30a765071 Simplify logic when a server is in an unsupported state 2021-01-30 13:28:31 -08:00