-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
phase-2Phase 2: Server Layer as Thin AdapterPhase 2: Server Layer as Thin Adapter
Description
Summary
The v2 API routers are missing authentication enforcement despite documentation stating "All endpoints require authentication."
Current State
- 18 v2 routers have no auth dependencies
- Only
api_key_router.py(for managing API keys) usesrequire_auth - Documentation in
server.pyline 261 claims auth is required - Frontend uses
withCredentials: truebut doesn't send API keys
Routers Requiring Auth
All files in codeframe/ui/routers/*_v2.py:
- batches_v2.py
- blockers_v2.py
- checkpoints_v2.py
- diagnose_v2.py
- discovery_v2.py
- environment_v2.py
- events_v2.py
- gates_v2.py
- git_v2.py
- pr_v2.py
- prd_v2.py
- projects_v2.py
- review_v2.py
- schedule_v2.py
- streaming_v2.py
- tasks_v2.py
- templates_v2.py
- workspace_v2.py
Implementation
- Add
require_authdependency to all v2 router endpoints - Update frontend to send API key or session token
- Consider read-only endpoints that might allow optional auth
- Update tests to include auth headers
References
- Discovered during PR feat: Phase 3 Workspace View with activity feed #335 code review
- Auth dependencies defined in
codeframe/auth/dependencies.py
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
phase-2Phase 2: Server Layer as Thin AdapterPhase 2: Server Layer as Thin Adapter