Skip to content

Lesson 2 of 5 · 3 min read

Credentials Outside the Sandbox

Agent sandboxes often need to reach authenticated services (a Git host, a package registry, an internal API), but any credential placed inside can be read by the code running there and exfiltrated. The standard answer is a credential broker at the sandbox boundary: the sandbox sends unauthenticated requests through it, the broker checks each request against a narrow policy (which host, which methods, which paths or repositories), attaches a short-lived, least-privilege credential, and logs the call. Network egress is forced through the broker, so there is no other way out.

Reviewed By the AIAgentInterviews editorial team
free sign-in, no card required

Practise it as an interviewer asks it

Course lessons that teach this

Related lessons