AI NewsInfrastructureAnnouncement

GitLab released a probe to verify Duo agent sandbox rules

GitLab published Sandbox Probe for Duo Agent Platform. It runs 14 checks and reports ACTIVE or NOT ACTIVE for your sandbox rules.

AI News

Editorial2 min read

LinkedInX
GitLab Duo Agent Platform sandbox verification cover

Why it mattersA sandbox you wrote rules for but never tested can be off and look fine. One check now shows whether the rules took effect at all.

A sandbox can look right in the settings page and still be off at runtime. The agent runs clean, the allowlist is not enforced, and nothing in the output says so. The team finds out only when the agent reaches a destination it was told not to.

GitLab released Sandbox Probe for its Duo Agent Platform on 30 November. The probe is an agentic flow that you run against a real runner. It reports on three categories: configuration, filesystem and network, 14 deterministic checks in total. The first line of the report is "Sandbox: ACTIVE" or "Sandbox: NOT ACTIVE". If it says NOT ACTIVE, the flow probably ran without the sandbox. The rest of the results do not describe a sandboxed run.

The rules it checks are the ones in a group or project setting. The sandbox proxy always allows four destinations: localhost, host.docker.internal, your GitLab instance, and the Duo Workflow Service. Beyond those, denied domains block requests and allowed domains let them through. Recommended domains open up access to common package registries and cloud services.

Flexible mode and strict mode

A group admin picks how project rules combine with group rules. The setting is called "Allow projects to extend network sandbox settings". Flexible mode merges a project's allowed domains with the group list, and merges denied domains. Strict mode ignores project allowed domains, and merges denied domains only. In strict mode, a project can tighten the group's rules but never loosen them.

The filesystem rules are simpler. A flow can write only to its working directory and /tmp. Reads from ~/.ssh are blocked outright.

What the probe checks

Configuration checks compare the rules you set against what the sandbox is actually using. Filesystem checks try a write to a permitted path and to a restricted path, and read a blocked file. Network checks call five domains by default, each with three request methods. The report shows the expected and actual result for every domain tested. A domain you added to the allowlist can still fail here. That means the rule is in the config but not in force.

The sandbox has been generally available since GitLab 18.8. Network allowlists arrived in 18.10. Group-level controls arrived in 18.11, alongside Sandbox Probe itself.

Writing sandbox rules is the easy part. Testing that they are on is the part most teams skip. A probe is for that step. Without it, a team only finds out the rules were off after the fact. The agent uses the reach it should not have had, and the sandbox was not blocking it. GitLab's probe is for its own platform, but the design is the same for any agent sandbox: write the rules, then run a deterministic check that tries each one.

Source

SourceGitLab

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project