Skip to content

Rustybin 0.4.0

Choose a tag to compare

@oliwynn oliwynn released this 03 Nov 13:11
· 105 commits to main since this release

Rustybin 0.4.0 makes the test bench of 0.3 run without anyone at the console. Saved tests keep a history and run on a schedule, with a webhook when one fails. There are four more gateway scenarios, checkpoints that travel in the configuration repository, and a compare view when an edit is refused because someone else changed the mock first. Each capability is on the API, the console, the CLI, the management MCP server and, where it is configuration, rustybin.yaml.

New:

  • A history of saved-test runs. Every run (console, CLI, API, MCP, schedule) is kept with its trigger, who started it (never a credential), each test's result and what changed since the previous run. The last 200 runs for 30 days, readable again and downloadable as JUnit. Variable values are never stored. See saved tests.
  • Saved tests on a schedule. Every 5 minutes to 24 hours, or at a time of day (UTC). A failing run posts a JSON notice to a webhook, and a recovery one more when asked. The webhook goes out under the new egress purpose notify, which allows no host until you add one. See schedules.
  • Four gateway scenarios: circuit_breaker, request_size_limit, cors and header_transformation. Each scenario now lists its test parameters with their bounds; the console shows a field for each and the CLI a flag. See gateway scenarios.
  • Checkpoints in the configuration repository. A commit can include named checkpoints next to rustybin.yaml; another instance lists and restores them after a pull. The automatic mode never writes one, and a checkpoint read from git is size-checked, validated and compiled like any untrusted document. See checkpoints.
  • A compare view for a stale edit. When the console's edit is refused because the mock changed, a dialog shows what the other change did beside your edit, section by section: keep yours on the new revision, or take theirs. The new GET /_rustybin/mocks/{name}/revisions/{revision} answers any kept revision. See comparing a refused edit.

Behaviour changes to check before you upgrade:

  • A saved test can no longer be named runs or schedules; an existing one with either name is skipped with a warning.
  • POST /_rustybin/tests/run answers more fields (run_id, change and others), and every value given as a variable is replaced by its {{NAME}} in the answer.
  • A scenario check's body is the gateway URL plus a map of parameters; an unknown or out-of-range parameter is a 400.
  • rustybin.yaml has a test_schedules: section.
  • The management MCP server has 125 tools for an admin. Clients that read only the first tools/list page should use ?page_size=200 (see tool limits).

Access control (users, roles, single sign-on, projects, open and closed portal APIs, an audit log) is next, as 0.5.0. The full list is in the changelog.

Install

Release binaries for Linux and macOS (x86_64 and arm64) are attached below, each with a .sha256. Or cargo install --locked --git https://github.com/coldbathcode/rustybin --tag v0.4.0.

The image

ghcr.io/coldbathcode/rustybin:0.4.0
ghcr.io/coldbathcode/rustybin@sha256:db4d1493d6121556d456463a5027530cc91e1a30c351427d8e182ecefeb1ea5e

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