Files
clawdbot/docs
Yuri Chukhlib 961b4adc1c feat(gateway): deprecate query param hook token auth for security (#2200)
* feat(gateway): deprecate query param hook token auth for security

Query parameter tokens appear in:
- Server access logs
- Browser history
- Referrer headers
- Network monitoring tools

This change adds a deprecation warning when tokens are provided via
query parameter, encouraging migration to header-based authentication
(Authorization: Bearer <token> or X-Clawdbot-Token header).

Changes:
- Modified extractHookToken to return { token, fromQuery } object
- Added deprecation warning in server-http.ts when fromQuery is true
- Updated tests to verify the new return type and fromQuery flag

Fixes #2148

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: deprecate hook query token auth (#2200) (thanks @YuriNachos)

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-01-26 14:51:25 +00:00
..
2026-01-10 05:14:09 +01:00
2026-01-13 04:41:01 +00:00
2026-01-26 08:50:18 -06:00
2026-01-25 03:24:44 +00:00
2026-01-25 10:40:27 +00:00
2026-01-26 13:04:18 +00:00
2026-01-18 06:39:26 +00:00
2026-01-10 20:05:22 +01:00
2026-01-23 05:47:16 +00:00
2026-01-25 02:30:09 +00:00
2026-01-26 12:56:33 +00:00
2026-01-04 14:38:51 +00:00
2026-01-26 08:50:18 -06:00
2026-01-25 10:40:27 +00:00
2026-01-23 02:51:33 +00:00
2026-01-26 13:04:18 +00:00