Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/accepted-risks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Accepted Risks

**Last updated: 2026-07-15**

## In-Memory Rate Limiting Is Per-Instance

- Rate limits on mutating endpoints (`src/lib/rate-limit.ts`) use a module-level in-memory `Map` with fixed-window tracking; limits reset on process restart and are not shared across replicas.
- The fixed-window check allows burst traffic at window boundaries (e.g., all requests allowed immediately after the window resets).
- **Mitigation:** acceptable for the current single-node internal ops tool deployment; move to a shared store (e.g., Redis) if the app is ever scaled horizontally or requires persistent limits across restarts.