Skip to content

Commit 16617fa

Browse files
dvdksnclaude
andcommitted
sbx: restructure governance docs and add governance API reference
Splits the existing security/governance and security/policy pages into a new governance section with concepts, local, organization, monitoring, and API reference sub-pages, and adds a custom api-reference Hugo layout that renders the colocated OpenAPI 3 spec directly from the spec file. The layout reads the spec via transform.Unmarshal, resolves $ref nodes through a small returning partial, and overrides baseof's main block to take the full content width. The built-in right-rail TOC is replaced with a sticky endpoint navigator that groups operations by tag with method-colored pills. Each operation card shows method/path, summary, description, parameters, request body, and responses. Responses use native <details> elements so the list of status codes stays scannable; 2xx defaults to open. JSON examples are wrapped in the site's syntax-light/dark utility so Chroma classes pick up the theme. Each operation also exposes a copy-as-cURL button that assembles a ready-to-paste command from the spec's path and query parameter examples, the bearer-auth scheme (with $TOKEN as a literal placeholder), and the request body's default JSON example. A companion api-reference.markdown.md template renders the same spec as a clean markdown document so the page's "Copy Markdown" / "View Markdown" actions and the .md alternate link return real content instead of just the page title. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent a0a179c commit 16617fa

23 files changed

Lines changed: 3072 additions & 329 deletions

File tree

content/manuals/ai/sandboxes/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build containers, install packages, and modify files without touching your host
1414
system.
1515

1616
Organization admins can
17-
[centrally manage sandbox network and filesystem policies](security/governance.md)
17+
[centrally manage sandbox network and filesystem policies](governance/org.md)
1818
from the Docker Admin Console, so the same rules apply uniformly across every
1919
developer's machine. Available on a separate paid subscription.
2020

content/manuals/ai/sandboxes/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ layers, and volumes, and this grows as you build images and install packages.
3636

3737
All outbound traffic from the sandbox routes through an HTTP/HTTPS proxy on
3838
your host. Agents are configured to use the proxy automatically. The proxy
39-
enforces [network access policies](security/policy.md) and handles
39+
enforces [network access policies](governance/local.md) and handles
4040
[credential injection](security/credentials.md). See
4141
[Network isolation](security/isolation.md#network-isolation) for how this
4242
works and [Default security posture](security/defaults.md) for what is

content/manuals/ai/sandboxes/faq.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Signing in gives each sandbox a verified identity, which lets Docker:
1414
containers, install packages, and push code. Your Docker identity is the
1515
anchor.
1616
- **Enable team features.** Team-scale features like
17-
[organization governance](security/governance.md), shared environments, and
17+
[organization governance](governance/org.md), shared environments, and
1818
audit logs need a concept of "who," and adding that later would be worse for
1919
everyone.
2020
- **Authenticate against Docker infrastructure.** Sandboxes pull images, run
@@ -30,7 +30,7 @@ organization and take precedence over local rules set with `sbx policy`.
3030
Admins can optionally delegate specific rule types back to local control so
3131
developers can add additional allow rules.
3232

33-
See [Organization governance](security/governance.md). This feature requires
33+
See [Organization governance](governance/org.md). This feature requires
3434
a separate paid subscription —
3535
[contact Docker Sales](https://www.docker.com/products/ai-governance/#contact-sales)
3636
to get started.
@@ -99,7 +99,7 @@ $ echo $BRAVE_API_KEY
9999
## Why do agents run without approval prompts?
100100

101101
The sandbox itself is the safety boundary. Because agents run inside an
102-
isolated microVM with [network policies](security/policy.md),
102+
isolated microVM with [network policies](governance/local.md),
103103
[credential isolation](security/credentials.md), and no access to your host
104104
system outside the workspace, the usual reasons for approval prompts (preventing
105105
destructive commands, network access, file modifications) are handled by the

content/manuals/ai/sandboxes/get-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Use ↑/↓ to navigate, Enter to select, or press 1–3.
114114

115115
**Balanced** is a good starting point — it permits traffic to common
116116
development services while blocking everything else. You can adjust individual
117-
rules later. See [Policies](security/policy.md) for a full description of each
117+
rules later. See [Policies](governance/local.md) for a full description of each
118118
option.
119119

120120
> [!NOTE]
@@ -233,7 +233,7 @@ $ sbx policy allow network -g registry.npmjs.org
233233

234234
With **Locked Down**, even your model provider API is blocked unless you
235235
explicitly allow it. With **Balanced**, common development services are
236-
permitted by default. See [Policies](security/policy.md) for the full rule
236+
permitted by default. See [Policies](governance/local.md) for the full rule
237237
set and how to customize it.
238238

239239
## Clean up
@@ -269,4 +269,4 @@ working tree are unaffected.
269269
with kits
270270
- [Credentials](security/credentials.md) — credential storage and management
271271
- [Workspace trust](security/workspace.md) — review agent changes safely
272-
- [Policies](security/policy.md) — control outbound access
272+
- [Policies](governance/local.md) — control outbound access
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: Governance
3+
weight: 55
4+
description: Control what sandboxes can access, from local developer rules to org-wide enforcement.
5+
keywords: docker sandboxes, governance, policy, network access, filesystem access, organization policy
6+
---
7+
8+
Sandbox governance covers the policy system that controls what sandboxes can
9+
access over the network and on the filesystem. It operates at two layers that
10+
build on each other:
11+
12+
**Local policy** is configured per machine using the `sbx policy` CLI. It
13+
lets individual developers customize which domains their sandboxes can reach.
14+
See [Local policy](local.md).
15+
16+
**Organization policy** is configured centrally in the Docker Admin Console or
17+
via the [Governance API](api.md). Rules defined at the org level apply
18+
uniformly across every sandbox in the organization and take precedence over
19+
local rules. Admins can optionally delegate specific rule types back to local
20+
control so developers can extend the org policy with additional allow rules.
21+
See [Organization policy](org.md).
22+
23+
> [!NOTE]
24+
> Organization governance is available on a separate paid subscription.
25+
> [Contact Docker Sales](https://www.docker.com/products/ai-governance/#contact-sales)
26+
> to request access.
27+
28+
## Learn more
29+
30+
- [Policy concepts](concepts.md): resource model, rule syntax, evaluation,
31+
and precedence
32+
- [Local policy](local.md): configure network and filesystem rules on your
33+
machine with the `sbx policy` CLI
34+
- [Organization policy](org.md): centrally manage sandbox policies across
35+
your organization from the Admin Console
36+
- [Monitoring](monitoring.md): inspect active rules and monitor sandbox
37+
network traffic with `sbx policy ls` and `sbx policy log`
38+
- [API reference](api.md): manage org policies programmatically via the
39+
Governance API

0 commit comments

Comments
 (0)