Commit Graph

12 Commits

Author SHA1 Message Date
Adam Grenier
3b20e799e2 fix: accept Authorization: Bearer in agent_auth_context_optional
The optional variant of get_agent_auth_context had accept_authorization=False,
which prevented agents using Authorization: Bearer from passing through the
ACTOR_DEP / BOARD_READ_DEP / TASK_DEP dependency chain.

This caused 401 on any agent route that resolves a board or task via the shared
ACTOR_DEP (e.g. PATCH /agent/boards/{id}/tasks/{id} and
POST /agent/boards/{id}/tasks/{id}/comments), even though the same token worked
fine on routes that use AGENT_CTX_DEP directly (accept_authorization=True).

Fix: set accept_authorization=True in get_agent_auth_context_optional so both
X-Agent-Token and Authorization: Bearer are accepted consistently.

Verified: PATCH and POST /comments now resolve board/task correctly when
Authorization: Bearer is used. No security regression — agent_token_hash
comparison rejects any non-agent bearer tokens.
2026-02-26 11:51:45 -08:00
Abhimanyu Saharan
e9e0d6960a docs(backend): clarify auth/error-handling via docstrings 2026-02-12 08:27:31 +00:00
Abhimanyu Saharan
8d0b2939a6 feat: enhance logging configuration and add request logging context 2026-02-11 16:49:43 +05:30
Abhimanyu Saharan
8f6347dc8d refactor: simplify code formatting and improve readability across multiple files 2026-02-09 20:44:05 +05:30
Abhimanyu Saharan
7ca1899d9f refactor: update module docstrings for clarity and consistency 2026-02-09 15:49:50 +05:30
Abhimanyu Saharan
844b521d00 Touch agent presence on authenticated requests 2026-02-07 04:34:16 +05:30
Abhimanyu Saharan
4bab455912 feat: implement task dependencies with validation and update handling 2026-02-07 00:21:44 +05:30
Abhimanyu Saharan
d86fe0a7a6 feat: add validation for minimum length on various fields and update type definitions 2026-02-06 16:12:04 +05:30
Abhimanyu Saharan
f258b756e8 feat: refactor imports and clean up code formatting across multiple files 2026-02-06 02:43:08 +05:30
Abhimanyu Saharan
4cc6c42440 feat: add is_board_lead property to agent and board types 2026-02-05 19:06:32 +05:30
Abhimanyu Saharan
51313a9272 feat(activity): Simplify query statements and improve code readability 2026-02-05 00:21:33 +05:30
Abhimanyu Saharan
b0e3208fa3 feat: enhance agent management with session handling and UI improvements 2026-02-04 14:58:20 +05:30