Commit Graph

7 Commits

Author SHA1 Message Date
082ecc579a feat: enrich /lookup with university domain list check
Add a second detection path alongside ASN lookup: a self-maintained
list of university domains (uni_domains.txt) loaded at startup.

- New /lookup params: email= (extracts domain from address), domain= unchanged
- Suffix matching: insti.uni-stuttgart.de matches list entry uni-stuttgart.de
  without false-positives (evil-uni-stuttgart.de does not match)
- New response fields: asn_match, domain_match, matched_domain (omitempty)
- nren remains true if either asn_match OR domain_match is true (backwards compat)
- /healthz now returns JSON body: {"asn_count":N,"domain_count":N}
- asn-updater: new update_uni_domains() merges hs-kompass.de TSV + Hipo JSON
  (configurable via UNI_DOMAIN_COUNTRIES / HS_KOMPASS_URL env vars)
- 7 new tests; all existing tests pass unchanged

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 15:10:49 +01:00
d355e7e6a9 fix: handle MaxMind 429 and backoff 2026-01-19 19:52:28 +01:00
733bdd401a chore: simplify updater healthcheck to local data 2026-01-19 19:37:32 +01:00
623c81d406 fix: fallback PeeringDB info_type when empty 2026-01-19 19:17:05 +01:00
979e35d680 fix: ensure updater outputs are world-readable 2026-01-19 19:11:02 +01:00
2316af824d fix: write nren_asns in OUT_DIR 2026-01-19 19:03:30 +01:00
5171dc7d99 feat: add Eduroam Analyzer service 2026-01-19 18:50:51 +01:00