Network Isolation
In this article
- Write an outbound allowlist for each phase of a sandboxed job and swap it when the phase ends.
- Explain why a host name on the list is not enough, and how checking the resolved address and every redirect target closes the gap.
- Predict the verdict for an allowed call, the cloud metadata address, a redirect and a name that resolves to a private address, and read the log line each one leaves.
- Terms defined here: egress proxy.
Overview
Code that an AI model wrote is running in your sandbox, and it needs the network: once to download a library, once to post its result. You give it a short list of allowed hosts. Is that enough to stop it from calling anywhere else?
Not quite. A name on a list is not the machine it reaches, a server can answer "go over there instead", and a list only helps if traffic cannot go around it. You will write an outbound list for each phase of a job, then predict four requests and read why the proxy lets only one through.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Two phases, two lists
- A name is not an address
- A redirect is a new trip
- No way around the proxy
- Four requests, four verdicts
- The rule at work
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions