Commit graph homek8s/apps/base/osint
Author SHA1 Message Date
Lance Walters
ff1dc24b93 apps(osint): 58f71f5b4520 — future-dated items dropped at ingest, hidden in /api/news
PR #52: the Scrapy pipeline drops items dated >2h ahead (event listings were
pinning ORDER BY timestamp DESC), and /api/news excludes rows where
timestamp > now() as a second guard. Rebuild app + scraper at the merge sha.
2026-11-13 21:43:58 -05:00
Lance Walters
46aec23af7 docs(osint): cookie is Secure via ADMIN_COOKIE_SECURE; pin 84ea0a17b1af 2026-11-13 21:18:48 -05:00
Lance Walters
def2556ee7 apps(osint): ADMIN_COOKIE_SECURE=1 and the 84ea0a17b1af build
osint-dashboard master 84ea0a17b1af (PR #51) makes the session cookie Secure
when ADMIN_COOKIE_SECURE is truthy, because the tunnel's HTTP origin means
Envoy never lets X-Forwarded-Proto through as https. Set the flag in the
ConfigMap and pin the three app-image consumers to the rebuilt catalyst.
2026-11-13 21:17:28 -05:00
Lance Walters
c073ec9308 docs(osint): build the merge sha from a detached worktree; note the deleted decoy tag 2026-11-13 21:13:46 -05:00
Lance Walters
28f09d5809 docs(osint): admin login, osint-admin Secret, and the known Secure-cookie gap 2026-11-13 21:12:16 -05:00
Lance Walters
5b9d179239 apps(osint): correct the auth image tag
The first pin (:amd64-d8113b37b8ac) was built from a stale working tree — the
local checkout sits on fix/dashboard-geofence-vessels-sentinel-news, not
origin/master, so the image carried no app/auth.py and the deployed HUD still
served /api/keys open with /login 404. Rebuilt from a detached worktree at
d8113b37b8ac (:amd64-d8113b37b8ac-r1, verified /app/app/auth.py exists in the
image) and repin the three consumers.
2026-11-13 21:09:38 -05:00
Lance Walters
426fc24d66 apps(osint): pin the auth build and wire the single-admin Secret
osint-dashboard master d8113b37b8ac adds app/auth.py: deny-by-default on
/api/* with a public read allowlist, so visitors get the map + news and only
the admin gets keys/settings/mutations. Pin the amd64 image (:amd64-d8113b37b8ac)
on app, camera-service and ingester, and feed ADMIN_USER /
ADMIN_PASSWORD_HASH / ADMIN_SESSION_SECRET from Secret osint-admin.

The refs are optional: true on purpose — a missing Secret must not stop the
pod; the app then fails closed (admin routes 403) while the public HUD serves.
2026-11-13 21:06:43 -05:00
Lance Walters
4ac1cd42d1 apps(osint): BATCH_SIZE=4 for the Nous free-tier summarizer
Map phase has a hard 60 s httpx timeout and meituan/longcat-2.5:free needs
~30 s for 8 articles: batch 1 of the first real run returned 200 in 30 s,
batch 2 hit the 60 s ceiling and contributed nothing. 4 keeps every batch
inside the timeout.
2026-11-13 20:33:47 -05:00
Lance Walters
cb86b6972f apps(osint): fix Postgres image base (bookworm) + nats monitoring port
The cluster PG image built FROM postgres:16 resolved to Debian trixie, whose
postgresql-16-postgis-3 (3.7.0+pgdg13) cannot load against PG 16.15:
'undefined symbol: heap_datum_check'. CREATE EXTENSION postgis crashed the
server and crashlooped osint-app/osint-camera-service. Rebuild pinned to
postgres:16-bookworm (+pgdg12), verified CREATE EXTENSION postgis +
timescaledb + create_hypertable() by hand before re-tagging.

nats: pass -m 8222 so the monitoring/healthz endpoint the readiness probe hits
actually listens.

Also documents the stack + build/push/secret steps in apps/base/osint/README.md.
2026-11-13 20:20:09 -05:00
Lance Walters
f290b3c457 apps(osint): deploy OSINT dashboard stack to k8s at osint.siriusdevops.com
New namespace `osint` with the full dashboard stack ported from the Pi docker
compose file: TimescaleDB+PostGIS Postgres, NATS JetStream, FastAPI app,
ingester, camera-discovery service, TiTiler tile proxy, and the vendored news
pipeline (Scrapy scraper + Nous Portal summarizer).

- Images built amd64 (the Pi CI only builds arm64) and pushed to the Forgejo
  registry as :amd64-c48788d4b614; nats/titiler mirrored there too so every
  pod pulls from one host.
- All workloads pinned to siriussec (Gateway/Envoy co-location, local-path PVs).
- Postgres is a Deployment+PVC, not CNPG: the alembic chain needs postgis +
  timescaledb extensions and create_hypertable().
- HTTPRoute osint.siriusdevops.com: /titiler prefix-stripped to TiTiler,
  everything else to the app (incl. /ws/live).
- DB password is Secret osint-db, created out of band (not in git).
- Analyst model = meituan/longcat-2.5:free on Nous Portal (free tier).
2026-11-13 20:14:42 -05:00