Commit Graph

7 Commits

Author SHA1 Message Date
Falkan
337b722cf2 fix: multi-domain CSRF allowlist, trustProxy for nginx-ingress TLS termination
- hooks.server.ts: replace empty stub with multi-origin CSRF guard
  - Always allows humorunits.com and dickloads.com (+ www variants)
  - ALLOWED_ORIGINS env var for additional origins (staging, preview)
  - Dev: localhost:3000/4173/5173 auto-allowed when NODE_ENV != production
    or ALLOWED_ORIGINS is unset — no config needed for local dev
- svelte.config.js: disable built-in single-origin CSRF check (we own it now)
  trustProxy: true so X-Forwarded-Proto/IP are correct behind nginx-ingress
- login route: derive secure-cookie flag from X-Forwarded-Proto header so
  session cookies are marked Secure even when Node sees plain HTTP from ingress
- deployment.yaml: add NODE_ENV=production and explicit ALLOWED_ORIGINS
2026-03-19 13:18:21 -04:00
Falkan
e70949009f fix: imagePullPolicy IfNotPresent instead of Never 2026-03-19 01:58:48 -04:00
Falkan
112336397b fix: qualify image as localhost/humor-units:latest for kubelet 2026-03-19 01:54:47 -04:00
Falkan
cffaaea26d fix: use OCI archive workflow instead of registry — scp + ctr import on each node 2026-03-19 01:33:47 -04:00
Falkan
8e739f4077 fix: use NodePort for registry — resolvable from node host network 2026-03-19 01:27:16 -04:00
Falkan
177b15920f chore: in-cluster registry manifest, build-push.sh script 2026-03-19 01:00:54 -04:00
Falkan
e6a023e14a chore: add Dockerfile and k8s deployment manifests 2026-03-19 00:42:31 -04:00