Add Pelican Panel API key support: accept pacc_ (client) and papp_ (application) prefixes alongside Pterodactyl's ptlc_ and ptla_
CI/CD Pipeline / Code Quality & Linting (push) Successful in 58s
CI/CD Pipeline / Security Scanning (push) Successful in 1m13s
CI/CD Pipeline / Unit Tests (Python 3.12) (push) Successful in 4m16s
CI/CD Pipeline / Build Docker Image (push) Successful in 54s
CI/CD Pipeline / Integration Tests (push) Successful in 3m18s
CI/CD Pipeline / Generate Test Report (push) Successful in 3s
CI/CD Pipeline / CI/CD Pipeline Status (push) Successful in 2s

This commit is contained in:
k.eaven committed 2026-10-24 06:51:57 +00:00
1 parent 1f0a63067b
commit 448d1d1448
2 files changed
+7 -7

No files matched your search

+4 -4
View File
@@ -119,12 +119,12 @@ def validate_config():
# Validate API keys have correct prefixes
client_key = config.get("Pterodactyl", "ClientAPIKey", fallback="")
if client_key and not client_key.startswith("ptlc_"):
errors.append("ClientAPIKey should start with 'ptlc_'")
if client_key and not (client_key.startswith("ptlc_") or client_key.startswith("pacc_")):
errors.append("ClientAPIKey should start with 'ptlc_' or 'pacc_'")
app_key = config.get("Pterodactyl", "ApplicationAPIKey", fallback="")
if app_key and not app_key.startswith("ptla_"):
errors.append("ApplicationAPIKey should start with 'ptla_'")
if app_key and not (app_key.startswith("ptla_") or app_key.startswith("papp_")):
errors.append("ApplicationAPIKey should start with 'ptla_' or 'papp_'")
# Validate PanelURL is a valid URL
panel_url = config.get("Pterodactyl", "PanelURL", fallback="")