Paymenter ExtensionsPterodactylSSO
Security model
How PterodactylSSO protects secrets, links, panel access and customer data.
This page summarizes the controls that protect a PterodactylSSO installation. It is a practical overview, not a formal audit. Keep Paymenter, Pterodactyl, the extension and the panel plugin up to date, and report suspected issues privately (see the Discord link at the bottom of troubleshooting).
Credentials and secrets
- Paymenter stores the Application/Client API keys and the SSO secret as encrypted settings; the panel extension stores its shared secret with the panel's encrypted extension-settings storage.
- Secrets are never placed in login URLs. The v2 link contains only the panel user id, expiry, nonce, optional server identifier and signature.
- Use a unique secret per panel. Reusing a secret across panels weakens the isolation between them.
- Use the least-privileged API keys that still work:
- Application API key: root administrator, provisioning only.
- Client API key: a dedicated account with the required server permissions. Root is needed for reverse proxy management.
- Admin API key: optional, used only for diagnostics.
- Rotate keys and the shared secret if they were ever exposed. Rotate the Paymenter and panel values together.
Signed links (Pterodactyl 2.x)
- HMAC-SHA256 over every request parameter, compared with a constant-time comparison.
- Strict parameter validation before any lookup.
- Short lifetime (60 seconds by default) plus a bounded accepted window and a small clock-skew allowance.
- Single-use nonce stored atomically (
Cache::add), so a captured URL cannot be replayed — including when two requests arrive at the same time. - The panel resolves the user from the signed id; no caller-supplied identity is trusted.
- The login is completed through the panel's own login service, regenerating the session, and the successful login is written to the panel activity log.
- Rejected links are logged with the reason and IP.
Panel policy gates
- HTTPS-only by default on the panel side.
- Root administrators blocked by default: a billing session never becomes an administrative panel session.
- Two-factor accounts blocked by default: SSO is not an alternative path into a protected account. When the block is disabled, the normal checkpoint still applies — verify the checkpoint works on your panel build before disabling the block.
- The panel route is rate-limited, and the Paymenter side honors the panel's API rate-limit headers.
Configuration and API access
- API keys support comma-separated rotation; rate limits, 401/403 responses and
Retry-Afterare handled by the extension's API client. - The reverse proxy manager validates the domain, the selected allocation and the server's proxy limit before calling the addon.
- Password generation uses a cryptographically secure random source; rotation is refused for Paymenter administrators and panel root administrators, and password previews (not full passwords) are used in email/audit records.
- Login alerts can notify customers whenever Auto Login, password reveal or password generation happens.
Migration guard rails
The v1 → v2 migration command (pterodactyl-sso:migrate-v2, 2.6.0+):
- verifies the panel is on 2.x, that the panel SSO route exists, and that the shared secret passes a signed probe before writing;
- requires a database backup, writes it to a new exclusive directory and verifies the dump;
- writes all rows in one transaction and verifies the persisted values;
- does not adopt a panel owner whose email differs from the customer's
unless
--adopt-owneris explicitly passed, preventing an SSO link from opening another person's panel account; - warns when the panel owner is a root administrator or has 2FA, because those accounts cannot use auto-login;
- can be replayed from an allowlisted
undo.json, with a pre-rollback snapshot.
See Migrate from 1.x to 2.x for the full procedure.
Operational checklist
- HTTPS on both Paymenter and the panel.
- Unique, long shared secret per panel.
- Root admin and 2FA blocks enabled unless deliberately changed.
- API keys restricted to the required permissions and rotated periodically.
- Keep
storage/app/backupsprivate and prune migration backups under your retention policy. - Review panel activity and Paymenter logs for repeated
paymenter-ssorejections.