Real-time geospatial OSINT intelligence dashboard
  • Python 78.7%
  • HTML 20.8%
  • Shell 0.3%
  • Dockerfile 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sirius DevOps 5a39404384 fix(openapi): declare the admin session cookie on every guarded operation
/openapi.json is served to the internet and declared no securitySchemes at
all, so every one of the 22 mutating operations read as unauthenticated while
the middleware answers 401 on them. The enforcement lives in
AdminAuthMiddleware, not in a route dependency, so FastAPI had nothing to
infer a scheme from.

The spec is now stamped from auth.is_public() — the same allowlist the
middleware enforces — instead of a hand-maintained per-route list:
- components.securitySchemes.adminSession: apiKey in cookie, name
  osint_session (the cookie the middleware actually reads), with the 401/403
  behaviour documented.
- protected operations: security: [{"adminSession": []}] — 19 of the 22
  mutating operations plus GET /api/keys, GET /api/settings, /api/news/models.
- public operations: security: [] (explicit "no auth"; not omitted).
  POST /api/search, POST /api/auth/login and POST /api/auth/logout stay
  public, and the read-only HUD surface is untouched.

Tests pin the pair per documented operation: the real app must answer 401 on
every operation that declares security, and the middleware must admit every
operation that declares []. Verified red on the untouched base (9 failures)
and green after the change.
2026-11-27 00:27:50 -05:00
.forgejo/workflows ci: log in with a write:package PAT called REGISTRY_TOKEN 2026-11-17 15:10:13 -05:00
alembic news: per-article proximate geolocation + GET /api/news/blips 2026-11-19 22:50:59 -05:00
app fix(openapi): declare the admin session cookie on every guarded operation 2026-11-27 00:27:50 -05:00
deploy chore: remove unused masscan scanner 2026-09-01 00:47:24 -04:00
docs feat(summarizer): collapse syndicated wire copies before selection 2026-11-13 22:14:44 -05:00
news news: per-article proximate geolocation + GET /api/news/blips 2026-11-19 22:50:59 -05:00
scripts fix(ingest): skip known KEV/FIRMS rows; CI skips unchanged images 2026-08-29 19:32:00 -04:00
tests fix(openapi): declare the admin session cookie on every guarded operation 2026-11-27 00:27:50 -05:00
.dockerignore Containerize for Pi: env-var config, compose stack, CI workflow 2026-07-07 17:50:51 -04:00
.env.example feat(summarizer): collapse syndicated wire copies before selection 2026-11-13 22:14:44 -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