From def2556ee7f10556bded246e3579716c745f8030 Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Fri, 13 Nov 2026 21:17:28 -0500 Subject: [PATCH] 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. --- apps/base/osint/app-deployment.yaml | 4 ++-- apps/base/osint/camera-deployment.yaml | 2 +- apps/base/osint/configmap.yaml | 6 ++++++ apps/base/osint/ingester-deployment.yaml | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/base/osint/app-deployment.yaml b/apps/base/osint/app-deployment.yaml index e95b0e1..b2e197a 100644 --- a/apps/base/osint/app-deployment.yaml +++ b/apps/base/osint/app-deployment.yaml @@ -24,7 +24,7 @@ spec: initContainers: # Wait for Postgres before alembic runs (the entrypoint migrates). - name: wait-for-db - image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-d8113b37b8ac-r1 + image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-84ea0a17b1af imagePullPolicy: IfNotPresent command: - python @@ -42,7 +42,7 @@ spec: sys.exit("postgres did not become reachable in 300s") containers: - name: app - image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-d8113b37b8ac-r1 + image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-84ea0a17b1af imagePullPolicy: IfNotPresent ports: - containerPort: 8000 diff --git a/apps/base/osint/camera-deployment.yaml b/apps/base/osint/camera-deployment.yaml index 8a2ed0a..e5a859b 100644 --- a/apps/base/osint/camera-deployment.yaml +++ b/apps/base/osint/camera-deployment.yaml @@ -23,7 +23,7 @@ spec: kubernetes.io/hostname: siriussec containers: - name: camera-service - image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-d8113b37b8ac-r1 + image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-84ea0a17b1af imagePullPolicy: IfNotPresent command: ["python", "app/run_camera_service.py"] envFrom: diff --git a/apps/base/osint/configmap.yaml b/apps/base/osint/configmap.yaml index d63ff0e..83bb22f 100644 --- a/apps/base/osint/configmap.yaml +++ b/apps/base/osint/configmap.yaml @@ -51,6 +51,12 @@ data: NEWS_SCRAPE_INTERVAL_S: "10" NEWS_SCRAPE_RUN_ON_START: "1" + # ── auth (see README, Secret `osint-admin`) ────────────────────────────── + # The Cloudflare tunnel origins at the Cilium Gateway on plain HTTP and Envoy + # normalizes X-Forwarded-Proto to http, so app/auth.py's header inference can + # never see https here: this flag is what puts `Secure` on the session cookie. + ADMIN_COOKIE_SECURE: "1" + # ── news summarizer (analyst) — Nous Portal, free tier model ──────────── NOUS_BASE_URL: https://inference-api.nousresearch.com/v1 SUMMARY_MODEL: meituan/longcat-2.5:free diff --git a/apps/base/osint/ingester-deployment.yaml b/apps/base/osint/ingester-deployment.yaml index 40c1174..b7a7953 100644 --- a/apps/base/osint/ingester-deployment.yaml +++ b/apps/base/osint/ingester-deployment.yaml @@ -23,7 +23,7 @@ spec: kubernetes.io/hostname: siriussec containers: - name: ingester - image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-d8113b37b8ac-r1 + image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-84ea0a17b1af imagePullPolicy: IfNotPresent command: ["python", "app/run_ingester.py"] envFrom: