Skip to content

v0.6.8: SSO, roles, and the caller in every audit record

Choose a tag to compare

@sumansaurabh sumansaurabh released this 19 Oct 22:19
ca43948

Features in v0.6.8

Named callers, company SSO, roles, and the caller in every audit record. This closes the three questions a security review asks: can each person sign in with their company account, can access be limited by role, and is every action tied to a named person. It answers Discussions #646, #647 and #649 as one feature.

Identity is off by default. With SB_IDENTITY_ENABLED unset, a server behaves exactly as before, except audit records now name caller: operator or caller: system. The operator token (PAT) is unchanged and stays the break-glass and node-to-node credential. Single-node and local Docker installs need nothing new.

Highlights

  • Company SSO, with no login server. People and CI sign in with your identity provider over OIDC; each node verifies the provider's signed token itself, so there is no session store and no new service to run. aerolvm login --sso, the dashboard, GitHub Actions and Kubernetes workload tokens all use it. Verified locally against Keycloak, with setup docs for Authentik and Zitadel; Okta, Entra ID and Google follow the same OIDC path.
  • Four roles, scoped to a team or the fleet. viewer, runner, auditor and admin. Every route declares the permission it needs, and a team token sees only its own sandboxes.
  • Scoped API tokens for services and CI. avm_… tokens are hashed, expiring and revocable within about 15 seconds across a cluster. Mint them with aerolvm token create or POST /v1/tokens.
  • The caller in every audit record. A hash-chained caller field, plus a chain record for every create, delete, exec, file, port, snapshot and token call (kind api). A forwarded request is attributed on the owner node, with the edge node recorded as via.
  • Enforced SSO. SB_PAT_SCOPE=host confines the shared operator token to the host and cluster peers, so remote people must use SSO or a scoped token.

People and credentials

  • SSO through OIDC, the Kubernetes way: the identity provider's signed token is checked on the receiving node and again on the owner node, with no trusted identity header. Issuers and role bindings live in SB_IDENTITY_FILE (strict YAML, reviewable, GitOps-friendly, reloaded on SIGHUP).
  • aerolvm login --sso (browser) and --device; aerolvm whoami shows the bound principal, role and team.
  • Google dashboard sign-in uses Google Identity Services, with no secret on the server.
  • avm_ tokens: SQLite on one node, Raft in a cluster. Default maximum lifetime 365 days (SB_TOKEN_MAX_TTL; 90 days in enterprise mode). A worker whose token mirror cannot sync for 60 seconds refuses avm_ tokens with 503, while the PAT, OIDC and metrics keep working.
  • The CLI warns before a token expires, and a 403 names the role that would allow the call.

Roles and teams

  • viewer, runner, auditor, admin; the X-AerolVM-Team header selects a team, and auditor and admin are fleet-wide.
  • aerolvm access review produces SOC 2 access-review evidence from an S3 audit export.
  • A Prometheus scrape needs only a viewer token (metrics.read), not an admin credential.

Audit

  • Every record gains a hash-chained caller and request; new record kinds api, auth_denied and identity_config.
  • SB_AUDIT_API_RECORDS controls which calls are recorded (mutations by default); SB_AUDIT_EXEC_COMMAND=full also records argv (never env); SB_AUDIT_API_DURABLE fsyncs token and delete records (off by default, on in enterprise).

Remote MCP OAuth

  • Remote /mcp signs in with the company SSO (RFC 9728): the 401 names the resource metadata, a client discovers the issuer and gets an MCP-audience token, and the inner tool calls act only as that caller. The claude.ai connector is supported; ChatGPT is not claimed until a live check passes.

