Add `DaytonaSandbox(secrets=)`, mounting Daytona secrets in a new sandbox

Merged
AD
18d ago
+148-5

Stack: #13587 E2B network → #13589 boxd secrets → #13590 Daytona secrets → #13591 OpenSandbox network_policy/credential_proxy → #13592 clai2 /sandbox. Each harness PR stands alone; clai2 uses the first two.

Why we make these changes

Part of #13593. An agent in a cloud sandbox needs credentials (a GitHub token for git push and gh) that its commands can use but not read, so a prompt injection cannot copy them out. Daytona secrets mount as a placeholder that Daytona's proxy swaps for the value on HTTPS requests to the secret's hosts. This PR passes that option through unchanged, under the SDK's own name, so users write what the provider documents.

New public surface

  • DaytonaSandbox(secrets=) and DaytonaSandboxBackend(secrets=): env var name to Daytona secret name, passed to AsyncDaytona.create.

User-visible behavior

Before: no way to give the sandbox's commands a credential they cannot read. After: the new docs section "Give commands a credential they cannot read" shows it for a GitHub token. Without the option, sandbox creation is unchanged.

Verification

  • tests/harness/daytona_sandbox/test_backend.py::test_secrets_pass_through
  • Not proven live: no Daytona account was available. The docs state only what Daytona's docs and SDK docstrings say (daytona/_async/secret.py, daytona/_async/sandbox.py update_secrets).

What changes for existing users

Nothing.

Checklist

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
  • PR title is fit for the release changelog.