Skip to content

Rustybin 0.3.0: reliability and testing workflows

Choose a tag to compare

@oliwynn oliwynn released this 02 Nov 21:36
· 139 commits to main since this release

Rustybin 0.3.0 turns an instance into a test bench for a gateway, and fixes three correctness problems the 0.2.2 review queued. Every new capability works from the API, the console, the rustybin CLI, the management MCP server and rustybin.yaml.

New:

  • Diagnostics. rustybin doctor (exit 1 when a check fails), GET /_rustybin/diagnostics and the console's Management, Diagnostics tab. Each check says what it saw and how to fix it: the state directory, the secrets key, the settings document, load errors, listeners, refused outbound calls, source control, the default password, the load engine, AI assist.
  • Gateway scenarios. Retries, rate limiting, credential injection, timeouts and caching. A run prepares the upstream, gives the steps to configure on your gateway, sends test traffic through it and compares what the client got with what reached the upstream. Ending a run removes only what it created.
  • Saved tests. Save any captured request as a test (Live traffic, Save as test) or write one, with assertions on the status, a header, the body, a JSON value or the time. Run them against the instance or through a gateway, as JSON or JUnit, or export them as one Hurl file for CI. Credentials become {{variables}}; values are never saved.
  • Checkpoints. Save the instance's mocks (with their stateful data) and the health toggle, and restore them before the next demo run, with a dry run. Visitors' mocks, settings and secrets are never touched.
  • Edit conflicts. A mock edit can name the revision it was made from (If-Match or expected_revision; the mock's ETag). A stale edit answers 409 with what changed and saves nothing. The console, the CLI and agents always send one; the mocks.require_revision setting makes it mandatory (428).
  • The AI job fields offer the provider's models to pick from.

Behaviour changes to check before you upgrade:

  • An apply never deletes a mock its document names but cannot load. A spec that fails to read, parse or compile is reported and the mock keeps its last good revision (it was pruned before).
  • A dry run validates like the apply, so a preview that passes no longer fails when applied.
  • Specs pulled from git are read whole. They were cut at 8 KiB; a spec over the instance's spec limit now fails the pull with a message.
  • Concurrent edits of one mock are no longer lost. An edit without a revision that raced another is made again on top of it.
  • The management MCP server's tools/list has more than one page (100 tools a page). Clients must follow nextCursor; MCP clients do. New tools come after the existing ones.
  • rustybin.yaml exports have a tests: section (empty when there are no saved tests).
  • Two new outbound purposes, scenario and replay, with no default: add your gateway's host to RUSTYBIN_EGRESS_ALLOW before a scenario check or a saved test that goes through it.

The full list, step by step, is in the changelog.

The image

ghcr.io/coldbathcode/rustybin:0.3.0
ghcr.io/coldbathcode/rustybin@sha256:471f176542e10e4012b7f05f972985704f22e927bef287ceec97136bb2c5ac6f

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:471f176542e10e4012b7f05f972985704f22e927bef287ceec97136bb2c5ac6f \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp '^https://github.com/coldbathcode/rustybin/'