Skip to content

sbx: add org policy recipes page#25234

Draft
dvdksn wants to merge 4 commits into
docker:mainfrom
dvdksn:worktree-sbx-policy-recipes
Draft

sbx: add org policy recipes page#25234
dvdksn wants to merge 4 commits into
docker:mainfrom
dvdksn:worktree-sbx-policy-recipes

Conversation

@dvdksn
Copy link
Copy Markdown
Contributor

@dvdksn dvdksn commented Jun 2, 2026

Summary

Adds a governance page with minimal, composable network policy presets for common sandbox workflows — developer essentials (GitHub, certificate validation, Ubuntu packages), per-language package registries, container images, and agent-specific blocks for Claude Code and Codex. Each recipe is given in both Admin Console (rule tables) and Governance API (curl) form.

Org policies are deny-by-default, so the page is framed as minimal building blocks an admin composes, explicitly contrasted with the broad local Balanced preset. Domains are sourced from the sbx balanced preset and trimmed to a minimal canonical set per block.

Learnings

  • The Governance API examples were verified against content/reference/api/ai-governance/api.yaml: base URL https://hub.docker.com/v2, bearer JWT exchanged from a PAT/OAT at /users/login, network allow rules use actions connect:tcp/connect:udp.

Generated by Claude Code

Add a governance page with minimal, composable network policy presets
for common sandbox workflows (developer essentials, package registries,
container images, Claude Code, Codex), in both Admin Console and
Governance API form. Link it from the governance index.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 2, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 58f3f25
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a1eb7eb9e682100088aabd7
😎 Deploy Preview https://deploy-preview-25234--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown

@docker-agent docker-agent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟡 NEEDS ATTENTION

Comment thread content/manuals/ai/sandboxes/governance/recipes.md Outdated
Reframe the GitLab/Bitbucket note as swapping GitHub for equivalent
hosts, and point readers to sbx policy log / the Monitoring page for
discovering which domains a workflow needs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
dvdksn and others added 2 commits June 2, 2026 12:57
Match the worked example to the recipe table so ARM-based sandboxes can
reach the Ubuntu ARM mirrors.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
A rule without a port matches any port; only a :port suffix restricts.
Reword the note accordingly and drop the redundant :80 entries, since
bare hostnames already cover the HTTP and HTTPS ports the proxy handles.
ports.ubuntu.com (bare) still covers the ARM mirror on port 80.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dvdksn
Copy link
Copy Markdown
Contributor Author

dvdksn commented Jun 3, 2026

Waiting on the audit log + team policy PRs to merge before I resume this one, to avoid too many conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants