Skip to content

moca v0.9.0 — egress credentials for the sandbox

Choose a tag to compare

@pdettori pdettori released this 29 Oct 01:08
c13d556

moca v0.9.0 — egress credentials for the sandbox

The headline is SBX0.2b: a sandboxed agent can now authenticate to the outside world without
the credential ever existing inside the guest. On top of v0.8.0's plain egress proxy, a host's
interception CA is baked into the snapshot (build-snapshot --egress-ca), moca-egress terminates
TLS for credentialed hosts and injects the real secret into the request — the guest only ever holds
a placeholder. The credential lives in the control plane, is fetched over the host-side seam with a
TTL cache, and never crosses the VM boundary: the live credential smoke asserts the
credential-never-in-guest gate on the rig.

How egress credentials work

  • The control plane (#630): sandbox profiles gain egress config and a credential store.
    Destinations are host:port/prefix allowlists with multi-header bindings
    (POST /v1/egress/credential), lookups are owner-scoped and TTL-cached, and a k8s-backed store is
    refused when egress is enabled — one backend, no split-brain.
  • The proxy (#641): TLS interception and header injection for credentialed hosts only; the
    guest's own Authorization header is dropped on matched requests, so a leaked placeholder can
    never masquerade as the real token. TRACE is refused on intercepted connections, non-100 1xx
    passes through, and conformance failures never print credential values. The public conformance
    suite gains interception and injection cases.
  • The tooling (#646): mocactl sbx credentials manages credentials with a preset catalog
    (github, github-mcp); install-host.sh --egress installs the credential client and host CA;
    setup.sh enables the feature behind SBX_EGRESS_CREDENTIALS=1. The host wraps credential keys
    in a KEK ring, and --egress-ca fails loudly on init drift.
  • Deploy & docs (#624): the egress credentials user guide and security review live in
    docs/; the nested-m8i live acceptance with real egress credentials passed on 2026-10-28.

Fixes

  • Standbys counted as clean (#647, #644): paused standby VMs are charged at dirty-page cost in
    admission control, and warm-acquire promotions are funded by evicting idles rather than refusing.
  • Orphaned workload sandboxes (#615, #643): a reconciler sweeps sandboxes left behind by lost
    records, and reports PVCs it kept so nothing is reclaimed silently.
  • Redis persistence (#607, #410): session state survives the failure path it previously didn't.
  • Egress hygiene (#619, #585; #621, #587; #614, #586): idle deadlines on both data paths, the
    control connection outlives a call whose ctx has ended, and the audit stream stays bounded.
  • Fast tier no longer starves behind the slow one (#640, #245); retired MultiEdit/LS/NotebookRead
    denies taken back (#635, #574).
  • mocactl: login copies the code and opens the browser (#610); the TUI redraws history on
    resize instead of clipping (#651, #596); spawn --prompt-file (#638).
  • sbx pull --apply refuses .bob/ (#657) — IBM Bob's settings, on top of the existing
    .pi/, .agents/ and .codex/ refusals — and warns for a pulled .bobrules (#657).
  • Dependency bumps: golang.org/x/net v0.62.0 (CVE-2026-78661, CVE-2026-97045), MCP SDK 1.32.2.

Also in this release

  • Anthropic OAuth tokens for inference (#658, #595): credential issuance accepts Anthropic OAuth
    tokens, refusing a shared OAuth fallback and guarding the beta path with a wiring test.
  • mocactl sbx claude (#656, #577): a launcher that asks nothing — the folder-trust question is
    answered up front, not mid-session.
  • mocactl sbx codex (#639, #593): Codex CLI on the sandbox's MCP tools.
  • Cortex mode (#629, #568): sbx up --cortex loads the project's CLAUDE.md and drives Cortex's
    agentop; doctor checks Cortex's moca-sandbox in a Cortex-mode repo.
  • sbx up configures IBM Bob and checks the agent configuration before --cortex touches it.
  • Test-user logins behind a shared secret (#620); setup propagates SH_MODEL_CATALOG_HOSTS and
    strips a hand-patched value before the k8s apply (#622); seed bundles held until their resend
    arrives (#618); the delegate skill owns its sandboxes (#617).
  • Commits and PR descriptions now enforce Assisted-By attribution via hooks (#636, #654).

Installing

curl -fsSL https://raw.githubusercontent.com/rossoctl/moca/main/scripts/install-mocactl.sh | sh

Installs the latest release (this one). The mocactl-edge prerelease tracks every push to main.

Full Changelog: v0.8.0...v0.9.0