docker-sandboxes-network-credentials
БесплатноБез исполняемых скриптовНе проверенUse this skill when configuring what a Docker Sandboxes (`sbx`) sandbox can reach on the network or which credentials it authenticates with, even if the user…
от docker★ 663 звезды на GitHubОб этом скилле
Docker Sandboxes: Network Policy & Credentials
Overview
This skill owns sbx policy (network egress) and sbx secret (service
secrets and registry credentials). The proxy enforces egress policy and
injects stored credentials on matching domains. Proxy-managed sentinels are
not usable upstream credentials, but OAuth passthrough can expose real
tokens to the sandbox. Egress policy does not protect a real credential
once leaked outside the sandbox; revoke or rotate a leaked credential.
When to use this skill
Activate this skill when:
- The user wants to allow, deny, or inspect which hosts a sandbox (or all sandboxes) can reach.
- The user wants to give an agent an API key, OAuth token, or other service credential without exposing the raw value inside the sandbox.
- The user wants to pull a private template image or kit from a registry that requires authentication.
- The user is debugging a blocked network request or a credential that isn't being injected.
Do not use this skill when
Do not use this skill when:
- The task is running
docker agent run --sandboxor managing itsdocker agent sandboxallowlist — usedocker-agent-run. If the CLI is unclear, establish whether the user runs Docker Agent or standalonesbxbefore choosing commands. - The task is creating, reattaching to, or removing a sandbox itself — use
docker-sandboxes-lifecycle. - The task is the file format for declaring secrets/registries/bindings
inside a checked-in
sbxenv.yamlfile — no skill in this catalog owns it; usedocker-docsfor the format (this skill's rules on precedence and injection scope still apply to what that file provisions). - The task is declaring a kit's own
credentials:/permissions.network:block in aspec.yaml— usedocker-sandboxes-kitsfor the schema (this skill's model of what those declarations mean at runtime still applies).
Core guidance
Network policy: global, per-sandbox, and precedence
- The global network policy must be initialized once before creating the
first sandbox:
sbx policy init <allow-all|balanced|deny-all>.balancedis the recommended starting point (typical dev traffic — AI services, package registries — allowed). This is a one-time setup. sbx policy resetis destructive: it deletes the entire local policy store and stops the daemon and every currently running sandbox. The daemon restarts on the next daemon-backed command. It is not a lightweight way to "start over" or a routine diagnostic step — never propose it as a first troubleshooting move for a single misbehaving rule. Use targetedsbx policy rm network(by--idor--resource) to remove one rule instead; reservesbx policy resetfor when the policy store itself needs to be rebuilt from scratch, and warn the user that it will stop running sandboxes before running it.- Add rules with
sbx policy allow network RESOURCES/sbx policy deny network RESOURCES.RESOURCESis a comma-separated list of exact hosts,*.example.comsingle-label wildcards,**.example.commulti-label wildcards, optional:portsuffixes, CIDR prefixes, or**for "all hosts".sbx policy init balanced sbx policy allow network "api.example.com,cdn.example.com" sbx policy deny network ads.example.com - Deny always wins over allow for the same hostname/CIDR when both match. An allowed hostname is not checked against CIDR deny rules for its resolved IP.
- A rule applies globally by default. Pass
--sandbox NAMEto scope it to one sandbox's local policy instead:sbx policy allow network --sandbox my-sandbox api.example.com - At creation time only,
sbx create/sbx runaccept--deny-network RESOURCE(repeatable) to add a per-sandbox deny rule. This is safe to expose even under centralized (org) governance because a local deny can only narrow, never widen, egress — it can never override an org-level allow into a broader grant. - Use
sbx policy check network [--sandbox NAME] TARGETto test what the current policy would do for a host/URL before it matters, andsbx policy log [SANDBOX]to see what was actually allowed or blocked historically, with the matching rule.sbx policy check network --sandbox my-sandbox api.example.com:443 sbx policy log my-sandbox --json sbx policy ls [SANDBOX] [--wide]lists active policies/rules;--wideadds rule IDs (needed forsbx policy rm network --id) and per-resource status.sbx policy inspect <policy-or-rule>gives full detail including each rule's exact removal command or the reason it is read-only (e.g. org-managed). To remove a sandbox-scoped rule, retain--sandbox NAME; omitting it targets the global policy instead:
Removing one rule does not detesbx policy rm network --sandbox my-sandbox --resource api.example.com sbx policy check network --sandbox my-sandbox api.example.com
Установить docker-sandboxes-network-credentials в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл docker-sandboxes-network-credentials?
Use this skill when configuring what a Docker Sandboxes (`sbx`) sandbox can reach on the network or which credentials it authenticates with, even if the user just says they want to "let the agent call an internal API", "block all network access", "give the agent a GitHub token", or "use a private registry image for a sandbox". Covers `sbx policy init/allow/deny/ls/inspect/log/check/rm network` (global and per-sandbox egress rules, deny-over-allow precedence) and `sbx secret set/set-custom/ls/rm/import` (service secrets, dynamic secrets via --ref/--command, and registry pull credentials with their host-pulls-only-by-default injection scope).
Как установить скилл docker-sandboxes-network-credentials?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл docker-sandboxes-network-credentials запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic