Repository navigation
Description
Context
The Docker Sandboxes kit in devel/sandbox-kit/ (published as chainloop/sbx-kit-claude) passes the Chainloop token into the sandbox VM as a value (chainloopToken kit arg / CHAINLOOP_TOKEN env var), or adopts a mounted config.toml. We did this because the sbx egress proxy could not inject credentials for our hosts: to rewrite a header it terminates TLS, and its intercepted path did not negotiate the h2 ALPN. chainloop trace talks gRPC to the control plane, and grpc-go aborts with missing selected ALPN property. So the kit keeps the Chainloop hosts on NO_PROXY and documents why sbx secret set and secrets: in sbxenv.yaml must not be used.
Upstream now indicates this limitation is fixed: docker/sbx-releases#574
Goal
Verify that proxy-managed credential injection now works for the Chainloop CLI, and if so, move the kit and its documentation to that model, so the real token never lives inside the VM.
Scope
- Verify with a current
sbxbuild that the intercepted proxy path negotiatesh2for the Chainloop hosts (the kit already documents the check:curl -sv --http2 --proxy "$HTTPS_PROXY" https://cp.chainloop.dev/must show the "Docker Sandboxes Proxy CA" issuer and still negotiate h2). - Verify an end-to-end
chainloop tracesession (gRPC to control plane and CAS, attestation push ongit push) with the token injected by the egress proxy (sbx secret set/set-custom, or asecrets:entry insbxenv.yaml) and only a placeholder inside the VM. - If it works, update the kit:
devel/sandbox-kit/claude/spec.yaml: add acredentials:entry for the Chainloop hosts, remove them fromNO_PROXY/no_proxy, and revisit thechainloopTokenarg and the wrapper's credential check (it must still refuse to start without credentials).sbxenv.yaml: replace the--env-arg chainloopTokenflow and the "never bind a Chainloop host to a credential" guidance.- Decide what to do with the
chainloopConfig(mountedconfig.toml) path. - Note the minimum
sbxversion required, and re-check the "Why nightly" section (schema v2: childsetupblock drops parent setup commands inextends: claudekits docker/sbx-releases#415) against the current stable release.
- Update the documentation to match:
devel/sandbox-kit/README.md(including "Why the token is passed in, and not stored in sbx's secret manager" and the "Which to use" table) and the docs guide at https://docs.chainloop.dev/guides/docker-sandboxes. - If it does not work yet, record the result and the
sbxversion tested in this issue, and keep the current approach.
🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri
Activity
migmartri commentedon Nov 20, 2026
cc/ @danlishka
e00dan commentedon Nov 28, 2026
I decided to take a look at this issue and opened PR: #3854 which contains end to end working implementation, at least in the scenarios that I was testing.
I took some arbitrary design choices such as:
--env-arg chainloopTokenandchainloopConfigfor simplicity and because the new secret passing from the host in newer sbx versions seems superiorYou might have a different opinion about this design and the tradeoffs. Open to any feedback.
cc @migmartri @danlishka
e00dan commentedon Dec 1, 2026
#3854 is merged, the docs guide is updated and the new kit is published as v1.139.0, so I think this can be closed.