meituan/longcat-2.5:free was retired from the Nous Portal; every map/reduce
call returned 404, chat() swallowed it, and the analyst produced no briefs
after 2025-11-25 (last daily_recap 11-23). The :free ids now demand a user
tag and answer 503 anyway, so pin deepseek/deepseek-v4.1-flash-1017 ($0.03/
$0.12 per Mtok, json_object verified) instead.
Audit F3 / A5-1. Every pod in customer1, osint, sirius-growth, piedmont,
siriusdevops and forgejo was reachable from every other pod, from the API
server, from the internal WireGuard-only Gateway ports on 10.10.0.2 and from
the internet.
- each namespace: a stock NetworkPolicy 'default-deny' (podSelector {},
Ingress+Egress, no rules) plus a CiliumNetworkPolicy allow that names the
gateway/kubelet/health entities, same-namespace pods, cluster DNS and only
the egress each workload actually uses (world for Telegram/news/inference,
remote-node :3900 for Garage, :22 for the backup rsync, kube-apiserver :6443
where CNPG/kubectl needs it, none at all for customer1)
- siriusdevops: replaces the egress-only siriusdevops-site-egress CNP
- customer1: ResourceQuota + LimitRange sized from the declared 1-replica
shape (35Gi already bound, 2 CPU / 4Gi requests) - the sandbox stays parked
- docs/network-isolation.md: the model plus the five gotchas measured while
landing it (both-ends enforcement, kube-apiserver identity covering the
whole node IP, remote-node vs world for Garage, ingress vs host identity)
The FastAPI app now publishes components.securitySchemes.adminSession
(apiKey/in:cookie/osint_session) and stamps security on every documented
operation from auth.is_public(). Merged as 6066ac8e0d6c in
sirius/osint-dashboard (PR #71); CI pushed
forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-6066ac8e0d6c
(digest sha256:bf5f3d4ffbb7ae8cbe54fcf5f5b81cd5a1815d8abf9e042c2804f5a2d207ae6c).
The live /openapi.json keeps advertising no securitySchemes until this tag
is running, which is what F17 flagged.
Nothing in the cluster was reconciled from the repo: 67 hand-made Secrets and no
managed Secret at all, so a restore of this Git tree produced a cluster that would
not start. This commits the first-party ones as SOPS/age ciphertext and enables
Flux's sops decryptor.
* provider: SOPS + age (chosen over SealedSecrets: Flux already ships the sops
decryptor, so no extra controller/CRD, and the age key is escrowed off-cluster).
* 29 Secrets across forgejo, siriusdevops, piedmont, sirius-growth, osint,
metabase and customer1, as apps/base/<ns>/secret-<name>.sops.yaml with
encrypted_regex ^(data|stringData)$ — names/namespaces stay reviewable.
* each file was generated from the LIVE object and decrypts to a byte-identical
data map and type, so the first apply is a no-op (not a rotation).
* the CNPG bootstrap secrets (forgejo-pg-app, pg-app, sirius-growth-portal-db)
are ours, not operator output — bootstrap.initdb.secret points at them, so a
rebuild has no application password without them.
* forgejo-pull is included despite docs/registry-pull-auth.md calling it
out-of-band: with imagePullSecrets on every workload it is the one Secret whose
absence stops the whole cluster from pulling images.
* .gitignore keeps **/*secret*.yaml ignored and re-includes only .sops.yaml, so a
plaintext Secret still cannot be committed; age.agekey stays ignored.
* excluded on purpose (controller/helm-owned): CNPG *-server/*-replication/*-ca,
cnpg-system CA+webhook, cert-manager webhook CA, cilium/hubble certs, helm
release records, prometheus-operator rendered prompts. Full table in
docs/secrets-sops.md.
Key locations (never in git): Secret flux-system/sops-age (age.agekey) and
/root/sops/homek8s-age.key on the Linode, reached only over the mesh.
Forgejo 16 mints an anonymous ("ghost user") registry token on /v2/token and
grants it Read on every package regardless of repo visibility, so all 18 app
images were world-downloadable — including images of private repos
(siriusdevops-site, phs-site, sirius-growth-*, sgs-leadgen).
* FORGEJO__service__REQUIRE_SIGNIN_VIEW=true: /v2/token answers UNAUTHORIZED
to anonymous clients, anonymous manifests get 401. This is the documented
switch in routers/api/packages/container (Authenticate) and
services/context/package.go (determineAccessMode). Side effect: the Forgejo
web UI/API becomes login-only for anonymous visitors.
* imagePullSecrets: [forgejo-pull] on all 18 workloads that pull from the
registry (osint, piedmont, sirius-growth, siriusdevops). The
kubernetes.io/dockerconfigjson Secret is per-namespace and out of band
(never in git); docs/registry-pull-auth.md documents why, how to recreate
it, and the verification commands. No containerd-level credential.
osint-dashboard#69: drop the pointless https->http retry on 429, add a
doubling backoff (300s -> 1800s, Retry-After honoured) and log one line
per cycle instead of a traceback. Ingester only; app/camera keep their tags.
deploy/osint-db logged 'FATAL: database "osint" does not exist' straight
after it became ready (2026-11-21 22:15:15): any bare `psql -U osint` /
`pg_dump -U osint` inside the pod defaults the database to the user name.
PGDATABASE makes osint_data the default so ops commands cannot aim at a
database that does not exist. Probes already pass -d osint_data.
osint-dashboard#68: the ADSB refresh loop persisted aircraft only for
connected browser viewports, so aircraft_positions stalled whenever nobody
had the map open. The new image sweeps the chokepoint presets while idle;
this commit pins it and sets ADSB_REFRESH_INTERVAL/ADSB_WATCH_* explicitly
instead of relying on app defaults.
ingester/camera keep amd64-915f6cbe25be (no loop change there); pinning the
ingester would restart it for nothing.
PG 16.16 added the PortalDrop() "cannot drop portal" check that
TimescaleDB <=2.32.0 trips from the background scheduler, so every policy
job (refresh/compression/retention/job history) failed with SQLSTATE 24000
although CALL run_job() worked (timescale/timescaledb#11038, fixed in
2.32.1).
Rebuilt apps/base/osint/pg-image/Dockerfile with:
- base postgres:16.16-bookworm (was floating 16-bookworm)
- timescaledb-2-postgresql-16 / -2-loader-postgresql-16 pinned to
2.32.1~debian12-1616 (built against PG 16.16)
Pushed as amd64-c48788d4b614-r3 (digest sha256:b2bdc093...), verified by a
throwaway restore of a fresh pg_dump: extension 2.32.0 -> ALTER EXTENSION
UPDATE 2.32.1 -> all 12 jobs Success with real last_successful_finish and
no portal errors.
osint-db (TimescaleDB+PostGIS) moves from siriussec's local-path PV to a new
15Gi local-path-linode claim restored from a pg_dump (44,120,765 bytes,
sha256 d74afa6d...30da). The Deployment gets a required linode nodeAffinity
plus an amd64 arch selector; the old osint-pgdata claim and its PV are left
untouched so rollback is one revert of claimName + scheduling.
news-scraper, news-summarizer, ingester and nats were hard-pinned to
siriussec (the ThinkPad, on a 15 W USB-C supply that brownouts under load).
Replace the hostname pin with:
* nodeSelector kubernetes.io/arch=amd64 (keeps them off the arm64 rpi)
* preferred nodeAffinity weight 100 for kubernetes.io/hostname=linode
still falling back to siriussec if linode is down. No PVCs, images,
resources or taints touched.
Four pieces of state were still only on the machine they run on. All four now
land on the Linode over the WireGuard mesh, in the same /root/cluster-backup
tree (or /root/pihost-backup for the Pi) with the same manifest/sha256 habit:
* monitoring/kube-prometheus-stack-grafana — new CronJob `monitoring/grafana-backup`.
The image is -distroless (no shell), so this mounts the PVC read-write and
takes a consistent copy with the sqlite backup API (PRAGMA integrity_check on
the copy), then streams it: grafana/grafana-<stamp>.db, keep 14.
* osint/osint-db — plain Postgres Deployment, so neither the CNPG primary lookup
nor CNPG_TARGETS reaches it. `forgejo/cluster-backup` gains a PG_TARGETS loop
that pg_dump -Fc's inside the pod using its own POSTGRES_USER/POSTGRES_DB
(exec-only RBAC in apps/base/osint/), sha256 checked on both sides.
* sirius-growth/sgs-leadgen-data — new CronJob `sirius-growth/leadgen-backup`,
link-dest snapshot mirror, keep 7.
* Pi /etc/wireguard + wgportal sqlite — infrastructure/wireguard/backup/,
nightly systemd timer -> [email protected]:/root/pihost-backup, keep 14.
Each tree carries its own retention, so adding artifacts cannot crowd the
Linode. Docs §8/§8.1/§8.2 record coverage, the accepted gaps (Prometheus TSDB,
camera frames, runner scratch) and the restore procedure — including the
TimescaleDB pre/post-restore calls osint needs.
PR #55 collapses normalised-title duplicates (7 Hearst stations carrying one
wire story) to the best-scoring representative before min_score/top_n, stores
duplicates with selected=false + duplicate_of, and exposes SUMMARY_DEDUPE /
SUMMARY_DEDUPE_SIMILARITY (0.85).
PR #54: get_recent_news() now ends at NOW() so future-dated event listings are
no longer re-graded every interval, and the fallback can only pick blocks with
score >= SUMMARY_FALLBACK_MIN_SCORE (40) instead of taking the top N blind.
PR #53 grades every article 0-100 inside the existing map call (no extra
round-trip), passes only blocks >= SUMMARY_MIN_SCORE to the reduce prompt and
persists article_scores for threshold tuning. Pin the rebuilt summarizer and
set min_score=60 / top_n=12 / fallback_top=3 in the ConfigMap.
PR #52: the Scrapy pipeline drops items dated >2h ahead (event listings were
pinning ORDER BY timestamp DESC), and /api/news excludes rows where
timestamp > now() as a second guard. Rebuild app + scraper at the merge sha.
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.
The first pin (:amd64-d8113b37b8ac) was built from a stale working tree — the
local checkout sits on fix/dashboard-geofence-vessels-sentinel-news, not
origin/master, so the image carried no app/auth.py and the deployed HUD still
served /api/keys open with /login 404. Rebuilt from a detached worktree at
d8113b37b8ac (:amd64-d8113b37b8ac-r1, verified /app/app/auth.py exists in the
image) and repin the three consumers.
osint-dashboard master d8113b37b8ac adds app/auth.py: deny-by-default on
/api/* with a public read allowlist, so visitors get the map + news and only
the admin gets keys/settings/mutations. Pin the amd64 image (:amd64-d8113b37b8ac)
on app, camera-service and ingester, and feed ADMIN_USER /
ADMIN_PASSWORD_HASH / ADMIN_SESSION_SECRET from Secret osint-admin.
The refs are optional: true on purpose — a missing Secret must not stop the
pod; the app then fails closed (admin routes 403) while the public HUD serves.
Map phase has a hard 60 s httpx timeout and meituan/longcat-2.5:free needs
~30 s for 8 articles: batch 1 of the first real run returned 200 in 30 s,
batch 2 hit the 60 s ceiling and contributed nothing. 4 keeps every batch
inside the timeout.
The cluster PG image built FROM postgres:16 resolved to Debian trixie, whose
postgresql-16-postgis-3 (3.7.0+pgdg13) cannot load against PG 16.15:
'undefined symbol: heap_datum_check'. CREATE EXTENSION postgis crashed the
server and crashlooped osint-app/osint-camera-service. Rebuild pinned to
postgres:16-bookworm (+pgdg12), verified CREATE EXTENSION postgis +
timescaledb + create_hypertable() by hand before re-tagging.
nats: pass -m 8222 so the monitoring/healthz endpoint the readiness probe hits
actually listens.
Also documents the stack + build/push/secret steps in apps/base/osint/README.md.
New namespace `osint` with the full dashboard stack ported from the Pi docker
compose file: TimescaleDB+PostGIS Postgres, NATS JetStream, FastAPI app,
ingester, camera-discovery service, TiTiler tile proxy, and the vendored news
pipeline (Scrapy scraper + Nous Portal summarizer).
- Images built amd64 (the Pi CI only builds arm64) and pushed to the Forgejo
registry as :amd64-c48788d4b614; nats/titiler mirrored there too so every
pod pulls from one host.
- All workloads pinned to siriussec (Gateway/Envoy co-location, local-path PVs).
- Postgres is a Deployment+PVC, not CNPG: the alembic chain needs postgis +
timescaledb extensions and create_hypertable().
- HTTPRoute osint.siriusdevops.com: /titiler prefix-stripped to TiTiler,
everything else to the app (incl. /ws/live).
- DB password is Secret osint-db, created out of band (not in git).
- Analyst model = meituan/longcat-2.5:free on Nous Portal (free tier).