Skip to content

v0.6.7: Enterprise mode with the free download

Choose a tag to compare

@sumansaurabh sumansaurabh released this 16 Oct 10:58
88120fd

Features in v0.6.7

Highlights

  • Enterprise mode works with the free download. Set SB_ENTERPRISE_MODE=true and point the new SB_AUDIT_WITNESS_* settings at an S3 bucket with Object Lock. Each server then keeps the fingerprint of its audit log in that bucket, where the server cannot change or delete it. A server refuses to start on a bucket that would not protect what it stores, or when its local log disagrees with the bucket.
  • aerolvm audit verify. An auditor checks a server's audit history from any machine, against the bucket and the exported audit records. The result is PASS, FAIL or INCOMPLETE (exit 0, 1 or 3) for a time window the auditor chooses with --since.
  • Terraform and Ansible set it up. audit_witness_enabled = true creates the locked bucket and a node role that can write fingerprints but cannot delete them. Ansible and install.sh carry the settings.
  • Open shells and exec streams survive route changes. A sandbox exposing a port no longer disconnects every open aerolvm shell, exec stream and session attach on that node.
  • Terraform cluster deploys on the default settings work again. The release now ships cluster-sign-node.sh, which every seed node downloads.

Audit witness (#710, plan #655)

  • Fingerprints are stored as locked object versions under <prefix>/node=<SB_NODE_ID>/day=<UTC date>/head.json.
  • At startup the server checks, within 30 seconds, that the bucket has versioning and an Object Lock default rule at least as long as SB_SECRET_AUDIT_RETENTION_DAYS, that the node can list it, and that a test delete fails both with and without the governance bypass header. Each refusal names what to fix; the runbook has an entry for every one.
  • The server reads the bucket before every write. A fingerprint it did not write increments aerolvm_secret_audit_witness_foreign_head_total and fires the SandboxdAuditWitnessForeignHead alert. SandboxdAuditWitnessShipFailing fires when writes keep failing. An unchanged fingerprint is written again once a day, so an idle server still shows up every day.
  • If the local audit log is edited or deleted after its fingerprint was stored, the server refuses to start. For a deleted log, the refusal says to rebuild the node under a new SB_NODE_ID.
  • What it does not prove: the newest 30 seconds, a server compromised from its first boot, or writes by another node that shares the node role (those are detected and alerted on, not prevented). The verifier, not the boot check, catches a server that rewrote its history and stored a matching new fingerprint.

Fixes

  • A cluster create naming a platform volume for the first time no longer fails with "sandbox not found", and a volume in use can no longer be deleted (#711).
  • Caddy keeps an open WebSocket for up to 10 minutes after a configuration reload instead of closing it at once with code 1001 (#713). Long sessions still close 10 minutes after a reload.
  • cluster-sign-node.sh is a release asset (#714). Releases v0.6.0 to v0.6.6 did not ship it, so the seed of a Terraform deploy on the default settings failed to download it.

Upgrade notes

  • Nothing changes unless you set SB_AUDIT_WITNESS_BACKEND. With it unset, no S3 request is made and boot is unchanged.
  • A witness needs a unique SB_NODE_ID on every node, single servers included. The default standalone is refused. Rebuilding a node means a new id, because Object Lock keeps the old fingerprints.
  • Use a dedicated bucket with Object Lock enabled at creation, in COMPLIANCE mode, with a default retention at least as long as SB_SECRET_AUDIT_RETENTION_DAYS. Enterprise mode needs an https endpoint.
  • Keep audit exports for at least as long as the window you verify.
  • Re-run install.sh to pick up the Caddy change. Routes written by an older sandboxd get the 10-minute delay when sandboxd next writes them.

What's Changed

  • docs: sync the changelog to v0.6.6 by @sumansaurabh in #701
  • ci(release): mark a release latest only after its files are attached by @sumansaurabh in #702
  • docs: correct the E2B and Daytona comparison claims by @sumansaurabh in #703
  • docs(plans): engineering review of the open audit witness plan by @sumansaurabh in #655
  • feat(audit): witness settings, daemon wiring and ship-loop signals (2/7) by @sumansaurabh in #704
  • feat(ops): Terraform, Ansible and runbook for the S3 audit witness (3/7) by @sumansaurabh in #705
  • test(itest): enterprise scenarios on the S3 witness; drop the test-only witness (4/7) by @sumansaurabh in #706
  • feat(aerolvm): audit verify, the offline witness verifier (5/7) by @sumansaurabh in #707
  • fix(clustercreate): create first-use platform volumes on the reserved path by @sumansaurabh in #711
  • fix(caddy): keep WebSockets open across config reloads (stream_close_delay) by @sumansaurabh in #713
  • feat(audit): open audit witness, Phases 1–5 (S3 Object Lock witness, ops, itest, audit verify) by @sumansaurabh in #710
  • docs(enterprise): enterprise mode with the S3 audit witness (6/7) by @sumansaurabh in #708
  • docs(blog): catching a rewritten audit log (7/7) by @sumansaurabh in #709
  • fix(release): ship cluster-sign-node.sh; --version fills what a release lacks by @sumansaurabh in #714

Full Changelog: v0.6.6...v0.6.7