Skip to content

agent: configure optional containerd image verifiers - #961

Merged
Patrick W. Healy (phealy) merged 1 commit into
mainfrom
image-verifier-config
Oct 20, 2026
Merged

Patrick W. Healy (phealy) merged 1 commit into
mainfrom
image-verifier-config

Conversation

@phealy

Copy link
Copy Markdown
Contributor

Summary

  • Configure the shared containerd image-verifier plugin with /opt/containerd/image-verifier/bin, a maximum of 10 verifiers, and a 10-second timeout per verifier.
  • Leave the verifier directory absent by default and preserve customer-provided contents. Customers opt in by mounting executables read-only with the existing AdditionalHostMounts field.
  • Document that systemd-nspawn creates the destination mountpoint at startup, while the host source must already exist.
  • Add regression coverage for rendered TOML, absent/empty/populated verifier directories, unchanged reapplication, configuration-write failures, and the config-to-nspawn mount pipeline.

Validation

  • Focused tests: go test ./pkg/agent/phases/nodestart ./pkg/agent/phases/rootfs.
  • Package-scoped make fmt and golangci-lint passed.
  • Containerd 2.1.8 config dump accepted the rendered configuration and preserved verifier, CRI, and metrics settings.
  • Full branch diff and relevant workflow configuration reviewed before publication; no concrete issues found.

No Containerfile changes, bundled verifiers, new dependencies, or new configuration API fields.

Configure the shared containerd verifier directory without creating or populating it. Cover config rendering and customer mount wiring, and document read-only opt-in mounts and source/target lifecycle.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 87f22f9d-c918-4fb7-a6eb-0d770c803fea
@phealy
Patrick W. Healy (phealy) requested a review from a team October 20, 2026 21:23
@phealy
Patrick W. Healy (phealy) added this pull request to the merge queue Oct 20, 2026
Merged via the queue into main with commit 86de36c Oct 20, 2026
44 checks passed
@phealy
Patrick W. Healy (phealy) deleted the image-verifier-config branch October 20, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants