Headscale Multi-Tenant Isolation for Tailnet, ACL, Routes, and MagicDNS
Upstream headscale is built around a single-tailnet assumption: one control-plane process manages one shared IP pool, one global ACL policy document, one MagicDNS suffix, and one default relay map. That works well for a single team, but running a SaaS platform—or isolating multiple departments and customer environments on shared infrastructure—requires strict multi-tenant boundaries across every layer of the control plane.
This post walks through the six isolation pillars implemented to transform single-instance headscale into a true multi-tenant architecture, which directly powers Larktun's tenant model today.