Security

  • WASM module references and catalogue delete are now gated on caller scope (#537, #777). A scoped tenant cannot resolve a module from a raw host path (an absolute path or file://) or delete a shared standard module; the reserved keywords, oci:// refs and a tenant's own catalogue ids are unaffected. This was not reachable before this release, because scoped tenant tokens did not exist. Verified live on the single-node-wasm scenario.

Upgrade notes

  • Nothing changes unless you set SB_IDENTITY_ENABLED=true. The PAT is unchanged; audit records simply gain caller: operator or caller: system.
  • Rollback floor: do not roll back past v0.6.8 once a node has written a caller record. An older binary fails strict audit-boot verification on that log. Recovery is to stay on v0.6.8 or boot once with SB_SECRET_AUDIT_BOOT_VERIFY=warn. Upgrade the aerolvm CLI first, because an older aerolvm audit verify fails the same way.
  • Rolling upgrades are safe. In a cluster the new audit fields and record kinds are written only once every member runs this release (the gossip fv gate); until then records are written as before.
  • Enterprise mode now requires SB_IDENTITY_ENABLED=true and SB_PAT_SCOPE=host.
  • SB_PAT_SCOPE=host moves remote PAT users to SSO or a scoped token. The dashboard, remote /mcp, remote SDK scripts and the Prometheus scrape then need a named credential; set an optional metrics_token in config/secrets.yml for the scrape (leaving it unset keeps the PAT).
  • Re-run install.sh to pick up the PROXY-protocol wrapper on the L4 fallback. A binary-only upgrade leaves it off, so nothing breaks.

What's Changed

  • docs(changelog): sync v0.6.7 by @sumansaurabh in #715
  • fix(sdk): bump rustls to 0.23.46 past published advisories by @sumansaurabh in #717
  • docs(plans): record the open audit witness outcome by @sumansaurabh in #718
  • fix(itest): refuse a run with no leased test domain; refuse an empty build id by @sumansaurabh in #719
  • fix(runloop): answer from the in-flight create until its state lands by @sumansaurabh in #720
  • fix(mcp): scope remote MCP tools to the caller, never the operator PAT by @sumansaurabh in #721
  • fix(mounts): refuse raw host-side mounts from owner-scoped callers by @sumansaurabh in #722
  • fix(custom-domains): verify DNS TXT on create for owner-scoped callers by @sumansaurabh in #723
  • fix(wasm): give the WASM module catalogue an owner model by @sumansaurabh in #724
  • fix(xtenant): close four cross-tenant gaps (bundles, imported refs, toolbox) by @sumansaurabh in #725
  • fix(custom-domains): bind the DNS TXT proof to the owning tenant by @sumansaurabh in #726
  • fix(images): re-authorize cached private images for owner-scoped callers by @sumansaurabh in #727
  • fix(snapshots): scope create-time name resolution to the owner (#7) + owner-scoped local tag by @sumansaurabh in #728
  • fix(cluster): key the snapshot home-index by owner to stop cross-tenant hijack by @sumansaurabh in #729
  • fix(cluster): don't let snapshot/sandbox routing leak another tenant's id by @sumansaurabh in #730
  • fix(snapshots): per-owner snapshot namespace — rebuild identity to (owner, name) (#13) by @sumansaurabh in #731
  • test(daemon): add a test-only static identity validator for cross-tenant itest by @sumansaurabh in #732
  • test(integration): snapshot-namespace migration release gate (UC-58d + warm-upgrade runbook) by @sumansaurabh in #733
  • test(wasm): hold in-flight guest entry so the dedupe test survives -race by @sumansaurabh in #735
  • test(integration): complete the snapshot-namespace gate — daemon-kill failover + runbook (live-green) by @sumansaurabh in #736
  • test(integration): automate the warm-upgrade gate (run.sh --upgrade-from ) by @sumansaurabh in #737
  • docs(plans): identity and access — SSO, roles, caller in audit records by @sumansaurabh in #734
  • fix(wasm): per-owner WASM module ids — key the catalogue by (owner, id) (T0b) by @sumansaurabh in #738
  • feat(auth): principal on every request and one authenticate() (identity T1) by @sumansaurabh in #739
  • feat(auth): permissions, built-in roles and d.Route on every route (identity T2) by @sumansaurabh in #741
  • feat(audit): name the caller in audit records; StampForward on every forward path (identity T4) by @sumansaurabh in #740
  • feat(auth): scoped API tokens (avm_), the worker token mirror and aerolvm token (identity T3) by @sumansaurabh in #744
  • feat(audit): one api record per call, flood control, SSH records and audit search (identity T5) by @sumansaurabh in #743
  • feat(identity): offline OIDC verifier, identity file and bindings (identity T6) by @sumansaurabh in #742
  • feat(dashboard): SSO sign-in, an admin-only console and a CSP on /ui (identity T8) by @sumansaurabh in #745
  • feat(identity): confine the operator token, PROXY protocol, identity alerts and runbook (T10) by @sumansaurabh in #750
  • feat(sdk): whoami, API tokens, SB_API_TOKEN and SB_TEAM in all five SDKs (identity T9) by @sumansaurabh in #746
  • feat(cli): SSO login with renewal, whoami and auth token (identity T7) by @sumansaurabh in #748
  • feat(mcp): OAuth for remote MCP with the Access hand-off (identity T13) by @sumansaurabh in #749
  • feat(aerolvm): access review joins the token list with the verified export (T5b) by @sumansaurabh in #747
  • docs(identity): access control, caller-aware audit evidence and named-credential docs (T11) by @sumansaurabh in #751
  • test(integration): identity and access live use cases UC-268..UC-294 (T12) by @sumansaurabh in #752
  • fix(identity): Keycloak live-check fixes — device-flow PKCE, keep a valid sign-in, Keycloak docs by @sumansaurabh in #753
  • fix(identity): live-run follow-ups — harness races, dashboard metrics, key refetch on reload, create reservation, verifier skip by @sumansaurabh in #754
  • fix(health): report the SSH gateway only on nodes that run it by @sumansaurabh in #755
  • test(cluster): keep fake raft member ports out of the ephemeral range by @sumansaurabh in #756
  • fix(cli): a Ctrl-C during logs --follow always detaches cleanly by @sumansaurabh in #757
  • test: fix the identity stack's timing-sensitive tests and three older CI flakes by @sumansaurabh in #758
  • build(deps-dev): bump @types/node from 26.6.4 to 26.6.5 in /sdk/typescript by @dependabot[bot] in #759
  • build(deps): bump ossf/scorecard-action from 2.4.4 to 2.5.0 by @dependabot[bot] in #760
  • build(deps): bump astro from 7.3.5 to 7.4.0 in /docs by @dependabot[bot] in #761
  • build(deps): bump tokio from 1.53.2 to 1.53.3 in /sdk/rust by @dependabot[bot] in #762
  • build(deps): bump github.com/containerd/containerd/v2 from 2.4.1 to 2.4.2 by @dependabot[bot] in #772
  • build(deps-dev): bump prettier-plugin-astro from 1.1.0 to 1.1.1 in /docs by @dependabot[bot] in #766
  • build(deps-dev): bump wrangler from 4.149.0 to 4.151.0 in /docs by @dependabot[bot] in #765
  • build(deps): bump actions/setup-java from 6.0.1 to 6.1.0 by @dependabot[bot] in #764
  • build(deps): bump serde_json from 1.0.151 to 1.0.154 in /sdk/rust by @dependabot[bot] in #763
  • build(deps-dev): bump prettier from 3.9.9 to 3.9.10 in /docs by @dependabot[bot] in #767
  • build(deps): bump github.com/aws/aws-sdk-go-v2/credentials from 1.20.8 to 1.20.9 by @dependabot[bot] in #773
  • build(deps): bump @astrojs/markdown-satteri from 0.4.3 to 0.4.4 in /docs by @dependabot[bot] in #768
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/kms from 1.55.4 to 1.61.4 by @dependabot[bot] in #769
  • build(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace from 1.46.0 to 1.47.0 by @dependabot[bot] in #770
  • test: fix five older flaky tests that turn main's CI red by @sumansaurabh in #774
  • build(deps): bump golang.org/x/oauth2 from 0.36.0 to 0.37.0 by @dependabot[bot] in #771
  • docs(blog): SSO with no login server; rename Access control to SSO by @sumansaurabh in #775
  • fix(docs): use the real site URL for canonical links and the sitemap by @sumansaurabh in #776
  • fix(wasm): gate host-path module refs and byte reclaim on caller scope (#537) by @sumansaurabh in #777
  • test(wasm): land #537 e2e + live UC-295/296 coverage (follow-up to #777) by @sumansaurabh in #778
  • test(integration): register wasm_tenant_gating_test.go in the secrets manifest by @sumansaurabh in #779

Full Changelog: v0.6.7...v0.6.8