CI/CD & GitHub Actions (50 Qs)•Part 3: Enterprise Scale, Compliance & Production Hardening (Senior / Staff)
How do you harden Self-Hosted Runners for enterprise network isolation?
senior LevelcicdEnterprise Scale
In Simple Words: If self-hosted runners run in your internal corporate network, arbitrary code from developer PRs could scan internal network subnets.
Enterprise Hardening:
- Egress Firewall Rules: Block private internal RFC 1918 subnets (
10.0.0.0/8) except strictly allowed internal artifact repositories. - Dedicated VPC / DMZ: Isolate runner infrastructure in a dedicated sandbox VPC.
- Ephemeral Execution: Run inside isolated microVMs (e.g. AWS Firecracker or ARC pods) that are completely destroyed after every single job.