From 6302e56e7cf1c230be1c9fb0940ceb7d390d6352 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Mon, 23 Mar 2026 07:19:14 -0700 Subject: [PATCH] fix(gateway): add all missing platform allowlist env vars to startup warning check (#2628) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(gateway): added MATRIX_ALLOWED_USERS to list of env vars checked by gateway * fix(gateway): add all missing platform allowlist env vars to startup check The startup warning for 'No user allowlists configured' was only checking TELEGRAM, DISCORD, WHATSAPP, SLACK, and SMS — missing SIGNAL, EMAIL, MATTERMOST, and DINGTALK. Users of those platforms would see a spurious warning even with their platform-specific allowlist configured. Now matches the canonical platform_env_map in _is_user_authorized(). --------- Co-authored-by: SteelPh0enix --- gateway/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gateway/run.py b/gateway/run.py index b6949fc8..7876565b 100644 --- a/gateway/run.py +++ b/gateway/run.py @@ -904,7 +904,9 @@ class GatewayRunner: os.getenv(v) for v in ("TELEGRAM_ALLOWED_USERS", "DISCORD_ALLOWED_USERS", "WHATSAPP_ALLOWED_USERS", "SLACK_ALLOWED_USERS", - "SMS_ALLOWED_USERS", + "SIGNAL_ALLOWED_USERS", "EMAIL_ALLOWED_USERS", + "SMS_ALLOWED_USERS", "MATTERMOST_ALLOWED_USERS", + "MATRIX_ALLOWED_USERS", "DINGTALK_ALLOWED_USERS", "GATEWAY_ALLOWED_USERS") ) _allow_all = os.getenv("GATEWAY_ALLOW_ALL_USERS", "").lower() in ("true", "1", "yes")