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.
This commit is contained in:
parent
c073ec9308
commit
def2556ee7
4 changed files with 10 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
# Wait for Postgres before alembic runs (the entrypoint migrates).
|
# Wait for Postgres before alembic runs (the entrypoint migrates).
|
||||||
- name: wait-for-db
|
- 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
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- python
|
- python
|
||||||
|
|
@ -42,7 +42,7 @@ spec:
|
||||||
sys.exit("postgres did not become reachable in 300s")
|
sys.exit("postgres did not become reachable in 300s")
|
||||||
containers:
|
containers:
|
||||||
- name: app
|
- name: app
|
||||||
image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-d8113b37b8ac-r1
|
image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-84ea0a17b1af
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ spec:
|
||||||
kubernetes.io/hostname: siriussec
|
kubernetes.io/hostname: siriussec
|
||||||
containers:
|
containers:
|
||||||
- name: camera-service
|
- name: camera-service
|
||||||
image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-d8113b37b8ac-r1
|
image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-84ea0a17b1af
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["python", "app/run_camera_service.py"]
|
command: ["python", "app/run_camera_service.py"]
|
||||||
envFrom:
|
envFrom:
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,12 @@ data:
|
||||||
NEWS_SCRAPE_INTERVAL_S: "10"
|
NEWS_SCRAPE_INTERVAL_S: "10"
|
||||||
NEWS_SCRAPE_RUN_ON_START: "1"
|
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 ────────────
|
# ── news summarizer (analyst) — Nous Portal, free tier model ────────────
|
||||||
NOUS_BASE_URL: https://inference-api.nousresearch.com/v1
|
NOUS_BASE_URL: https://inference-api.nousresearch.com/v1
|
||||||
SUMMARY_MODEL: meituan/longcat-2.5:free
|
SUMMARY_MODEL: meituan/longcat-2.5:free
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ spec:
|
||||||
kubernetes.io/hostname: siriussec
|
kubernetes.io/hostname: siriussec
|
||||||
containers:
|
containers:
|
||||||
- name: ingester
|
- name: ingester
|
||||||
image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-d8113b37b8ac-r1
|
image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-84ea0a17b1af
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["python", "app/run_ingester.py"]
|
command: ["python", "app/run_ingester.py"]
|
||||||
envFrom:
|
envFrom:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue