Commit graph homek8s/apps/base
Author SHA1 Message Date
Lance Walters
cc50d1c231 apps(siriusdevops): pin site to fe2d5bb — Quiet Precision token pass 2026-11-23 23:28:27 -05:00
Lance Walters
648516af71 apps(siriusdevops): pin site to af139906 — five-band homepage repositioning 2026-11-23 23:09:23 -05:00
Lance Walters
82f0d83243 apps(siriusdevops): pin site to e2fd76a — /book drops the public audit price
siriusdevops-site:e2fd76ad (merge of PR #19) replaces the $750–$1,500
audit anchor in the /book funnel with 'scoped and quoted after the review'.
contact-api is unchanged at 8642f1a.
2026-11-23 22:54:10 -05:00
01db28dec5 apps(forgejo): serve a declarative robots.txt that keeps non-portfolio paths out of the index
Self-registration was open until 2026-11-20 and Google indexed spam
profiles under forgejo.siriusdevops.com (/leonabrewton8, /charlinebrando,
.../-/packages). The accounts are deleted and 404 now, but Forgejo's
built-in robots.txt only blocks /explore/*?* and /user/, so /explore/repos
and /search stay crawlable.

Forgejo serves GITEA_CUSTOM=/data/gitea/public/robots.txt at /robots.txt,
so mount a ConfigMap there (the supported custom-public override) and
disallow /explore/*, /user/*, /search*, /api/*, /*/-/packages while
allowing /sirius/* for the portfolio repos.
2026-11-23 22:50:52 -05:00
Lance Walters
79206e0487 ops(farrisilk): park the client replica stack to cut siriussec draw
siriussec is on a 15 W USB-C adapter and low-battery-shutdown fired 2026-11-22
04:20. The farrisilk replica (Odoo + Metabase JVM + Postgres) is the largest
single stack on that node and is not client production. Scale its three
Deployments to 0 and suspend the nightly pg_dump; PVCs and data stay put.

Restore: set replicas back to 1 in odoo.yaml, metabase.yaml, postgres.yaml and
unsuspend backup.yaml, then let Flux reconcile.
2026-11-22 05:54:53 -05:00
Lance Walters
530320bbfe ops(siriussec): bound CPU bursts to the 15W power budget
siriussec is a T480 on a 5V/3A (15W) USB-C supply and died 2026-11-22 04:20
after ~12h on battery. Host PL1 was 25W with turbo on, so any sustained burst
outran the adapter. Cap the two workload-side bursts that can pin cores:

- forgejo-runner-amd64 dind: no CPU limit before -> add cpu: 3
- metabase + farrisilk metabase: cpu limit 2 -> 1 each (two JVMs = 4 threads)

Host-side cap (PL1 12W/PL2 15W, no_turbo=1) is applied by
cpu-power-cap.service on the node itself, not by this repo.
2026-11-22 05:42:52 -05:00
devops
96404c96e1 apps(farrisilk): document backup schedule/restore/RPO + the filestore gap with measured evidence 2026-11-22 02:43:17 -05:00
devops
03fb50c3d7 apps(farrisilk): client-shaped nightly pg_dump cron + 14d retention on a 10Gi PVC 2026-11-22 02:38:35 -05:00
Lance Walters
f658bfabe9 apps(farrisilk): close the metabase_ro schema-CREATE hole + README
metabase_ro could create tables in public: default_transaction_read_only is a
role default the role can lift (SET ... = off), and PG16 keeps CREATE on schema
public for PUBLIC when the database was created by a non-superuser (Odoo creates
its own). Revoke CREATE from PUBLIC and ALL from metabase_ro, grant USAGE only,
in both the first-boot script and the per-start grant pass. README documents the
stack, list_db/workers=0 rationale, module loading, filestore, the DB-only backup
gap (filestore is not covered; follow-up t_8bdd3708) and the Shopify blank.
2026-11-22 02:28:56 -05:00
Lance Walters
4891694f6f apps(farrisilk): name Odoo's database odoo (align with the BI grants + Metabase source)
The card's build section names db `odoo` (owner odoo) and points Metabase at
pg.../odoo, while its Odoo config line said db_name=farrisilk — the two cannot
both hold. Aligned on `odoo`: db_name/dbfilter in odoo.conf and the init
script's ODOO_DB_NAME. The renamed database kept its data (partner 7, product
template 1, base+web+product installed).
2026-11-22 02:25:09 -05:00
Lance Walters
7f7f806616 apps(farrisilk): lab replica stack (Odoo 18 + plain Postgres + Metabase) on :8086/:8087
Odoo 18 (dated tag 18.0-20261112) on a plain postgres:16 container, not CNPG:
the client runs bare Postgres on a Proxmox VM and this namespace mirrors that
shape. Odoo's initContainer installs base,web once, applies the read-only BI
grants/revokes and sets the admin login from a Secret. Metabase gets its own
state in the same Postgres (db metabase) with a 1Gi heap and
MB_ENCRYPTION_SECRET_KEY. Two bare-IP Gateways (8086 odoo, 8087 metabase) in ns
internal, each with its own RouteConfiguration. Host firewall (nft on siriussec,
ufw on rpi) carries 8086/8087 and was installed before the Gateways were pushed.
2026-11-22 02:15:56 -05:00
Lance Walters
930752152e apps(metabase): deploy Metabase (WireGuard-only :8085) with CNPG app DB
- apps/base/metabase: namespace, CNPG Cluster pg (5Gi local-path, siriussec),
  Metabase Deployment v0.65.6.3 (1.5G heap, no PVC), Service, hostname-less
  HTTPRoute on the dedicated metabase Gateway
- infrastructure/networking/internal: new Gateway metabase on port 8085
  (own RouteConfiguration, so it cannot merge with Grafana's bare route)
- host firewall: 8085 in siriussec nft set + rpi ufw guard
2026-11-22 00:32:31 -05:00
Lance Walters
0e5ba18377 apps(osint): pin ingester to amd64-76035535bcb2 (GDELT 15-min GKG bulk ingest) 2026-11-21 18:39:28 -05:00
Lance Walters
1e9253c147 apps(osint): pin ingester to amd64-fc0cd41b7aa4 (GDELT 429 backoff)
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.
2026-11-21 18:15:51 -05:00
Lance Walters
f0a82f85de apps(osint): set PGDATABASE=osint_data on osint-db
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.
2026-11-21 17:58:33 -05:00
Lance Walters
f326735a8b apps(osint): pin app to amd64-54897b49bc57 + ADS-B idle watch env
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.
2026-11-21 17:42:10 -05:00
Lance Walters
e63c14641d apps(osint): pg image r3 for timescaledb 2.32.1 on PG 16.16
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.
2026-11-21 17:13:54 -05:00
Lance Walters
c2cdc2d5c1 apps(osint): move osint-db onto a linode-local PVC
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.
2026-11-21 16:47:03 -05:00
devops
b55ec826c9 apps(osint): place stateless CPU workers on the amd64 linode node
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.
2026-11-21 16:24:16 -05:00
9ad79263ab apps(forgejo): disable self-registration (FORGEJO__service__DISABLE_REGISTRATION=true)
Bot signups: 5845 accounts, /user/sign_up served 200. Lock to admin-only
account creation via env (config is env-driven, not app.ini).
2026-11-20 18:46:17 -05:00
devops
e63ba14791 apps(siriusdevops): pin site to 799afe40 (DevOps-repositioned build) 2026-11-20 18:31:15 -05:00
devops
24785a54e8 apps(osint): pin amd64-915f6cbe25be (critical-news renderer fix + Blue Marble default + slower ticker) 2026-11-19 23:48:48 -05:00
Lance Walters
7ae4ac2ee3 docs(osint): CI builds the amd64 cluster images now — retire the manual-build instructions 2026-11-19 23:36:56 -05:00
Lance Walters
1b27ad1120 apps(osint): pin amd64-fe2b5df369d0 (per-article news blips: geolocation API + map layer) 2026-11-19 22:59:37 -05:00
Lance Walters
c6e0081217 apps(siriusdevops): pin contact-api to 8642f1a (Telegram Markdown→HTML lead-drop fix) 2026-11-19 19:33:54 -05:00
Lance Walters
4ffe40e6ca apps(siriusdevops): pin site to c704a2e (post-PR-12 build) 2026-11-19 19:14:54 -05:00
devops
c45255242b db(portal): migrate WAL archiving to the CNPG-I Barman Cloud plugin
CloudNativePG 1.30 deprecates spec.backup.barmanObjectStore and 1.31 removes
it, so the pin on 1.30.0 was a hard gate. This closes that gate:

- Vendors plugin-barman-cloud v0.16.0 verbatim into
  infrastructure/databases/base/upstream/ (the operator manifest's pattern),
  with a kustomize patch only for --log-level=info and resource bounds.
  v0.16.0 requires CNPG >= 1.30 and is registered through Service
  annotations; its operator<->plugin mTLS pair comes from cert-manager
  (previous commit).
- Adds ObjectStore sirius-growth/portal-wal: the literal translation of the
  retired barmanObjectStore block, with retentionPolicy 14d moved off the
  Cluster (in the plugin, retention belongs to the store).
- Cluster portal drops spec.backup entirely and gains spec.plugins
  (barman-cloud.cloudnative-pg.io, isWALArchiver, barmanObjectName
  portal-wal, serverName portal). The server name is the barman prefix, so
  the plugin keeps writing s3://pg-wal-archive/portal/{base,wals}/... — the
  same objects the in-tree archiver left behind; the 14-day window stays
  readable.
- ScheduledBackup portal-daily switches to method: plugin.
- databases waits on cert-manager; apps waits on databases (the ObjectStore
  CRD ships with the plugin).
- CNPG dashboard: the backup timestamp metric family changes name under the
  plugin, so the panel now accepts both.
2026-11-19 17:58:12 -05:00
Lance Walters
953be9f3cf backup(portal): barman-cloud PITR via a Linode-side Garage WAL archive
sirius-growth/portal had a 24h-RPO pg_dump and no way to roll forward. This adds
continuous WAL archiving + a daily base backup into a second, independent Garage
node on the Linode (bucket pg-wal-archive, 10.10.0.5:3900, WireGuard-only), and
proves a restore to a point in time end to end.

- infrastructure/garage-linode/: podman+quadlet unit (the Linode is a kubelet
  node, no docker), garage.toml bound to 10.10.0.5 only, nft guard in PREROUTING
  -140, install.sh, README with the measured disk sizing, pitr-restore.md with
  the rehearsal transcript.
- apps/base/sirius-growth/cluster.yaml: spec.backup.barmanObjectStore
  (destinationPath s3://pg-wal-archive, gzip WAL+data, retentionPolicy 14d),
  credentials from Secret sirius-growth/portal-wal-s3 (out of band, not in git).
- apps/base/sirius-growth/scheduled-backup.yaml: ScheduledBackup portal-daily,
  03:20 UTC, six-field cron.
- docs/cluster-overview.md: §5.1 the WAL store, §8.1 coverage + sizing + gaps,
  §8.3 the PITR restore recipe.

forgejo/pg is deliberately left on pg_dump only (a day of git history is
annoying, not costly); portal keeps its nightly dump as the logical second copy.

Rehearsed 2026-11-19: marker row at 22:35:06Z, unwanted row at 22:35:28Z,
throwaway cluster restored to targetTime 22:35:15Z came back with the marker and
without the later row. See infrastructure/garage-linode/pitr-restore.md.
2026-11-19 17:46:27 -05:00
Lance Walters
c1fe485469 apps(backup): cover the remaining stateful gaps off-host
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.
2026-11-19 17:14:36 -05:00
Lance Walters
b698f23d4f apps(backup): nightly Forgejo data + CNPG dumps to the Linode, and prove a restore
Nothing on this platform backed up Forgejo or the CloudNativePG databases;
docs/cluster-overview.md had claimed both must be backed up for months.

New CronJob forgejo/cluster-backup (37 2 * * * UTC, Forbid) streams to
[email protected]:/root/cluster-backup over the WireGuard mesh:

  * forgejo-data PVC mirrored with rsync --link-dest (snapshot per night,
    hardlinked, readonly PVC mount, transient upload spools excluded, rsync
    exit 24 tolerated because Forgejo is live while it runs);
  * pg_dump -Fc from inside each CNPG primary (local socket, no DB password
    in git) for forgejo/pg and sirius-growth/portal, sha256-verified on both
    sides before the .part file is renamed.

Nothing is staged on siriussec (83% full, DiskPressure hazard); the job has
an ephemeral-storage cap of 1Gi to make that structural. Job lives in ns
forgejo because a PVC cannot be mounted cross-namespace; the portal dump uses
exec-only RBAC declared in apps/base/sirius-growth/backup-exec-rbac.yaml.

Only secret is forgejo/cluster-backup-ssh (out of band, not in git):
from=-restricted ed25519 key on the Linode, host key pinned.

docs/cluster-overview.md: §8.1 coverage + honest gaps, §8.2 restore runbook,
live PVC/disk numbers corrected.
2026-11-19 17:01:05 -05:00
Lance Walters
d82e1b9f2a infrastructure(garage): commit the config, prove WG-only, split keys, back it up, scrape it
Garage was the only piece of the platform in no git repository and reachable
from more than WireGuard. This is a hardening/ownership pass, not a migration —
the container stays on the Pi.

- infrastructure/garage/: docker-compose.yml (pinned dxflrs/garage:v1.1.0,
  every publish on an explicit 10.10.0.1 / 127.0.0.1 address, no 0.0.0.0),
  garage.toml (rpc_secret moved to /etc/garage/garage.env, [s3_web]/3902
  removed, admin API on 3903 for metrics), README (apply, state, restore,
  keys, backup, metrics) and an explicit note that Flux does not apply it.
- host/garage-firewall.nft: PREROUTING priority -140 drop of 3900-3903 from
  anything but lo/wg0/wg-remote. Docker's DNAT bypasses ufw's INPUT chain, so
  ufw alone cannot stop a compose typo from publishing S3 on the LAN.
  Measured: a 0.0.0.0:3902 publish stayed unreachable from the LAN and the
  drop counter incremented.
- backup/: garage-backup.sh meta|data + systemd timers (meta hourly, data
  nightly) rsyncing to [email protected]:/root/garage-backup over wg-remote.
  Nothing else backs up Forgejo or the PG PVCs; that stays uncovered.
- monitoring/controllers/home/garage.yaml: Service + EndpointSlice +
  ServiceMonitor for 10.10.0.1:3903 and five alerts. Target is UP.
- apps/base/siriusdevops/networkpolicy-site-egress.yaml: first policy in the
  namespace. CiliumNetworkPolicy, not a k8s NetworkPolicy: 10.10.0.1 is a
  cluster node (reserved:remote-node), so ipBlock 10.10.0.1/32 is inert.
  Egress whitelist = TCP 3900 to a node + cluster DNS; measured 403 on 3900,
  timeouts on 3900-adjacent 5000/3903, on 10.10.0.2:8080 and on the internet.

Keys: ci-push (W only, siriusdevops-media) and site-fetch (R only, same
bucket) replace the shared ci-key, which is deleted. The k8s Secret and the
two Forgejo repo secrets were repointed. No key material is in this commit.
2026-11-19 16:32:58 -05:00
Hermes DevOps
05864f3c2c apps(siriusdevops): serve owner media from the private Garage bucket
- site image pinned to :4d03fc814d39... (nginx.conf gains location /media/)
- initContainer media-sync pulls s3://siriusdevops-media from 10.10.0.1:3900
  over the WireGuard mesh into an emptyDir mounted at
  /usr/share/nginx/html/media; creds from secret garage-media-s3
- the sync retries 5x then exits 0, so a Garage outage cannot take the site
  down (headshot falls back to its monogram)
- the bucket stays private: no website access, no public hostname
2026-11-19 16:15:36 -05:00
tui-design
a385a8a360 ci(forgejo): give amd64 job containers the docker CLI
Dispatch of the rewired osint build (run 1363) reached the new login step and
died with '/var/run/act/workflow/3: line 9: docker: command not found'.

amd64.toml only set docker_host, which injects the socket bind but not a CLI,
and the job image is node:20-bullseye (no docker). arm64.toml already solves
this by bind-mounting the dind sidecar's own /usr/local/bin/docker and
cli-plugins into the job container; do the same here and drop docker_host so
the socket is not mounted twice.

No --memory cap: this runner also carries the existing amd64 release builds,
which were already uncapped.
2026-11-17 15:14:06 -05:00
tui-design
318e633419 ci(forgejo): let the amd64 dind daemon push to the in-cluster registry
Forgejo's container registry now lives in the cluster and is reachable only
as the plain-HTTP ClusterIP forgejo.forgejo.svc.cluster.local:3000. Docker
treats only 127.0.0.0/8 as insecure, so any workflow logging in to or pushing
to that host would fail with "server gave HTTP response to HTTPS client".

Adds --insecure-registry for that host to the amd64 dind daemon, which is the
runner the osint-dashboard build now targets (amd64 matches the cluster, so
images are usable on the nodes).
2026-11-17 15:14:06 -05:00
Lance Walters
d9bde195cd apps(forgejo): clear stale dind pid on start so runner restarts self-heal
The dind container mounts the dind-run emptyDir at /var/run. A reboot
restarts the container inside the same pod, so that emptyDir keeps the
dead daemon's docker.pid; dockerd then aborts with "process with PID N
is still running" and the runner sits in CrashLoopBackOff until someone
deletes the pod. Removing the stale pid and socket before starting
dockerd makes both the amd64 and arm64 runners recover on their own.
2026-11-16 20:41:20 -05:00
Lance Walters
274b3aaaed docs(osint): syndication dedupe knobs and the d04ddc9afacb pin 2026-11-13 22:20:58 -05:00
Lance Walters
a9d3a4eb33 apps(osint): summarizer d04ddc9afacb — syndication dedupe before selection
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).
2026-11-13 22:16:50 -05:00
Lance Walters
aede328bf0 docs(osint): analyst grading rubric, thresholds and article_scores 2026-11-13 22:08:07 -05:00
Lance Walters
7edb32f627 apps(osint): summarizer fa745ee3f7ae — closed window + fallback score floor
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.
2026-11-13 21:58:06 -05:00
Lance Walters
6d4813e2ec apps(osint): map-phase grading — summarizer 2c41737d42dd + score thresholds
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.
2026-11-13 21:49:49 -05:00
Lance Walters
550bbdc61d docs(osint): news-list hygiene guards and the 58f71f5b4520 pins 2026-11-13 21:47:04 -05:00
Lance Walters
ff1dc24b93 apps(osint): 58f71f5b4520 — future-dated items dropped at ingest, hidden in /api/news
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.
2026-11-13 21:43:58 -05:00
Lance Walters
46aec23af7 docs(osint): cookie is Secure via ADMIN_COOKIE_SECURE; pin 84ea0a17b1af 2026-11-13 21:18:48 -05:00
Lance Walters
def2556ee7 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.
2026-11-13 21:17:28 -05:00
Lance Walters
c073ec9308 docs(osint): build the merge sha from a detached worktree; note the deleted decoy tag 2026-11-13 21:13:46 -05:00
Lance Walters
28f09d5809 docs(osint): admin login, osint-admin Secret, and the known Secure-cookie gap 2026-11-13 21:12:16 -05:00
Lance Walters
5b9d179239 apps(osint): correct the auth image tag
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.
2026-11-13 21:09:38 -05:00
Lance Walters
426fc24d66 apps(osint): pin the auth build and wire the single-admin Secret
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.
2026-11-13 21:06:43 -05:00
Lance Walters
4ac1cd42d1 apps(osint): BATCH_SIZE=4 for the Nous free-tier summarizer
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.
2026-11-13 20:33:47 -05:00
Lance Walters
cb86b6972f apps(osint): fix Postgres image base (bookworm) + nats monitoring port
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.
2026-11-13 20:20:09 -05:00