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.
Adds an independent local-path-provisioner pinned to the linode worker with its
own ConfigMap (local-path-config-linode), helper pod, and StorageClass
local-path-linode. The existing siriussec provisioner, its ConfigMap, the
local-path StorageClass (still the cluster default) and every existing PVC/PV
are untouched.
Documents what the live migration actually produced (kanban t_5df331de):
- §8.3: restore manifest is externalClusters[].plugin + barmanObjectName/
serverName, with the 2026-11-19 rehearsal transcript (marker 23:04:53.07,
target 23:05:00Z, poison 23:05:15.80 -> marker present, poison gone).
- §8.4 (new): how the plugin is wired — vendored manifest, Service-annotation
registration, cert-manager dependency, ObjectStore/ScheduledBackup shape,
the injected init-sidecar, and the metrics family change.
- §8.1/§5.1: producer is the plugin; retention moved to the ObjectStore;
the "1.31 is a hard gate" caveat is replaced by "gate closed".
- §9/§10 + namespace table: cert-manager and barman-cloud are live state now,
with the verification log rows.
- pitr-restore.md rewritten for the plugin (manifest, sidecar log evidence,
the two-servers-name trap, retention location).
- CNPG dashboard: the `or` now prefers the plugin's metric — the legacy
cnpg_collector series still holds the PRE-migration timestamp.
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.
The Barman Cloud plugin release manifest ships an Issuer plus two
Certificate objects (operator->plugin mTLS) and assumes cert-manager is
present. Installing it as a HelmRelease off charts.jetstack.io with
crds.enabled=true, in its own Flux Kustomization so the databases
Kustomization can wait on it.
No new cert is issued by this commit; the plugin (next change) is the only
consumer.
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.
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.
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.
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.
- 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
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.
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).