Skip to content
Commit Detail

Commit 4ddab81

Author
Rachel Chen <rachel@chens.email> 2026-10-24 13:48:19 -0700
Parents
58d8a76
Tree
b8a7069
tun/server: cache WAF policies with default fallback

Fetching hostname policies through Chord on every protected request adds
remote reads and turns temporary lookup failures into HTTP 503 responses.

Cache validated policies and confirmed absence for a fixed 30 seconds,
coalesce concurrent reads, and invalidate locally after writes or releases.
Keep live ownership checks for overrides and management reads uncached.

Unavailable lookups inherit the current operator default. Do not cache
failures or extend expired overrides; invalid policy data remains an error.

Files changed

7 files changed+1 added~6 modified