monitoring/grafana-backup, forgejo/cluster-backup and sirius-growth/leadgen-backup
all ran `apk add --no-cache rsync openssh-client` at container start. Every night
that dialled dl-cdn.alpinelinux.org (Fastly anycast 151.101.x.132:443), which is
what `egress-new-dst` kept reporting, and made the backups depend on the public
internet at 03:00 UTC.
- image: forgejo.siriusdevops.com/sirius/backup-tools, built in CI from
python:3.12-alpine (pinned by digest) + rsync + openssh-client + bash +
kubectl v1.36.4 (release sha256 verified at build). Pinned by digest in all
three CronJobs, no apk in any backup path.
- egress: CiliumNetworkPolicy per backup pod — cluster DNS and 10.10.0.5:22 for
all three, plus kube-apiserver 6443/443 for cluster-backup only, with an
explicit deny for `world` (Cilium unions namespace policies, so the allow list
alone would not restrict a pod inside `forgejo`/`sirius-growth`).
- monitoring gains the registry pull secret it never needed before; the job now
keeps imagePullSecrets: forgejo-pull (SOPS-encrypted in git).
Schedules, retention, destination paths, entrypoints and RBAC are unchanged.
Forgejo's /v2/token answers 403 to the scope set buildx imagetools uses
(measured on this registry), while push and kubelet pull work. The metadata
file is the authoritative digest of the manifest the registry just accepted.
The three nightly backups (grafana-backup, cluster-backup, leadgen-backup)
installed rsync + openssh-client with apk at container start, so every run
depended on the Alpine CDN (Fastly anycast 151.101.x.132:443) and moved the
egress-new-dst alert whenever that anycast address rotated.
This adds the build only; the CronJob pins land in the next commit. Base image
python:3.12-alpine pinned by digest, kubectl v1.36.4 from dl.k8s.io with its
release sha256, amd64 only (all three jobs are nodeSelector'd to siriussec).