From 071355191eeab971c9e7eceab94c99db9229c5ac Mon Sep 17 00:00:00 2001 From: Inferencebot Date: Thu, 5 Nov 2026 16:26:16 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20the=20panel=20authenticates=20to=20the?= =?UTF-8?q?=20portal=20with=20ADMIN=5FTOKEN,=20not=20WEBHOOK=5FTOKEN=20(au?= =?UTF-8?q?dit=20L5=20=E2=80=94=20the=20webhook=20URL=20token=20cannot=20u?= =?UTF-8?q?nlock=20/admin/*)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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