From 7fa3e5e7bfc2ec17cbda59901bb3d40e7a0aa327 Mon Sep 17 00:00:00 2001 From: daikaginza Date: Sun, 18 Oct 2026 13:36:07 +0700 Subject: [PATCH] docs(changelog): move the entry into a changelog.d fragment Main now takes pending entries as changelog.d/-.md files (#787), so the entry leaves CHANGELOG.md for changelog.d/689-adsbdb-cache-and-rate-limit.md. --- changelog.d/689-adsbdb-cache-and-rate-limit.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 changelog.d/689-adsbdb-cache-and-rate-limit.md diff --git a/changelog.d/689-adsbdb-cache-and-rate-limit.md b/changelog.d/689-adsbdb-cache-and-rate-limit.md new file mode 100644 index 0000000000..c5a426c531 --- /dev/null +++ b/changelog.d/689-adsbdb-cache-and-rate-limit.md @@ -0,0 +1,10 @@ +- Bound the adsbdb enrichment proxy. `/api/adsbdb` had no request limit and no + cache eviction, so a caller cycling through the callsign or hex keyspace + could drive unlimited live requests at the free community API and grow + `.gev-cache/adsbdb.json` without end — every distinct key, 404s included, was + remembered forever. The route now admits 360 requests/minute per client + address (the browser's own drip cannot exceed 300), refusing the rest with + 429 and `Retry-After` before any cache, disk or upstream work. Each cache + holds at most 20,000 entries, dropping the least-recently-written first, and + entries past the existing 24-hour TTL are discarded when the file is read + back. Cached answers and response shapes are unchanged (daikaginza, #689).