baton/backend
Gros Frumos 85d156e9be fix(BATON-FIX-005): mask BOT_TOKEN in logs — suppress httpx URL logging
- Add logging.getLogger("httpx/httpcore").setLevel(WARNING) to prevent
  token-embedded API URLs from leaking through transport-level loggers
- Add _mask_token() helper showing only last 4 chars of token
- Fix validate_bot_token() exception handler: log exc type + masked token
  instead of raw exc which may contain the full URL in some httpx versions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 09:24:15 +02:00
..
__init__.py kin: BATON-002 [Research] UX Designer 2026-03-20 20:44:00 +02:00
config.py kin: BATON-005-backend_dev 2026-03-20 23:39:28 +02:00
db.py Merge branch 'BATON-SEC-003-backend_dev' 2026-03-21 08:12:01 +02:00
main.py fix(BATON-007): add validate_bot_token() for startup detection and fix test mocks 2026-03-21 08:54:07 +02:00
middleware.py kin: BATON-SEC-006-backend_dev 2026-03-21 07:56:44 +02:00
models.py kin: BATON-SEC-003-backend_dev 2026-03-21 08:12:01 +02:00
telegram.py fix(BATON-FIX-005): mask BOT_TOKEN in logs — suppress httpx URL logging 2026-03-21 09:24:15 +02:00