Post

Adding Talos seccomp profile for media PostgreSQL restore

Adding Talos seccomp profile for media PostgreSQL restore

The latest main push adds a Talos seccomp profile that isolates the media PostgreSQL restore job, blocks unneeded socket types, and updates supporting documentation and the builder script.

New seccomp profile .talos/patches/media-postgres-seccomp.yaml

A 488‑line YAML profile was added to the Talos patch set. It declares a seccomp profile named media-postgres-unix-only.json that permits Unix‑socket syscalls for local PostgreSQL health checks while denying IP‑socket creation. The profile is scoped to the zimaboard-1 machine and works with Talos 1.11.3 and containerd 2.1.4.

Documentation references

Both docs/storage-nfs.md and openwiki/architecture/storage-and-state.md were updated to mention the new profile. The markdown now explains that the profile provides restore isolation, that the active PostgreSQL StatefulSet stays on its existing claim during the rehearsal, and that the profile is delivered via the GitOps change that selects it for the restore Job.

Script updates to scripts/talos-nix-builder-seccomp.py

The Python builder script was revised to reference the profile name media-postgres-unix-only.json and added a verify_file helper that checks the profile exists at the expected path and matches the reviewed hash. The install command now selects only the reviewed profile for eligible workers, and the script includes a node‑affinity guard that raises an error if the profile has not been approved for the target node.

This post is licensed under CC BY 4.0 by the author.