docs(osint): cookie is Secure via ADMIN_COOKIE_SECURE; pin 84ea0a17b1af
This commit is contained in:
parent
def2556ee7
commit
46aec23af7
1 changed files with 7 additions and 7 deletions
|
|
@ -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-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-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-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-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` |
|
| `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
|
`403 {"detail":"admin auth not configured"}`) while the public HUD keeps
|
||||||
serving.
|
serving.
|
||||||
|
|
||||||
Known gap: the session cookie is `HttpOnly` + `SameSite=Lax` but **not
|
The session cookie is `HttpOnly` + `SameSite=Lax` + `Secure`. `Secure` comes from
|
||||||
`Secure`**, because the tunnel origins at plain HTTP and Cilium Envoy rewrites
|
`ADMIN_COOKIE_SECURE=1` (ConfigMap), **not** from header inference: the tunnel
|
||||||
`X-Forwarded-Proto` to `http`, so `app/auth.py::_is_https()` never sees https
|
origins at plain HTTP and Cilium Envoy rewrites `X-Forwarded-Proto` to `http`, so
|
||||||
(an explicit request header is discarded too). Fix is carded upstream
|
`app/auth.py::_is_https()` never sees https (an explicit request header is
|
||||||
(`ADMIN_COOKIE_SECURE`). Until it lands, the zone's **Always Use HTTPS** is what
|
discarded too — verified). Leave the flag unset only if you ever serve this over
|
||||||
keeps the cookie off plaintext requests.
|
plain http locally; browsers will not send a `Secure` cookie there.
|
||||||
|
|
||||||
## Analyst model
|
## Analyst model
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue