Commit Graph
4755 Commits
Author SHA1 Message Date
Faris Basha TM 60a1001581 Fix dead documentation links in README 2026-11-17 21:55:00 -06:00
robert dennis 90b2aa8746 update php v1.15.2 2026-10-21 11:22:26 -04:00
Haseeb f9bc3e5e70 docs: update v2 beta announcement (#7292)
Updates the README to announce the availability of Pterodactyl
v2.0.0-beta.1.

- Adds links to the v2 beta installation guide, v1 upgrade guide, and
release notes.
- Clarifies that v2 is in beta and `1.0-develop` remains the current
stable release line.
2026-10-16 14:24:10 -04:00
Anthony 9b97ae113e Update README with new logo and v2 announcement 2026-10-05 21:06:09 -05:00
robert dennis 113ea43d0d wip 2026-08-15 04:44:53 +09:00
William McGlynn c657f4480e add minesrator as sponsor (#5704) 2026-08-15 04:23:07 +09:00
Robert Dennis e0f2eb4d15 Update CONTRIBUTING.md 2026-08-14 14:55:21 -04:00
Anthony e98678c5a1 Notify the CDN manifest repo when a release is tagged
pterodactyl/pterodactyl-cdn publishes
https://cdn.pterodactyl.io/releases/latest.json, which every install
polls to decide whether to show the update banner. It cannot read the
new version from the API itself, because the release created above is
still a draft and /releases/latest excludes drafts, so the tag is passed
in the dispatch payload.

Prerelease tags are skipped: version_compare on the panel side would
tell every stable install to "upgrade" to a release candidate.

GITHUB_TOKEN cannot be used here as it has no access to another
repository, hence CDN_DISPATCH_TOKEN.
v1.15.1
2026-08-11 19:30:28 -05:00
SkyMulley 850f2b9a4f Disable reinstall action during normal server status if "skip egg install scripts" setting is enabled (#5696)
### Description

You're able to enable a "skip egg install scripts" per server, while
still being able to reinstall a server. With this setting enabled,
reinstalling a server has no functional use, the server is locked and
shutdown, then simply unlocked immediately afterwards after a success
signal from wings. This PR disables the reinstall button when skip
install scripts is enabled for both the user and admin, with a little
component telling you why you cannot reinstall. The reinstall button is
not disabled if the server is in a status that reinstall could resolve
(eg. failed install).

### Resolved issues:
1. [x] resolves pterodactyl/panel#5306
2026-08-10 11:39:22 -04:00
William McGlynn 97ed7f2042 Update README.md (#5695) 2026-08-04 06:08:35 +09:00
robert dennis 1d791ad615 upgrade to laravel 12.x v1.15.0 2026-07-28 04:44:29 +09:00
ProGamingDk 4434733461 Update docker compose command to v2 (#5250) 2026-07-28 00:13:23 +09:00
robert dennis 73d2550e1b relax overly strict permission guards on running schedules 2026-07-28 00:00:51 +09:00
Sanic5238 df22fc5298 fix: Removed backticks from migration script to fix issues with MariaDB connection type. (#5688)
### Summary
Quick one line fix that fixes the migration failure reported in #5683

Most installs load the database/schema/mysql-schema.sql and never have
to replay these migrations, since the environment variable
db_connection=mariadb was set it doesn't use the squashed schema and has
to replay all migrations from 2016. This connection variable is
supported though it seems as per

https://github.com/pterodactyl/panel/blob/1.0-develop/config/database.php#L63
but it also defaulted above to mysql

This field was updated to include the backticks as part of
https://github.com/pterodactyl/panel/commit/8ca098940afb497b8527bc2cfe1bb2bd340ad721

but I'm unable to confirm why, if I've missed something I apologize but
other references in this file seem to also use the barename only this
one was quoted.

### Testing

Built from the current v1.14.1 release branch Dockerfile. With the
schema dump removed to force a full replay for testing with the mysql
database connection aswell.

- MariaDB 11.8.8 - All migrations passed
- MySQL - All Migrations Passed

Installs with the dump present are also unaffected by this modification.

[Apologies for bad formatting, i'm terrible with markdown]
2026-07-27 09:55:43 -04:00
robert dennis c39a7be8f5 Improve email handling v1.14.1 2026-06-28 17:52:34 -04:00
robert dennis ea3b492dd5 Improve key handling 2026-06-28 17:52:22 -04:00
robert dennis ace8effd07 Improve backup handling 2026-06-28 17:51:42 -04:00
robert dennis 913b354aff Improve schedule handling 2026-06-28 17:51:28 -04:00
robert dennis f38836958b adjust node deploy permissions 2026-06-24 15:45:20 -04:00
robert dennis 809122d682 scope node configure flow 2026-06-23 17:05:03 -04:00
robert dennis 24458ea087 fix external id not respecting unique during update closes #5549 v1.14.0 2026-06-22 13:04:40 -04:00
robert dennis ce0783640c preserve file state when refreshing page closes #5450 2026-06-22 12:46:32 -04:00
robert dennis 01bf7b44e7 fix sanctum access token wrapper closes #5591 2026-06-21 18:52:23 -04:00
robert dennis 380e5c5605 normalize directory names for folder creation closes #5466 2026-06-21 18:36:33 -04:00
Aditya Dubey 4de5009014 Fixed compress activity log showing {{file}} instead of the archive filename (#5637)
Fix for #5630 

The compress_one string in resources/lang/en/activity.php referenced
:file as the placeholder, but the backend passes the filename under a
files array. This caused the activity log to render {file}} instead of
the actual filename

Changed :file to :files.0 to correctly resolve the first filename from
the array.

Solution was identified by the issue reporter (@marioenache).
v1.13.0
2026-06-14 20:08:14 -04:00
SkyMulley de034cf090 bugfix: user creation now properly appears in action log (#5644)
### Description

User creation was not properly logged within the action log, neither
from sub-user invite or manual user creation. This PR adds the relevant
log and includes testing.

### Manual testing scenarios

1. Invite a user within any created server
2. Create a user in the admin
3. Verify both users appear as an action in the action log

### Questions or comments

AI was used for secondary testing, QA and code review. No code was
written by AI.

### Resolved issues:
1. [x] resolves pterodactyl/panel#5631
2026-06-14 20:08:14 -04:00
Camille M. d75b538b45 Add a link to the panel update guide (#5593)
This simply adds a link to [this
page](https://pterodactyl.io/panel/1.0/updating.html) when the panel
isn't up to date.
2026-06-14 20:08:14 -04:00
EgoMawandMrSoulPenguin c6033400b4 Update email validation to be strict (#5583)
fixes #5576

---------

Co-authored-by: MrSoulPenguin <28676680+MrSoulPenguin@users.noreply.github.com>
2026-06-14 20:08:14 -04:00
VoidValue 232e6cf4ac Handle server maintenance status in ServerRow (#5525)
Currently, when a node is under maintenance, the server row keeps
loading indefinitely. This means that there will be no requests to the
resource API, and the user will be able to know this without directly
accessing the server.

old:
<img width="1347" height="603" alt="tempsnip"
src="https://github.com/user-attachments/assets/523b6321-6ecc-45d2-8cb4-b6e14a473a44"
/>
new:
<img width="1258" height="618" alt="tempsnip2"
src="https://github.com/user-attachments/assets/5f4b77d5-1c49-4f30-a068-a96f8bc83177"
/>

(I reopened it because I decided to delete my fork to clean things up.
And use better techniques)
2026-06-14 19:45:03 -04:00
VoidValue f217fcabe7 Update Laravel validation doc links to 11.x (#5575)
Replace references to the Laravel 5.7 validation docs with links to the
11.x documentation in resources/views/admin/eggs/variables.blade.php


<img width="374" height="25" alt="image"
src="https://github.com/user-attachments/assets/38090fe3-6ed8-4a73-b700-f8ce8d3060ab"
/>
2026-06-14 19:44:07 -04:00
AhmadandRobert Dennis 776b64d6ba ​Fix: Admin API mobile layout & bulk button states (#5614)
Fixes a couple of UI/UX issues on the Admin Application API page
(`new.blade.php`):

- Mobile Layout: Fixed the radio buttons stacking vertically and
breaking the page on small screens. The table now scrolls horizontally
and stays clean.
- Button States: The bulk select buttons ("Read All", etc.) now
dynamically change color to indicate which option is currently active.

Screenshots:
- Before:
![Screenshot_20260402_172507](https://github.com/user-attachments/assets/2eea7798-5b18-48e4-89a4-aebedb16972e)

- After:
![Screenshot_20260402_172522](https://github.com/user-attachments/assets/7a6b1f8d-89e0-402f-af77-9edd83d5fb97)

Co-authored-by: Robert Dennis <31261583+robertdrakedennis@users.noreply.github.com>
2026-06-14 19:41:30 -04:00
robert dennisandClaude Opus 4.8 f04d2f52f1 Require nodes write permission for node configuration endpoint
The configuration endpoint returns the node's decrypted daemon token, so gate it behind write access instead of read. The shared single-node view request keeps read access.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 19:17:36 -04:00
robert dennisandClaude Opus 4.8 0fe702421b Cast node-reported CPU count to an integer
The admin node view renders the daemon-supplied cpu_count without escaping. Coerce it to an integer so untrusted node telemetry cannot inject markup.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 19:17:29 -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