Commit Graph
4744 Commits
Author SHA1 Message Date
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
Sky Mulley 4202ba6744 Merge branch '2.0-develop' of https://github.com/pterodactyl/panel into 2.0-develop 2026-10-06 03:31:49 +01:00
Sky Mulley 45eeda1999 only validate for a payload on scheduled actions that require a payload 2026-10-06 03:31:47 +01:00
Anthony 41150ca9fa Update README with new branding and v2 overview 2026-10-05 21:06:10 -05:00
Sky Mulley c2d979702b fix issue where router icons for addresses on server list get squashed at certain resolutions 2026-10-06 02:57:14 +01:00
Sky Mulley db041998d1 add debounce to page preload on links 2026-10-06 02:56:39 +01:00
Sky Mulley 9c623eca71 port fix from 1.0 for display exceptions not returning correctly on api 2026-10-06 02:10:17 +01:00
Sky Mulley 90fc8c7005 fix issue where saving a subuser with more permissions than you would strip their permissions 2026-10-06 01:17:42 +01:00
Sky Mulley 7c29f38e01 prevent deleted users from having their ips leaked in activity logs 2026-10-06 01:11:19 +01:00
Sky Mulley 2098551873 implement extension size cap to prevent zip bombs 2026-10-06 01:10:38 +01:00
Sky Mulley 6533e91b62 don't allow extensions to be installed from admin api 2026-10-06 01:06:15 +01:00
Sky Mulley 5fdc4ec5f6 validate enabled bool on extension install through admin 2026-10-06 00:24:39 +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
robert dennis 98079a0166 rate limit by ip for authentication rate limiter 2026-06-05 14:15:27 -04:00
robert dennis 73eaeb13c6 Update RunHooksCommandTest.php 2026-06-05 12:26:45 -04:00
robert dennis 2f01a047df add lifecycle hook support for install events 2026-06-05 12:25:30 -04:00
MagicDev c227a20f32 fix/apikey-overflow (#5563)
This fixes an overflow bug that occurs on smaller screens on the
ApiKeyModal opening.

**Context**:
Whenever you create an `Client Api Key` the `ApiModal` is opened on the
user's interface and the key is displayed, but as it wasn't correctly
*overflow-protected* it overflows on smaller screens.

- Before:

![Screenshot_20260209-175019](https://github.com/user-attachments/assets/fa14b7c5-6b90-43f9-9ae0-07a87f485fda)
- After:

![Screenshot_20260210-133232.png](https://github.com/user-attachments/assets/c2e907b1-a075-4d7c-8b18-6980c7475337)

Closes #5625
2026-06-05 11:12:09 -04:00
Robert Dennis 676d25c0fd wait for lock properly (#5638)
This PR is a minimal change that acquires a lock on the target model's
row, rather than calling sharedLock() on the model instance.
v1.12.4
2026-05-29 23:47:58 -04:00
Noah Ross a94b8bdb4e Fix API Key Limit Race Condition Bypass (#5620)
The API key creation endpoint checks that a user has fewer than 25 keys
before creating a new one. The problem is that the count was read from
an eager-loaded collection (`$user->apiKeys->count()`) with no lock
held, so concurrent requests could both pass the check and each create a
key, pushing the user past the 25-key cap.

The fix wraps the count check and key creation in a single database
transaction with `lockForUpdate()` on the query. Only one request at a
time can evaluate and modify the count, closing the race window.

### Proof of Concept

Run this in the browser console while authenticated with a user that has
24 API keys:

```js
(async () => {
    const makeKey = (desc) => fetch('/api/client/account/api-keys', {
      method: 'POST',
      headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/json',
        'X-Requested-With': 'XMLHttpRequest',
        'X-XSRF-TOKEN':
  decodeURIComponent(document.cookie.match(/XSRF-TOKEN=([^;]+)/)[1]),
      },
      body: JSON.stringify({ description: desc, allowed_ips: [] }),
    });

    const [r1, r2] = await Promise.all([makeKey('0024'), makeKey('0025')]);
    console.log('0024:', r1.status, (await r1.text()).slice(0, 200));
    console.log('0025:', r2.status, (await r2.text()).slice(0, 200));
})();
```

On the old code, both requests can return 200 (you may need to run this
a few times to hit the race window). After the fix, the second request
correctly returns a 400 error.
v1.12.3
2026-05-23 11:16:18 -07:00
Dane Everitt 7ffcd63631 Attach a scope(s) to JWTs created by the panel (#5636)
Necessary for proper token identification on Wings.
2026-05-23 11:15:36 -07:00
DaneEveritt 3cabff156e Update CHANGELOG.md 2026-05-23 09:23:58 -07:00
Red Banana 760c3db300 Adding java 25 to MC eggs (#5617)
Adding java 25 to the MC eggs, as needed for the newest versions.
2026-04-05 20:21:26 +02:00
Dane Everitt ec7231bd4a Lock resources more explicitly when creating databases or backups (#5613)
Addresses an issue where the concept of a lock was there, but no actual
lock was acquired.
2026-04-01 18:46:01 -07:00
Dane Everitt 56fe10fdd6 Throttle email address changes on accounts to limit enumeration (#5612)
This change applies a rate limit to account email changes to prevent
enumeration on the system. The throttle is applied at the account level.
Administrators can still update an account's email address manually to
bypass this restriction if/when necessary.
2026-04-01 17:54:30 -07:00
Daniel Barton c8a5bf576b Egg: (Paper) Update install script and add Java 25 (#5606)
Update paper egg to use new fill API and add Java 25
2026-03-30 23:35:46 +08:00
DaneEveritt 6d526066ad Update CHANGELOG.md v1.12.2 2026-03-26 16:53:58 -07:00
Carlton 33695c642d Fix transfer status permission checks (#5573) 2026-03-26 16:53:41 -07:00
Loki a5e278e078 Fix log permissions, HASHIDS env var generation, and the two errors that have been showing up since the v1.12.0 update (#5324) 2026-03-26 16:26:15 -07:00
Daniel Barton 51bbd10a01 Fix: Compare to correct variable in startup variable activity log (#5605)
- Fixes issue where the panel would create activity logs even when the
value didn't change
- Log an empty string instead of displaying "null" when the variable is
empty

Closes #5604
2026-03-26 16:24:02 -07:00
VoidValue 62aab79689 Fix: Enable Select2 dropdowns inside modals on Transfer Server (Search functionality now working) (#5590)
closes #5588
2026-03-26 16:23:34 -07:00
Daniel Barton c40f68e48a Fix: Revert changes to RunTaskJob traits to fix scheduled tasks (#5607)
This change reverts changes that were made to the traits (direct and
inherited) to RunTaskJob in
https://github.com/pterodactyl/panel/pull/5568/changes#diff-772e8e2cf1167529b09210b934e9c0ec4fe12d99c35317f293d504aaee5cb95c

Closes #5600
2026-03-26 16:21:35 -07:00
DaneEveritt 0f82c10520 Update CHANGELOG.md v1.12.1 2026-02-14 11:33:24 -08:00
DaneEveritt 6c60596421 bump rate limits until we can improve some bad endpoint calls 2026-02-14 11:27:06 -08:00
Daniel Barton afd306c265 Replace an old reference to quay.io (#5210) 2026-02-14 11:22:54 -08:00
lajczi 0e6b739858 Remove deprecated version in compose file (#5498)
This minor change removes the deprecated `version` property from the
Docker Compose file to avoid the warning when running it, aligning it
with current best practices and recommendations.
2026-02-14 11:22:17 -08:00
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
Dane Everitt 14185a9430 Improve security posture, update dependencies (#5569)
Very minor changes, just adding some default headers in the event people
don't configure this on their webserver. Also updating some packages to
resolve open security alerts.
2026-02-14 11:18:17 -08:00
Dane Everitt 0e74f3aade Improve SFTP session revocation to cover password changes and account deletion (#5568)
This expands upon previous work done to better disconnect users from
SFTP when different events occur within Pterodactyl. This new logic also
accounts for password changes and their account being deleted entirely
from the system.

These events now trigger background jobs that will reach out to every
node they are associated with to ensure they're disconnected if
currently connected.
2026-02-14 10:51:26 -08:00
_KroZen_ 151ac019ae Reset page on showOnlyAdmin change (#5559)
closes #5557
2026-02-12 09:51:10 -08:00
VoidValueandcesarmr-github e5a9706d6c Fix Unicode character width rendering using Unicode11Addon in xterm.js [TO FIX #2484] (#5524)
fixes #2484

Co-authored-by: cesarmr-github <167689141+cesarmr-github@users.noreply.github.com>
2026-02-11 16:05:02 -08: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