ai-code-battle/cmd/acb-api
jedarden 7e131d310f feat(api): add token-bucket rate limiting to public endpoints
Adds ratelimit package with per-IP and per-key HTTP middleware.
Applied to register (5/hr), feedback (20/hr), predict (60/hr),
and job submission (5/day) endpoints. Includes metrics counter
for rejected requests and periodic bucket cleanup goroutine.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-22 16:52:29 -04:00
..
alerts.go Add Discord/Slack alerting webhooks to Go API server 2026-03-26 01:32:47 -04:00
alerts_test.go Add Discord/Slack alerting webhooks to Go API server 2026-03-26 01:32:47 -04:00
config.go Add Go API server (cmd/acb-api) with PostgreSQL, Valkey, and Glicko-2 2026-03-26 01:21:48 -04:00
config_test.go Add Go API server (cmd/acb-api) with PostgreSQL, Valkey, and Glicko-2 2026-03-26 01:21:48 -04:00
crypto.go Add Go API server (cmd/acb-api) with PostgreSQL, Valkey, and Glicko-2 2026-03-26 01:21:48 -04:00
crypto_test.go Add Go API server (cmd/acb-api) with PostgreSQL, Valkey, and Glicko-2 2026-03-26 01:21:48 -04:00
db.go fix(matchmaker): multi-match crash cooldown (3 strikes / 30 min) per §4.5 + §6.1 2026-04-22 15:22:12 -04:00
Dockerfile fix(api): fix getEnv stub and Dockerfile Go version for deployment readiness 2026-04-22 13:29:45 -04:00
health.go Add Go API server (cmd/acb-api) with PostgreSQL, Valkey, and Glicko-2 2026-03-26 01:21:48 -04:00
main.go feat(api): add token-bucket rate limiting to public endpoints 2026-04-22 16:52:29 -04:00
server.go feat(api): add token-bucket rate limiting to public endpoints 2026-04-22 16:52:29 -04:00
server_test.go feat(api): add token-bucket rate limiting to public endpoints 2026-04-22 16:52:29 -04:00