osint-dashboard/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sirius DevOps c0a2454fdd feat(auth): public read-only HUD, admin-only API keys and mutations
Adds single-admin authentication to the dashboard. Anonymous visitors get a
read-only site (map + news); the one admin unlocks everything else.

- app/auth.py: deny-by-default ASGI middleware on /api/* with an explicit
  public read allowlist; /login page; /api/auth/{login,logout,me}; PBKDF2
  password hashing; HMAC-signed HttpOnly SameSite=Lax session cookie (7d,
  Secure behind X-Forwarded-Proto: https); 5-fail/15-min per-IP login limit;
  Origin/Referer host check on state-changing admin requests.
- Fails closed: missing ADMIN_PASSWORD_HASH or ADMIN_SESSION_SECRET -> admin
  routes 403 'admin auth not configured', public site unaffected.
- app/main.py: mounts the middleware + router (6 lines, no per-route decorators).
- app/static/index.html: hides Ingest/API Keys/Settings, the summarizer panel
  and geofence write controls until /api/auth/me says admin; adds a discreet
  SIGN IN link to /login. CSS gates fail closed without JS.
- tests/test_auth.py: 42 tests (anonymous 401s, login/logout, tampered and
  expired cookies, fail-closed, rate limit, CSRF, HUD markup).
- Existing API tests now send an admin session cookie for admin routes.

Public allowlist extends the spec's list with the remaining read-only GETs the
HUD calls (/api/stats, /api/conflicts, /api/place, /api/satellites,
/api/infrastructure, /api/map/gpsjam, /api/map/times, /api/fire-incidents,
/api/fire-perimeters, /api/weather-alerts, /api/storms, /api/geofences/{id}/at)
so an anonymous HUD is not half-broken.
2026-11-13 20:56:07 -05:00
..
static feat(auth): public read-only HUD, admin-only API keys and mutations 2026-11-13 20:56:07 -05:00
ais_stream.py feat: AIS stream follows the map viewport 2026-08-27 21:50:38 -04:00
auth.py feat(auth): public read-only HUD, admin-only API keys and mutations 2026-11-13 20:56:07 -05:00
bg_jobs.py chore: remove unused masscan scanner 2026-09-01 00:47:24 -04:00
camera_config.py Merge origin/master into UDOT IBI 511 cameras 2026-08-31 22:20:04 -04:00
camera_hls.py cameras: Live-Environment-Streams + HLS.js player 2026-08-27 15:54:54 -04:00
camera_models.py Add open IP camera discovery scraper (OSINT map) 2026-08-24 14:54:51 -04:00
camera_preview.py chore: remove unused masscan scanner 2026-09-01 00:47:24 -04:00
camera_scraper.py Merge origin/master into UDOT IBI 511 cameras 2026-08-31 22:20:04 -04:00
chokepoints.py feat(map): chokepoint preset catalog + vessels ?src= filter 2026-08-29 14:03:15 -04:00
config.py feat(map): right-click place dossier (Nominatim + nearby overlays) 2026-08-31 21:35:00 -04:00
conflicts.py feat(conflicts): GET /api/conflicts catalog + news/GDELT event counts 2026-08-31 21:30:23 -04:00
database.py Add NASA FIRMS active-fire ingest + /api/fires; API keys management page 2026-08-24 15:37:42 -04:00
docker-entrypoint.sh fix: merge alembic heads so the dashboard stops crash-looping 2026-08-28 18:29:06 -04:00
fire_aircraft.py feat: lean-Pi WS fan-out, geofences, DVR playback, fire/aircraft correlation 2026-08-28 09:35:18 -04:00
fire_sources.py fix(ingest): skip known KEV/FIRMS rows; CI skips unchanged images 2026-08-29 19:32:00 -04:00
geofence.py feat(geofence): watch list, filtered hit log, fence snapshot 2026-09-01 01:24:36 -04:00
gibs_map.py Map: clamp GIBS daily-layer latest to yesterday UTC — today's mosaic isn't ingested yet at 00:xx UTC so tiles 404'd and the map went black 2026-08-24 20:47:50 -04:00
ingest_cron.py first commit 2026-06-04 20:30:04 -04:00
ingestor.py fix(ingest): skip known KEV/FIRMS rows; CI skips unchanged images 2026-08-29 19:32:00 -04:00
keystore.py feat(vessels): present AISStream + VesselAPI as two independent providers 2026-08-29 00:40:41 -04:00
live_layers.py Merge origin/master into CelesTrak satellites API 2026-08-31 22:28:23 -04:00
main.py feat(auth): public read-only HUD, admin-only API keys and mutations 2026-11-13 20:56:07 -05:00
models.py feat: 23:00 daily news recap; prompts drop futures 2026-08-28 22:53:31 -04:00
place.py feat(map): right-click place dossier (Nominatim + nearby overlays) 2026-08-31 21:35:00 -04:00
requirements.txt feat(satellites): CelesTrak GP JSON satellites API with SGP4 propagation 2026-08-31 21:42:50 -04:00
run_camera_service.py Add open IP camera discovery scraper (OSINT map) 2026-08-24 14:54:51 -04:00
run_ingester.py feat(vessels): VesselAPI quota-capped AIS poller for Middle East blind spot 2026-08-29 00:18:54 -04:00
satellites.py feat(satellites): CelesTrak GP JSON satellites API with SGP4 propagation 2026-08-31 21:42:50 -04:00
schemas.py fix(api): SSRF guard on ingest; whitelist PATCH /api/sources 2026-09-01 00:47:15 -04:00
settings_store.py feat: persist summarizer model in app_settings 2026-08-28 17:06:55 -04:00
sources.py fix(ingest): skip known KEV/FIRMS rows; CI skips unchanged images 2026-08-29 19:32:00 -04:00
tracks.py fix(map): geofence delete, vessel snapshots, sentinel cache, news briefs 2026-08-29 20:40:27 -04:00
upstream_cache.py feat: lean-Pi WS fan-out, geofences, DVR playback, fire/aircraft correlation 2026-08-28 09:35:18 -04:00
vesselapi.py fix(map): geofence delete, vessel snapshots, sentinel cache, news briefs 2026-08-29 20:40:27 -04:00
ws_manager.py feat(geofence): watch list, filtered hit log, fence snapshot 2026-09-01 01:24:36 -04:00