Skip to content

docs(sandboxes): kit spec schemaVersion 2 and credential bindings#25467

Draft
dvdksn wants to merge 6 commits into
docker:mainfrom
dvdksn:sandboxes-kit-spec-v2
Draft

docs(sandboxes): kit spec schemaVersion 2 and credential bindings#25467
dvdksn wants to merge 6 commits into
docker:mainfrom
dvdksn:sandboxes-kit-spec-v2

Conversation

@dvdksn

@dvdksn dvdksn commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Documents the Docker Sandboxes kit-authoring schema for schemaVersion: "2" and the credential bindings feature for third-party kits.

What's in this PR

  • customize/kit-reference.md — schema versions section with the v1→v2 field mapping; credentials/network/environment reference rewritten to the caps.network + credentials[] (apiKey / oauth) model
  • customize/kits.md, customize/kit-examples.md — examples updated to schemaVersion: "2" and the new caps.network / credentials[] shape
  • security/credentials.md — adds the "Credential bindings" section (credentials.yaml format, first-run approval, which kits require a binding, fail-closed mode) and updates "Services declared by kits" to the schemaVersion 2 declaration syntax

Why combined

Credential bindings are only required for third-party schemaVersion: "2" kits. Built-in agents are authorized by provenance and never trigger the binding consent flow, so documenting bindings only makes sense alongside the schemaVersion 2 kit context.

Dependency

Stacked on #25468, which owns the base credentials documentation. Merge #25468 first, then rebase this branch onto main — the credentials.md change here is only the additive bindings content on top of that base.

@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit ffb3931
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a4806e0b4ba49000960f2cc
😎 Deploy Preview https://deploy-preview-25467--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.

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

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/customize/kit-reference.md Outdated
Comment thread content/manuals/ai/sandboxes/customize/kit-reference.md Outdated
@dvdksn dvdksn force-pushed the sandboxes-kit-spec-v2 branch 2 times, most recently from a53f6ce to 1abdd3d Compare July 1, 2026 06:11
@dvdksn dvdksn added this to the sbx/future milestone Jul 2, 2026
@dvdksn dvdksn changed the title docs(sandboxes): kit spec schemaVersion 2 docs(sandboxes): kit spec schemaVersion 2 and credential bindings Jul 3, 2026
@dvdksn dvdksn force-pushed the sandboxes-kit-spec-v2 branch 3 times, most recently from de6aad0 to ea5c18d Compare July 3, 2026 11:53
dvdksn and others added 6 commits July 3, 2026 20:59
- Remove the environment variables section. Exporting API keys in your
  host shell is no longer a supported authentication path.
- Document `sbx secret import` for moving API keys from environment
  variables into the keychain, with flags for non-interactive use
  (`--all`), overwriting (`--force`), and dry-run preview.
- Lead the get-started authentication section with OAuth as the primary
  path for Claude Code, pointing to the credentials page for API keys.
- Move CI credential setup to the workflows page, using `sbx secret
  import --all` and cross-referencing the built-in services table.
- Revert agent-page language describing a first-run credential prompt
  that no longer applies to built-in agents.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add schemaVersion 2 kit spec reference, update kits.md and kit-examples.md
for the v2 credential declaration model.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Document the credential bindings model for third-party schemaVersion 2
kits: credentials.yaml format, first-run approval flow, which kits
require a binding, and fail-closed mode. Built-in agents are authorized
by provenance and never need a binding.

Stacked on top of the credentials base changes in docker#25468.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rewrite the credential bindings section to match the shipped v0.9.0
binding schema. Bindings are store-only, per-mechanism approval records:
each service entry approves apiKey and/or oauth, each with a domains
list. Remove the obsolete discovery/env/file/allowedDomains model and
the fail-closed setting, which don't exist. Correct the non-interactive
behavior (warning + withheld credential, not a blocking error) and the
first-run source choices (stored or entered, not env/file).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Remove the "known providers auto-expand their injection config" claim.
  In v0.9.0 the service name alone supplies no apiKey.name/inject; every
  service must declare an apiKey (name + inject) or oauth block. The
  worked examples already do this.
- Delete the file.parser section: its two cited entry points (a binding
  file source and credentials.sources) are both removed/legacy in v2.
- Drop the "or provider default" injection-domain aside in the network
  section for the same reason.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Verified each field against runtime wiring in docker/sandboxes, not just
the sbx-kits-contrib struct.

- apiKey: document proxyManaged (controls the in-container sentinel env
  var); the proxy injects on the inject domains regardless.
- oauth: add the wired resourceHosts, skipIfEnv, responseFields, and
  passthrough fields; add {{.Scopes}} to the template vars. Omit
  credentialFile.structure, which the engine ignores.
- required: correct to advisory-only — it logs a warning but doesn't
  block sandbox creation (the struct doc's fail-fast claim is stale).
- Schema versions table: map environment.proxyManaged to apiKey.name +
  proxyManaged: true, and add the publishedPorts and volumes-form renames.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dvdksn dvdksn force-pushed the sandboxes-kit-spec-v2 branch from ea5c18d to ffb3931 Compare July 3, 2026 19:00
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