App-native rate limiting for /p/* public routes #10
Labels
No labels
area:ai
area:ci-cd
area:notifications
area:observability
area:public-pages
backlog
bug
duplicate
enhancement
help wanted
invalid
question
type:decision
type:feature
type:infra
type:maintenance
type:security
v1.0.1
v1.1.0
v1.2.0
v1.3.0
v2.0.0
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/WeatherBot#10
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?
Target release: v1.1.0
Add app-native rate limiting / abuse mitigation for public token lookups (
/p/{token}) for deployments where the reverse proxy can't enforce it cleanly. The MVP documented this as a proxy responsibility; this issue tracks the in-app fallback.Source:
docs/ROADMAP.md→ Public Alert Detail Pages Phase 6;docs/HANDOFF.md→ Remaining item #5.Done in #97 (merged). Added an in-process sliding-window rate limiter on the public
/p/{token}routes, keyed by client IP (honors left-mostX-Forwarded-Forbehind the reverse proxy), returning 429 +Retry-Afterwhen exceeded. Configurable viaPUBLIC_RATE_LIMIT_ENABLED/REQUESTS/WINDOW_SECONDS. It's per-process (documented — a proxy/Redis limiter would be needed for multi-instance). Authenticated app routes are not limited.