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.
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.
### 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] resolvespterodactyl/panel#5306
### 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]
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).
### 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] resolvespterodactyl/panel#5631
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>
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>
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.
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.
- 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