Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,32 @@
# EXT-12 · Geo-IP + HIBP prüfen/anbinden
| | |
|---|---|
| **Typ** | Setup (External) |
| **Owner** | Raffael |
| **Cycle/Fenster** | W1 — Fundament & Identität · fällig 2026-06-19 · Gate W1 |
| **Status** | geplant |
## Was zu tun ist
- **Geo-IP-Dienst** (ipapi.is / ipstack) API-Key besorgen — bereits in der Boilerplate vorgesehen.
- **EU-Konformität** des Geo-IP-Dienstes kurz prüfen; bei Zweifel Feature stubben statt anbinden.
- **HaveIBeenPwned k-Anonymity**-Endpoint anbinden (kostenlos, kein API-Key nötig) für den Breach-Check.
## Warum / was es blockt
Session-Standortanzeige und Passwort-Breach-Check im Login/Session-Flow.
- **Blocks:** P2 (Session-Standort + Breach-Check)
## Abhängigkeiten
- **blocked-by:** —
- **blocks:** P2
## Definition of Done
- [x] Geo-IP EU-Konformität geprüft — lokale EU-Lösung statt Stub (AD-22)
- [x] HIBP k-Anonymity angebunden (war bereits implementiert)
## Umsetzung (2026-06-16 · Deploy 2026-06-17)
- **AD-22**: statt Geo-IP zu stubben → lokale Land-Auflösung via DB-IP Lite (kein externer Transfer) + IP-Pseudonymisierung (HMAC-SHA256 + Pepper), nur Land persistiert. HIBP-k-Anonymity war schon in `password-policy.server.ts` aktiv.
- Code: `modules/ipAddress/services/geoip.server.ts` (+Test), `IpAddressService` umgebaut, Config (`IP_HASH_PEPPER`/`GEOIP_DB_PATH`), `core.prisma`-Privacy-Kommentare, Dockerfile (DB-Backen), `scripts/update-geoip-db.sh`. Commits `b5502f28` (docs/AD-22) + `63704bfc` (feat).
- Proof lokal: echter DB-IP-Lookup (8.8.8.8→US, 217.0.0.1→DE, 1.1.1.1→AU, IPv6→CA, 127.0.0.1→null), `hashIp` ohne Klartext; Tests 10/10 + Auth-Konsumenten 43/43 + Config 101/101; Web-Typecheck 0; ESLint 0.
- Staging: Build/Deploy-Run **#18962 success**; `IP_HASH_PEPPER` als Secret gesetzt; GeoIP-DB im Web-Image gebacken (GET-Download funktioniert → kein Stub).
- Folge-Arbeit (in AD-22 notiert, nicht EXT-12-Scope): BullMQ-Monats-Cron, `IpAddress`-Spalten-Eindampfung, Altbestand-Backfill.