From 930ebec25972f4fb166e82f30e51a517ccfc4bc3 Mon Sep 17 00:00:00 2001 From: Deeman Date: Sun, 22 Feb 2026 14:59:52 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20ADMIN=5FEMAIL=20=E2=86=92=20ADMIN=5FEMAI?= =?UTF-8?q?LS,=20add=20default=20admin=20emails?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename env var to plural (CSV list) in CI yml to match the actual config key. Add hendrik@beanflow.coffee and simon@beanflows.coffee as hardcoded defaults so they get admin access without needing the env var set explicitly. Co-Authored-By: Claude Sonnet 4.6 --- .gitlab/.gitlab-ci.yml | 2 +- web/src/beanflows/core.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index 549639b..9857cd4 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -99,7 +99,7 @@ test:web: # SESSION_LIFETIME_DAYS=${SESSION_LIFETIME_DAYS:-30} # RESEND_API_KEY=$RESEND_API_KEY # EMAIL_FROM=${EMAIL_FROM:-hello@example.com} -# ADMIN_EMAIL=${ADMIN_EMAIL:-} +# ADMIN_EMAILS=${ADMIN_EMAILS:-} # RATE_LIMIT_REQUESTS=${RATE_LIMIT_REQUESTS:-100} # RATE_LIMIT_WINDOW=${RATE_LIMIT_WINDOW:-60} # PADDLE_API_KEY=$PADDLE_API_KEY diff --git a/web/src/beanflows/core.py b/web/src/beanflows/core.py index 2f0b753..cdf765b 100644 --- a/web/src/beanflows/core.py +++ b/web/src/beanflows/core.py @@ -52,7 +52,9 @@ class Config: EMAIL_FROM: str = os.getenv("EMAIL_FROM", "hello@example.com") ADMIN_EMAILS: list[str] = [ - e.strip().lower() for e in os.getenv("ADMIN_EMAILS", "").split(",") if e.strip() + e.strip().lower() + for e in os.getenv("ADMIN_EMAILS", "hendrik@beanflow.coffee,simon@beanflows.coffee").split(",") + if e.strip() ] RATE_LIMIT_REQUESTS: int = int(os.getenv("RATE_LIMIT_REQUESTS", "100"))