CTL-040 · human
Ephemeral, Egress-Limited Runners
Run CI jobs on fresh runners that are destroyed after each job and can only reach approved hosts.
TechnicalEffort MediumEffectiveness High
Reused runners keep credentials and files from earlier jobs, and open egress lets any job send data anywhere. Ephemeral runners plus an egress allowlist close both gaps and make new destinations visible.
Pair egress controls with job-level logs so reviewers can see where each build went. Start in monitor mode to learn the normal hosts, then switch to block. Self-hosted runners that serve public or fork PRs should be isolated from those that hold production secrets.
Put it in place
- 01Use ephemeral or just-in-time self-hosted runners, or platform-hosted runners.
- 02Route runner egress through a proxy or firewall with an allowlist of registries, code hosts and cloud APIs.
- 03Block access to the instance metadata service from job containers.
- 04Log DNS and connections per job and keep them with build logs.