Define and enforce a security boundary for state-changing API routes #2
Labels
No labels
architecture
cleanup
dependencies
performance
priority: high
priority: medium
reliability
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
solvreven/FPL#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
The FastAPI app exposes unauthenticated state-changing and computationally expensive routes:
POST /api/squadwritesdata/squad.json.POST /api/overridewrites overrides and re-simulates a club.POST /api/firm-upruns full simulations and writes the projection cache.POST /api/refreshperforms a full rebuild and writes the cache.POST /api/refresh-liveperforms an outbound fetch and mutates process state.The Windows launcher currently relies on uvicorn defaulting to loopback, but the application itself does not enforce that deployment assumption. A future
--host 0.0.0.0, reverse proxy, container, or LAN exposure would make the controls available to any caller.Suggested direction
Acceptance criteria
Implemented on main in commit
47f4561and covered by regression tests. Closing as complete.