srojk34
1e2914b40a
fix(telegram): redact bot token from connect/disconnect/send_document/send_video errors
...
_redact_telegram_error_text() strips bot tokens from api.telegram.org
URLs embedded in transport-error text, and is already applied across the
send/edit transient-error paths. Four sites still built their message
from the raw exception:
- connect()'s fatal-error handler is the most severe: the raw text is
passed to _set_fatal_error(), which persists it via
write_runtime_status() to a dashboard/admin-facing runtime status
file, not just a log line. A transient network error during startup
commonly embeds the request URL
(https://api.telegram.org/bot <TOKEN>/getMe), so this could leak the
live bot token into that surface.
- disconnect(), send_document(), send_video() build the same unredacted
pattern into a warning log line (lower blast radius, but the same
leak class).
Fix: route all four through the existing _redact_telegram_error_text()
helper before building the message/log line, mirroring the send/edit
paths exactly. Also drops exc_info=True from the two logger.error/
logger.warning calls that had it — exc_info prints the exception's own
traceback (including its unredacted message) separately from the format
string, which would otherwise defeat the redaction; the already-redacted
sibling call sites in this file follow the same convention.
2026-07-05 13:57:28 -07:00
..
2026-07-01 12:30:59 +10:00
2026-06-29 15:51:57 -07:00
2026-06-27 22:03:14 -07:00
2026-06-28 22:35:17 -07:00
2026-06-28 02:41:36 -07:00
2026-06-29 15:51:57 -07:00
2026-06-28 02:41:36 -07:00
2026-07-03 03:46:43 +05:30
2026-07-01 04:14:33 -07:00
2026-07-03 03:27:47 -07:00
2026-07-01 00:42:42 -07:00
2026-07-02 13:25:25 +05:30
2026-07-02 05:23:28 -07:00
2026-07-05 02:22:08 -07:00
2026-06-29 15:51:57 -07:00
2026-07-01 00:42:56 -07:00
2026-06-27 19:05:04 -07:00
2026-07-05 06:29:26 -07:00
2026-06-28 02:05:50 -07:00
2026-07-02 03:08:11 -07:00
2026-06-28 04:13:19 -07:00
2026-07-01 03:17:20 -07:00
2026-07-05 00:43:48 -07:00
2026-07-02 05:10:31 -07:00
2026-07-02 12:49:42 +05:30
2026-07-01 06:38:24 -07:00
2026-07-04 13:28:47 -07:00
2026-07-01 03:56:28 -07:00
2026-06-30 15:03:25 -07:00
2026-07-02 03:08:11 -07:00
2026-07-06 01:37:10 +05:30
2026-07-04 13:28:47 -07:00
2026-07-01 15:11:38 +05:30
2026-06-28 00:57:03 -07:00
2026-07-01 15:38:34 -04:00
2026-07-01 00:12:17 -07:00
2026-07-05 06:42:42 -07:00
2026-06-30 15:03:25 -07:00
2026-07-01 00:12:17 -07:00
2026-06-30 03:49:52 -07:00
2026-07-01 16:25:16 +05:30
2026-06-27 19:30:32 -07:00
2026-06-30 02:48:42 -07:00
2026-07-01 03:56:28 -07:00
2026-07-01 03:56:28 -07:00
2026-07-05 06:29:26 -07:00
2026-07-01 01:20:14 -07:00
2026-07-02 03:12:53 -07:00
2026-07-01 03:56:28 -07:00
2026-07-02 03:00:59 -07:00
2026-06-29 12:18:11 -07:00
2026-07-01 03:56:28 -07:00
2026-06-28 00:57:03 -07:00
2026-06-30 17:20:41 -07:00
2026-06-27 04:13:09 -07:00
2026-07-05 13:49:50 -07:00
2026-07-01 02:29:24 -07:00
2026-07-01 15:59:37 +05:30
2026-07-01 05:13:03 -07:00
2026-06-29 15:51:57 -07:00
2026-07-03 03:33:06 -07:00
2026-07-02 00:05:48 +05:30
2026-06-28 20:47:33 -07:00
2026-07-01 05:38:03 -07:00
2026-07-03 03:27:47 -07:00
2026-06-27 19:26:04 -07:00
2026-06-27 04:36:22 -07:00
2026-06-27 21:23:25 -07:00
2026-06-27 21:23:25 -07:00
2026-06-30 15:30:06 -07:00
2026-07-04 16:34:16 -07:00
2026-07-01 03:56:28 -07:00
2026-07-03 03:33:06 -07:00
2026-07-04 16:34:16 -07:00
2026-07-01 03:56:28 -07:00
2026-07-01 05:31:15 -07:00
2026-06-30 14:29:51 -07:00
2026-07-01 01:20:12 -07:00
2026-07-01 02:12:25 -07:00
2026-07-05 00:41:34 -07:00
2026-07-01 03:56:28 -07:00
2026-06-30 17:32:35 -07:00
2026-07-03 03:33:06 -07:00
2026-07-01 02:45:11 -07:00
2026-07-05 02:12:26 -07:00
2026-07-05 13:42:46 -07:00
2026-07-01 00:11:23 -07:00
2026-07-03 04:29:22 -05:00
2026-07-03 13:44:00 -07:00
2026-07-01 02:12:25 -07:00
2026-07-01 17:08:50 +05:30
2026-06-29 20:31:17 -07:00
2026-07-01 02:03:58 -07:00
2026-07-01 05:38:03 -07:00
2026-07-01 15:42:19 +05:30
2026-06-27 04:13:09 -07:00
2026-07-01 02:29:24 -07:00
2026-07-04 16:34:16 -07:00
2026-07-02 05:51:12 -07:00
2026-06-29 15:51:57 -07:00
2026-06-29 04:25:37 -07:00
2026-07-03 04:46:01 -05:00
2026-07-02 12:49:42 +05:30
2026-06-30 04:22:41 -07:00
2026-06-28 02:41:36 -07:00
2026-07-01 00:10:12 -07:00
2026-07-03 02:55:22 +05:30
2026-07-01 16:32:32 +05:30
2026-07-01 03:16:13 -07:00
2026-06-29 01:02:53 -07:00
2026-07-03 12:34:53 +05:30
2026-06-29 20:57:43 -07:00
2026-07-05 13:42:46 -07:00
2026-06-28 02:43:23 -07:00
2026-07-05 13:57:11 -07:00
2026-06-28 04:35:37 -07:00
2026-06-30 03:22:18 -07:00
2026-06-29 15:51:57 -07:00
2026-07-05 06:29:26 -07:00
2026-06-28 13:49:08 -07:00
2026-06-30 23:37:04 -07:00
2026-07-01 03:25:02 -07:00
2026-06-30 04:23:03 -07:00
2026-07-05 06:12:49 -07:00
2026-06-30 04:23:03 -07:00
2026-06-28 14:25:15 -07:00
2026-06-28 00:57:03 -07:00
2026-06-28 01:07:53 -07:00
2026-07-04 21:33:50 +05:30
2026-06-27 19:12:57 -07:00
2026-07-05 13:57:28 -07:00
2026-07-05 00:32:35 -07:00
2026-07-01 00:11:46 -07:00
2026-07-04 20:45:48 +05:30
2026-07-04 13:48:33 +05:30
2026-07-04 21:33:50 +05:30
2026-07-05 22:08:42 +05:30
2026-06-28 14:35:32 +05:30
2026-06-30 15:36:58 -07:00
2026-07-04 15:18:41 -07:00
2026-06-28 01:38:17 -07:00
2026-06-30 17:39:30 -07:00
2026-06-28 02:34:17 -07:00
2026-07-01 01:01:36 -07:00
2026-06-27 04:39:48 -07:00
2026-06-29 15:51:57 -07:00
2026-07-02 05:09:38 -07:00
2026-06-29 21:12:57 -07:00
2026-06-28 02:05:26 -07:00
2026-07-04 13:38:59 -07:00
2026-06-29 20:42:19 -07:00
2026-07-05 06:29:26 -07:00
2026-07-01 03:56:28 -07:00
2026-07-05 02:25:38 -07:00
2026-07-02 17:39:09 -07:00
2026-06-28 22:35:43 -07:00
2026-07-01 03:56:28 -07:00
2026-07-01 03:56:28 -07:00
2026-07-05 00:41:34 -07:00
2026-07-01 03:56:28 -07:00
2026-07-05 06:27:20 -07:00
2026-07-01 03:56:28 -07:00
2026-07-01 03:56:28 -07:00
2026-06-28 02:05:26 -07:00
2026-06-30 15:30:06 -07:00
2026-07-05 06:27:20 -07:00
2026-06-28 15:29:59 -07:00