From 46aec23af738ab1dc9f46b83337c5d9cb785cd18 Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Fri, 13 Nov 2026 21:18:48 -0500 Subject: [PATCH] docs(osint): cookie is Secure via ADMIN_COOKIE_SECURE; pin 84ea0a17b1af --- apps/base/osint/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/base/osint/README.md b/apps/base/osint/README.md index e98ba63..f93ce3d 100644 --- a/apps/base/osint/README.md +++ b/apps/base/osint/README.md @@ -10,7 +10,7 @@ instead of a host Docker container on the Pi. |---|---|---| | `osint-db` | `forgejo…/sirius/osint-dashboard-pg:amd64-c48788d4b614-r2` | TimescaleDB 2 + PostGIS 3 on Postgres 16, `local-path` PVC `osint-pgdata` 15 Gi | | `osint-nats` | `forgejo…/sirius/nats:2.10` | JetStream event bus (`-js -m 8222`) | -| `osint-app` | `forgejo…/sirius/osint-dashboard:amd64-d8113b37b8ac-r1` | FastAPI + static HUD; runs `alembic upgrade heads` on start; single-admin auth (`app/auth.py`) — public read-only site, admin-only keys/settings/mutations | +| `osint-app` | `forgejo…/sirius/osint-dashboard:amd64-84ea0a17b1af` | FastAPI + static HUD; runs `alembic upgrade heads` on start; single-admin auth (`app/auth.py`) — public read-only site, admin-only keys/settings/mutations | | `osint-ingester` | same app image | RSS/GDELT/USGS/FIRMS/vessel ingest → NATS → Postgres | | `osint-camera-service` | same app image | public-camera discovery + snapshots (PVC `osint-camera-snapshots` 3 Gi, shared with the app) | | `osint-titiler` | `forgejo…/sirius/titiler:0.26.0` | SAR COG tile proxy, exposed same-origin at `/titiler` | @@ -87,12 +87,12 @@ Secret must not block startup, and the app then **fails closed** (admin routes `403 {"detail":"admin auth not configured"}`) while the public HUD keeps serving. -Known gap: the session cookie is `HttpOnly` + `SameSite=Lax` but **not -`Secure`**, because the tunnel origins at plain HTTP and Cilium Envoy rewrites -`X-Forwarded-Proto` to `http`, so `app/auth.py::_is_https()` never sees https -(an explicit request header is discarded too). Fix is carded upstream -(`ADMIN_COOKIE_SECURE`). Until it lands, the zone's **Always Use HTTPS** is what -keeps the cookie off plaintext requests. +The session cookie is `HttpOnly` + `SameSite=Lax` + `Secure`. `Secure` comes from +`ADMIN_COOKIE_SECURE=1` (ConfigMap), **not** from header inference: the tunnel +origins at plain HTTP and Cilium Envoy rewrites `X-Forwarded-Proto` to `http`, so +`app/auth.py::_is_https()` never sees https (an explicit request header is +discarded too — verified). Leave the flag unset only if you ever serve this over +plain http locally; browsers will not send a `Secure` cookie there. ## Analyst model