diff --git a/app/main.py b/app/main.py index 3067814..3756476 100644 --- a/app/main.py +++ b/app/main.py @@ -6,7 +6,9 @@ Security model: - Access is further restricted to a small ADMIN_USERNAMES allowlist (checked against the injected username), so only designated admins see this panel. - This app calls the member portal's /admin/overview and /admin/set-balance - endpoints, authenticated with the portal's WEBHOOK_TOKEN (ADMIN_TOKEN). + endpoints, authenticated with the portal's dedicated ADMIN_TOKEN (the + X-Admin-Token header — NOT the webhook's URL token, which cannot unlock + /admin/*). Environment (Cloudron env vars): PORTAL_BASE — base URL of the member portal