Real-time geospatial OSINT intelligence dashboard
  • Python 78%
  • HTML 21.5%
  • Shell 0.3%
  • Dockerfile 0.2%
Find a file
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
.forgejo/workflows fix(ingest): skip known KEV/FIRMS rows; CI skips unchanged images 2026-08-29 19:32:00 -04:00
alembic feat(geofence): watch list, filtered hit log, fence snapshot 2026-09-01 01:24:36 -04:00
app feat(auth): public read-only HUD, admin-only API keys and mutations 2026-11-13 20:56:07 -05:00
deploy chore: remove unused masscan scanner 2026-09-01 00:47:24 -04:00
docs feat(auth): public read-only HUD, admin-only API keys and mutations 2026-11-13 20:56:07 -05:00
news fix(map): geofence delete, vessel snapshots, sentinel cache, news briefs 2026-08-29 20:40:27 -04:00
scripts fix(ingest): skip known KEV/FIRMS rows; CI skips unchanged images 2026-08-29 19:32:00 -04:00
tests feat(auth): public read-only HUD, admin-only API keys and mutations 2026-11-13 20:56:07 -05:00
.dockerignore Containerize for Pi: env-var config, compose stack, CI workflow 2026-07-07 17:50:51 -04:00
.env.example feat(auth): public read-only HUD, admin-only API keys and mutations 2026-11-13 20:56:07 -05:00
.gitignore Add NASA FIRMS active-fire ingest + /api/fires; API keys management page 2026-08-24 15:37:42 -04:00
alembic.ini Containerize for Pi: env-var config, compose stack, CI workflow 2026-07-07 17:50:51 -04:00
docker-compose.yml fix(ops): pin TiTiler digest, GIST bbox indexes, single uvicorn worker 2026-09-01 00:47:06 -04:00
Dockerfile cameras: RTSP preview via ffmpeg, stop opening VLC, drop masscan to 200pps 2026-08-24 23:36:34 -04:00
Dockerfile.pg Fix Dockerfile.pg: mkdir conf.d before writing timescaledb preload 2026-07-07 18:17:31 -04:00
IDEA.md ci: retrigger deploy (previous run raced the force-push) 2026-08-27 17:42:03 -04:00
pytest.ini fix: pipeline reliability — WS, summarizer, ingest, health 2026-08-28 21:49:05 -04:00