Commit Graph
4784 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
robert dennis 4a6377c675 provider loading cleanup 2026-10-06 20:11:59 -04:00
robert dennis 368b4bf6a6 regex fixes 2026-10-06 20:11:59 -04:00
robert dennis 5a15f59eab console command fixes 2026-10-06 20:11:59 -04:00
robert dennis c1b7294469 autoload validation 2026-10-06 20:11:59 -04:00
robert dennis cd24c7fe04 action wrapping cleanup 2026-10-06 20:11:59 -04:00
robert dennis 37f9a531c4 dev command tweak 2026-10-06 20:11:59 -04:00
robert dennis dd1f20fc0a nginx tweaks 2026-10-06 20:11:59 -04:00
robert dennis 7db75f2e4a install handling cleanup 2026-10-06 20:11:59 -04:00
robert dennis ce6d0e1fe5 theme asset handling 2026-10-06 20:11:59 -04:00
robert dennis 23a05fc567 minor fixes 2026-10-06 20:11:59 -04:00
robert dennis 8ebfdf8119 settings cleanup 2026-10-06 20:11:59 -04:00
robert dennis 0899d6babb tighten setting file checks 2026-10-06 20:11:59 -04:00
robert dennis 16b0198593 extension route middleware tweaks 2026-10-06 20:11:59 -04:00
robert dennis db5f27bdcd route registration cleanup 2026-10-06 20:11:59 -04:00
Sky Mulley 4adda9b8df don't snap to bottom for new lines in console log 2026-10-06 23:10:31 +01:00
Sky Mulley 9bccb278a9 redirect to intended path after login 2026-10-06 23:05:44 +01:00
Sky Mulley faa806668b mask database password when viewing credentials 2026-10-06 22:32:56 +01:00
Sky Mulley b40a98afa7 don't force docker image selector to inherit the height of the startup parameter field 2026-10-06 22:26:11 +01:00
Sky Mulley 8461ffe454 fix issue where input rules could come off the container card if too long 2026-10-06 22:25:48 +01:00
Sky Mulley 879b3fa11c convert mobile navbar to dropdown, similar to admin 2026-10-06 21:23:17 +01:00
Sky Mulley 829639a316 properly handle extensions adding menu items causing nav to become too long to handle 2026-10-06 21:16:27 +01:00
Sky Mulley 7709f465ca fix issue where navigation labels can't include icons without shifting off centre 2026-10-06 21:09:12 +01:00
Sky Mulley d1c36c3fdd update site icons and favicon to new logo 2026-10-06 18:41:46 +01:00
robert dennis 1776bd4e92 performance tweaks 2026-10-06 13:17:53 -04:00
robert dennis e284c381aa asset handling cleanup 2026-10-06 12:20:52 -04:00
robert dennis e1a1483217 formatting 2026-10-06 11:51:06 -04:00
robert dennis b8c76b9902 tighten asset handling 2026-10-06 11:45:32 -04:00
DarkZmaj fcec806acb Apply Pint formatting to two extension files (#7250)
## Problem

`vendor/bin/pint --test` fails on the current 2.0 development branch,
which fails the Tests workflow for every pull request.

## Reproduction

Run `vendor/bin/pint --test --parallel --cache-file=.pint.cache app
bootstrap/app.php bootstrap/tests.php config database routes tests` on a
clean checkout. It reports two files:
`app/Http/Requests/Api/Admin/Extensions/InstallExtensionRequest.php` and
`app/Services/Extensions/ExtensionPackageLocator.php`.

## Root cause

Two recent changes were merged without running Pint. One docblock uses
`@inheritdoc` where the project style wants `{@inheritdoc}`, and one
blank line contains trailing whitespace.

## Fix

Run Pint on exactly those two files. The change is one docblock line and
one whitespace only line.

## Testing

`vendor/bin/pint --test` on the same paths passes afterwards. No
behaviour changes.

## Compatibility considerations

None. Formatting only.
2026-10-06 15:17:00 +01:00
DarkZmaj be0509dfb7 Apply the Rector changes reported on the current branch (#7251)
## Problem

`vendor/bin/rector --dry-run` reports three files that would change,
which fails the Static Analysis job of the Tests workflow.

## Reproduction

Run `vendor/bin/rector --dry-run --no-progress-bar` on a clean checkout
with PHP 8.4, as the workflow does. Rector lists `PasswordBroker.php`,
`PasswordBrokerManager.php` and `FileController.php`. With PHP 8.3 the
command reports nothing, because some rules depend on the running PHP
version.

## Root cause

Recent changes in these three files were merged without running Rector,
so they differ from the style the project enforces.

## Fix

Apply exactly the changes Rector prints:

* `PasswordBroker`: compare the callback with `instanceof Closure`
instead of `!== null`.
* `PasswordBrokerManager`: use `throw_unless` and `throw_if` with the
exception class string.
* `FileController`: name the caught exception
`$daemonConnectionException` after its type.

## Testing

* `vendor/bin/rector --dry-run` no longer reports changes locally, and
PHPStan and Pint still pass.
* The authentication integration tests and the server file integration
tests pass (86 tests).
* I could not run Rector under PHP 8.4 locally, so the Static Analysis
job of this pull request is the confirmation.

## Compatibility considerations

Behaviour is unchanged. The `instanceof Closure` check is stricter than
a null check only for callbacks that are not closures, and the parameter
is already typed as a nullable closure.
2026-10-06 15:16:49 +01:00
Sky Mulley 0a3bb17f06 switch login default logo to new pterodacty logo 2026-10-06 14:15:31 +01:00
Sky Mulley 240aaf62ea properly handle file permissions regarding to creation and updating 2026-10-06 13:51:34 +01:00
Sky Mulley 76b49b1be1 improve reset password security 2026-10-06 13:13:39 +01:00
Sky Mulley c848794e13 hide recaptcha inputted secret key from settings 2026-10-06 12:57:00 +01: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
Sky Mulley e8fd6f1e29 fix issue where tooltips would block the first press of buttons in the nav on mobile 2026-10-06 12:40:59 +01:00
Sky Mulley 6565d1ea40 dependency bumps 2026-10-06 12:37:03 +01:00
Sky Mulley 0d8cd97d00 bump seroval dependency to 1.6.8 2026-10-06 12:30:32 +01:00
Sky Mulley 652bd19a1c Merge branch '2.0-develop' of https://github.com/pterodactyl/panel into 2.0-develop 2026-10-06 12:19:07 +01:00
Sky Mulley 6bc4fb33c4 fix issue where console terminals could leak between sessions 2026-10-06 12:19:05 +01:00
Anthony e52fdfd416 Fix extension translations staying cached after an extension update
Fixes #7245
2026-10-06 00:18:41 -05:00
Anthony 0a688b2eac Fix console flashing when switching between server pages
Fixes #7246
2026-10-06 00:18:41 -05:00
Anthony eea7881561 Merge pull request #7247 from BletzziDev/fix/editor-focus-ring
Incorrect focused line background overflowing the editor focused border
2026-10-05 23:30:46 -05:00
BletzziandClaude Opus 5.5 55ad1f5e4b Keep the file editor focus ring above the active line and gutters
The focus ring was an outline on .cm-editor with a negative offset. The
scroller and the sticky gutters are positioned, so they painted over it:
the active line hid the ring on the right and the line numbers hid it on
the left. Draw the ring on a ::after layer above them instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 01:01:16 -03:00
robert dennis d3410f8543 fix react doctor errors 2026-10-05 23:28:29 -04:00
robert dennis b77251de1d block react doctor on errors 2026-10-05 23:23:24 -04:00
robert dennis 13361880bb add react doctor workflow 2026-10-05 23:21:34 -04:00
robert dennis 8244e6be04 fix formatting 2026-10-05 23:19:35 -04:00
robert dennis f21c2f0775 upgrade react 2026-10-05 23:13:58 -04:00
robert dennis bb6aaa37b2 add missing dependency 2026-10-05 22:53:45 -04:00