HCL
4e45a663e7
fix(telegram): prevent silent wrong-bot routing when accountId not in config
...
When a non-default accountId is specified but not found in the accounts
config, resolveTelegramToken() falls through to channel-level defaults
(botToken, tokenFile, env) — silently routing messages via the wrong
bot's token. This is a cross-bot message leak with no error or warning.
Root cause: extensions/telegram/src/token.ts:44-46, resolveAccountCfg()
returns undefined for unknown accountIds but code continues to fallbacks.
Introduced in e5bca0832f when Telegram moved to extensions/.
Fix: return { token: "", source: "none" } with a diagnostic log when
a non-default accountId is not found. Existing behavior for known
accounts (with or without per-account tokens) preserved.
Test: added "does not fall through when non-default accountId not in
config" — 1/1 new, 10/10 existing unaffected.
Closes #49383
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
Signed-off-by: HCL <chenglunhu@gmail.com >
2026-03-20 23:24:40 +05:30
..
2026-03-20 22:42:04 +05:30
2026-03-17 01:05:09 -07:00
2026-03-17 23:09:26 -07:00
2026-03-17 01:05:09 -07:00
2026-03-17 23:09:26 -07:00
2026-03-18 09:15:41 +05:30
2026-03-17 23:09:26 -07:00
2026-03-14 03:43:07 -07:00
2026-03-14 03:43:07 -07:00
2026-03-14 02:50:17 -07:00
2026-03-14 03:43:07 -07:00
2026-03-14 03:43:07 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-19 00:01:14 -05:00
2026-03-17 21:27:21 -07:00
2026-03-17 20:36:03 -07:00
2026-03-19 00:01:14 -05:00
2026-03-17 20:13:52 -07:00
2026-03-17 17:27:52 +01:00
2026-03-14 02:50:17 -07:00
2026-03-16 22:51:46 -07:00
2026-03-14 02:50:17 -07:00
2026-03-14 02:50:17 -07:00
2026-03-14 02:50:17 -07:00
2026-03-17 00:41:44 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-14 02:50:17 -07:00
2026-03-14 13:23:25 -05:00
2026-03-19 00:01:14 -05:00
2026-03-19 00:01:14 -05:00
2026-03-14 02:50:17 -07:00
2026-03-20 22:42:04 +05:30
2026-03-20 22:42:04 +05:30
2026-03-19 00:01:14 -05:00
2026-03-19 00:01:14 -05:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-17 23:09:26 -07:00
2026-03-19 00:01:14 -05:00
2026-03-19 00:01:14 -05:00
2026-03-14 02:50:17 -07:00
2026-03-17 07:23:43 +00:00
2026-03-19 00:01:14 -05:00
2026-03-18 12:46:09 +05:30
2026-03-19 00:01:14 -05:00
2026-03-19 00:01:14 -05:00
2026-03-19 00:01:14 -05:00
2026-03-16 21:16:32 -07:00
2026-03-19 00:01:14 -05:00
2026-03-19 01:47:48 -05:00
2026-03-18 00:30:01 -07:00
2026-03-14 02:50:17 -07:00
2026-03-18 13:35:56 +05:30
2026-03-19 00:01:14 -05:00
2026-03-19 00:01:14 -05:00
2026-03-19 00:01:14 -05:00
2026-03-18 10:12:15 +05:30
2026-03-19 22:09:38 -04:00
2026-03-19 00:01:14 -05:00
2026-03-16 05:54:16 +00:00
2026-03-18 11:30:34 +05:30
2026-03-14 02:50:17 -07:00
2026-03-18 09:15:41 +05:30
2026-03-19 01:08:23 -04:00
2026-03-17 23:09:26 -07:00
2026-03-18 03:32:51 +00:00
2026-03-19 01:08:22 -04:00
2026-03-18 16:01:43 -07:00
2026-03-17 00:41:44 -07:00
2026-03-17 17:27:52 +01:00
2026-03-18 16:37:27 +00:00
2026-03-19 00:01:14 -05:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-19 00:01:14 -05:00
2026-03-17 22:44:15 +05:30
2026-03-14 02:50:17 -07:00
2026-03-20 09:30:34 -07:00
2026-03-15 18:10:49 +05:30
2026-03-14 02:50:17 -07:00
2026-03-14 02:50:17 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-18 03:32:51 +00:00
2026-03-18 03:32:51 +00:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-20 22:42:04 +05:30
2026-03-20 22:42:04 +05:30
2026-03-14 02:50:17 -07:00
2026-03-16 23:11:59 -07:00
2026-03-19 01:08:23 -04:00
2026-03-14 02:50:17 -07:00
2026-03-14 02:50:17 -07:00
2026-03-19 01:47:48 -05:00
2026-03-17 21:56:12 +05:30
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-18 17:30:25 +00:00
2026-03-14 02:50:17 -07:00
2026-03-19 00:01:14 -05:00
2026-03-17 21:56:12 +05:30
2026-03-17 01:05:09 -07:00
2026-03-17 23:09:26 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-17 09:38:21 -07:00
2026-03-16 08:03:22 +05:30
2026-03-17 09:38:21 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 17:27:54 +02:00
2026-03-16 21:16:32 -07:00
2026-03-17 09:38:21 -07:00
2026-03-20 09:29:33 +05:30
2026-03-20 09:29:33 +05:30
2026-03-17 23:09:26 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-16 22:58:55 -07:00
2026-03-16 22:58:55 -07:00
2026-03-17 17:27:52 +01:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-14 02:50:17 -07:00
2026-03-20 00:30:11 -07:00
2026-03-20 09:30:34 -07:00
2026-03-20 23:24:40 +05:30
2026-03-20 23:24:40 +05:30
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-14 02:50:17 -07:00
2026-03-16 21:16:32 -07:00
2026-03-17 07:23:43 +00:00
2026-03-16 21:16:32 -07:00