670 B
670 B
GeoIP Guide (Planning)
This project intentionally does not enable GeoIP enforcement yet.
Planned integration target: github.com/rabuchaim/geoip2fast.
Recommended approach
- Load one shared GeoIP provider instance at startup.
- Add a small in-memory cache keyed by IP with TTL.
- Apply lookup timeout and fallback to
unknownvalues on failures. - Use results first in the admin security detail pane.
- Add aggregated statistics only after detail pane behavior is stable.
Why this is safe
- No request path should fail because GeoIP lookup fails.
- Lookup cost stays bounded with caching.
- Security decisions remain independent from GeoIP quality.