You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(auth): Add authentication to /api/docs endpoints (Invariant #8) #452
src/backend/routers/docs.py exposes three endpoints with no auth dependency, violating Architectural Invariant #8 (Auth Pattern: Depends(get_current_user) on every authenticated endpoint).
Line 33: GET /api/docs/index
Line 51: GET /api/docs/content/{slug:path}
Line 102: GET /api/docs/list
These serve markdown documentation from config/process-docs/ (process engine user documentation).
Context
The Process Engine is currently dormant / out of scope (see CLAUDE.md). These endpoints are consumed by the in-app docs viewer. Two reasonable resolutions:
Option A (preferred): Add Depends(get_current_user) to all three endpoints. Low-risk, tiny diff, aligns with invariant.
Option B: Remove the router + config/process-docs/ entirely since Process Engine is dormant. Larger cleanup, may be premature if Process Engine is eventually revived.
Recommend Option A — cheapest fix, preserves the docs viewer if Process Engine ever comes back.
Acceptance Criteria
All three /api/docs/* endpoints require authentication
Frontend docs viewer still works (it sends JWT via the API client)
Activity
fix(auth): require auth on /api/docs endpoints (#452) (#507)
vybe commentedon Apr 27, 2026
Closed by merged PR.
Release: v0.5.0 (#608)