Skip to content

Rustybin 0.3.1

Choose a tag to compare

@oliwynn oliwynn released this 03 Nov 00:51
· 122 commits to main since this release

Rustybin 0.3.1 fixes all 89 findings of a full review of 0.3.0 by eight reviewers. It covers hostile input, credentials and third-party content, the console, the control plane, configuration and git, mocks and workflows, the harness, and the public demo modules. The threat model says what each kind of caller can and cannot do now.

Behaviour changes to check before you upgrade:

  • Sign in again after the upgrade. The console and OAuth signing key is now a random per-instance key in <state>/control-oauth.key unless RUSTYBIN_CONTROL_OAUTH_KEY is set. It is never derived from the admin token, so sign-in and OAuth tokens issued before the upgrade stop working once, agents' included. Replicas that shared sessions through a shared admin token need RUSTYBIN_CONTROL_OAUTH_KEY or a shared state directory. An admin token under 24 characters warns at startup.
  • Control-plane CORS. /_rustybin/*, including the sign-in and OAuth endpoints, answers cross-origin requests only from origins listed in RUSTYBIN_CORS_ORIGINS. * now covers the data plane only.
  • The sign-in changes only with the password. In password mode, console.user and the password hash change only with the current password (PUT /_rustybin/password, or current_password in PATCH /_rustybin/settings) or the admin token. The management MCP and rustybin.yaml can no longer change them.
  • Saved tests are admin-only to read. A secret-looking header or query value must be a {{variable}}. One run at a time (409). run_tests asks before replaying a request that changes state.
  • A prune deletes only the instance's own mocks. Never a visitor's, an API key's or a running gateway scenario's, and never one its document names but could not read.
  • A document pulled from git cannot repoint outbound requests. It cannot change the egress settings, assist.provider, assist.base_url or proxy.client_ip_header (a different value is reported and kept as it is). It also cannot point a saved test at a new gateway, or send a stored harness secret to new targets.
  • Compiles count for every caller without admin rights (30 a minute per visit, key or address). Config applies run on the compile pool (503 with Retry-After when it stays busy).
  • Deploys can name their revision. Use If-Match or expected_revision (409 when the draft moved on). Mock revision numbers now start from the clock, so they are large numbers.
  • Agents get third-party text under untrusted_* fields. This covers traffic rows, diagnostics messages and saved check reports. Without admin rights, the MCP relay, check runs and mcp_call send only read-only methods to servers on other hosts.
  • Mock statuses are 200 to 599.
  • Public mode refuses Set-Cookie through /response-headers and cookie _domain. It also caps bins at 20 per address and rate-limits client registrations, registry token mints and portal renders.
  • The CLI follows no redirects. It sends RUSTYBIN_TOKEN and RUSTYBIN_ADMIN_TOKEN only to RUSTYBIN_URL or a loopback --url.

Also hardened: listener timeouts and a connection cap, budgets for schemas, $ref inlining, regexes, captures, streams and A2A tasks, locked and off-runtime persistence, harness leadership and the kill switch. In the console, the inspector's auth form, stale edits, OAuth popups and sign-out. The full list is in the changelog.

The image

ghcr.io/coldbathcode/rustybin:0.3.1
ghcr.io/coldbathcode/rustybin@sha256:079a0a8a6808db5cdc72e43c59c5f3d7bae7ebe1ae26823d2036209427bd6601

The image is multi-arch (linux/amd64, linux/arm64) and signed with cosign (keyless, using the publishing workflow's GitHub identity). Verify it before you run or deploy it, and pin deployments to the digest:

cosign verify ghcr.io/coldbathcode/rustybin@sha256:079a0a8a6808db5cdc72e43c59c5f3d7bae7ebe1ae26823d2036209427bd6601 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp '^https://github.com/coldbathcode/rustybin/'