A Container Is Not a Security Boundary: An Agent FAQ
A container can be part of a security boundary. Whether it provides the isolation an agent needs depends on the runtime and the authority granted to the process. Evaluate the deployed configuration for each phase of the
A container can be part of a security boundary. Whether it provides the isolation an agent needs depends on the runtime and the authority granted to the process. Evaluate the deployed configuration for each phase of the job. A development build and a review of untrusted changes may warrant different permissions.
What belongs in the review?
Which files are readable? List the data the task actually needs, then compare that list with the configured bind mounts and volumes. A read-only mount protects against ordinary writes through that mount. It still permits reads where file permissions allow. Supplying a complete home directory for the convenience of one tool can expose unrelated data.
Which process needs a credential? Identify its consumer and lifetime. Child processes commonly inherit their parent's environment unless the launcher supplies a different one. Use a scoped environment per phase and avoid placing deployment credentials in a process that only runs a build.
Who controls the runtime? Review privileged settings, the runtime user, capabilities, device access and management endpoints using the deployment manifest. Keep management authority with the component that actually provisions jobs. The access inventory should also explain which network destinations are required and who enforces that choice.
Test the inventory
Use a disposable fixture with synthetic input files. Review the effective manifest for the build phase and compare it with the narrow contract: input readable, scratch output writable, no release credentials and no runtime management access. Compare the deploy phase independently. Record which restrictions come from runtime configuration and which rely on the application. Do not grant extra permissions to a fixture in order to demonstrate what a normal workload could reach.
Containers, virtual machines and managed sandboxes have different isolation properties. A reproducible build image tells you which software was packaged. The capability inventory tells you which resources the packaged process can use.
This article was created with AI assistance.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.