Technical notes on web development, DevOps, and AI integration.
1 article
A read-only API gateway for external data: env-JSON allowlist, Redis cache, static error bodies, and 20 offline tests behind one GET-only door.
TL;DR: Rather than expose upstream API credentials in the browser, the author built a small FastAPI read-only gateway for KotaPortal's feeds. It allows GET only via per-source allowlists, caches JSON in Redis with clamped TTLs, and hides upstream errors. All 20 tests run offline; the one gap is a missing Allow header on 405 responses.