Skip to content

Releases

Rustybin 0.7.0: new features for gateway demos

Choose a tag to compare

@oliwynn oliwynn released this 13 Nov 03:52

Everything built since 0.6.0: new features for gateway demos, and the last of the roadmap's candidates with their follow-ups.

Upgrading from 0.6

Nothing to do for most instances: what is new is off until you turn it on or name it. What an operator or a script may notice:

  • A change of reach. A signed-in user without secrets.write now gets 200 from GET /_rustybin/secret-requests (the requests of their own agents, possibly none) and may read and decline those; it was 403. Another user's request is 404, fulfilling is unchanged, and callers who are not users see no change. A script that read the 403 as "may not read requests" reads /_rustybin/session instead.
  • A document pulled from the repository no longer changes a git.* setting (a fix; a repository that relied on it sets them on the instance instead).
  • Settings under oauth. need settings.security.
  • A harness scenario with servers.chain needs every server node on 0.7.0. A chain hop with http: h3 needs the -http3 image on every server node.
  • Verified pulls are off until git.verify is turned on, and turning it on trusts the head of that moment: connect the repository first. Teams that squash or rebase pull requests at the git host switch to merge commits, or push signed commits, before turning it on.
  • An instance whose repository is on github.com or gitlab.com with a token as its authentication can open a pull request with that token once a caller asks with open: true; nothing calls a host before that.
  • The default image has no HTTP/3; the image tagged 0.7.0-http3 has.

New

For gateway demos:

  • AI gateway scenarios: token limits, model fallback, semantic caching, prompt and response guards and load balancing, each proven against the instance's AI mock.
  • MCP security: attack servers, six MCP gateway scenarios against them and three inspector checks.
  • A mock recorded from a real API: a recording proxy, a spec inferred from the traffic, the answers as examples.
  • Contract drift: a mock checked against the real API it imitates, as JSON or JUnit.
  • Demo storyboards: a demo as steps with a talk track, an action and a reset, presented from the console and rehearsed from the command line.
  • Customer demo packs: a customer's demo as one document, applied into a project of its own and torn down as a unit.
  • Multi-step tests and Arazzo workflows: a test of several steps with outputs passed on, imported from and exported to Arazzo 1.0.
  • Realtime and batch AI APIs: the OpenAI-shaped realtime WebSocket protocol, and batch jobs in the OpenAI and Anthropic shapes on a compressed clock.
  • Event mocks from AsyncAPI: an AsyncAPI 2.x or 3.0 document as a mock whose channels are served over WebSocket, server-sent events and webhooks, with valid messages published and what clients publish validated.

Source control:

  • A diverged branch resolved by a person, branches per environment and signed commits.
  • Verified pulls: with git.verify on, the instance takes the repository's side only when an allowed signer signed every commit since the last verified head (SSH signatures, git 2.38 or later). A merge commit passes unsigned only as the clean merge of two verified parents.
  • A pull request opened by the git host: resolve with pull_request takes open: true for GitHub and GitLab and their self-hosted variants. The instance never merges one. The two hosts' APIs were tested against stand-ins, not the real hosts.

Agents and the MCP inspector:

  • A secret at an agent's request: an agent asks for a secret to be set, a person fulfils or declines (with an optional note), and the value never passes through a tool. Off by default.
  • An agent's sign-in from the command line: rustybin login --agent.
  • Client ID metadata documents: the inspector signs in to an MCP server with its own client document, with no registration call, and a new check reports whether a server takes it. The control plane's own OAuth sign-in accepts a client's document too when oauth.client_metadata_documents is on (off by default, no default allowlist).

Load test mode:

  • Import from other tools: Postman collections and Artillery scripts, with the variables a collection's environment held given by the caller.
  • HTTP/3 targets and server-to-server chains, a chain hop over HTTP/3 included, and a Prometheus series for a chain's onward calls.
  • An image with HTTP/3: a second image carries the suffix -http3 on every tag. The default image has no QUIC stack.

The full list, with what changed and what was fixed, 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.7.0.

The images

ghcr.io/coldbathcode/rustybin:0.7.0
ghcr.io/coldbathcode/rustybin@sha256:84663e342a16caf8a9fea08a9288cffc14673a708db6b33af3b3ed2da35f229b

ghcr.io/coldbathcode/rustybin:0.7.0-http3
ghcr.io/coldbathcode/rustybin@sha256:ccd4d92597c4a23baec6833347e54ae97a41ac774bc9bea9bd5ff298f6a0b0b1

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

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

The second image is the same build with HTTP/3 for load tests of an HTTP/3 gateway; verify it the same way with its own digest.

Rustybin 0.6.0: more from an instance

Choose a tag to compare

@oliwynn oliwynn released this 07 Nov 15:52

Nothing to do when upgrading: everything new is off until you turn it on or use it.

New:

  • A spec from a URL. spec_url on a create, --spec-url on the CLI and Or fetch it in the new mock dialog. It needs mocks.write and a host named in RUSTYBIN_EGRESS_ALLOW (purpose spec_fetch, no default), so never a visitor's. See A spec from a URL.
  • A push webhook for source control. POST /_rustybin/git/webhook pulls at once, signed, and answers 404 until git.webhook_secret is set. See A webhook instead of polling.
  • OAuth on a mock's own MCP server. mcp.oauth answers 401 with protected resource metadata, to try a client's sign-in. See Security.
  • Stateful visitor mocks, behind RUSTYBIN_MOCKS_SELF_SERVICE_STATEFUL, at most 50 items and 64 KiB per mock. Off by default.
  • For the harness: a leader that steps aside before maintenance with the run still on, a recording as a scenario's source from a HAR file or saved captures, without its credentials, and a finished run's metrics sent to an OpenTelemetry collector.
  • rustybin egress check <url> and GET /_rustybin/egress/check: what the outbound policy would say to a URL, without calling it. Also Check a URL on the Network tab.
  • Suggestions for the style of generated examples, and Generate more on an operation.

Changed:

  • GET /_rustybin/mocks/export writes a version 2 document with only the mocks section. It applies as before.

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.6.0.

The image

ghcr.io/coldbathcode/rustybin:0.6.0
ghcr.io/coldbathcode/rustybin@sha256:492000348f22ebb73cd6197de2a07ea6bfc9a363b606b33dcf25b535e29cceb3

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

Rustybin 0.5.2: an operator's sign-in next to anonymous visitors

Choose a tag to compare

@oliwynn oliwynn released this 07 Nov 13:33

Check this before upgrading: an instance with RUSTYBIN_MOCKS_SELF_SERVICE=true, public mode and password control auth used to ignore that variable and stay locked. It now takes visitors. Remove the variable to keep the instance locked. token and jwt still ignore it.

New:

  • An operator's sign-in next to anonymous visitors. Self-service now works with the password sign-in: visitors create and call their own mocks without an account, and only the operator signs in. A caller without a credential reaches exactly what it reaches on an open control plane, and a test walks every control route to keep it so. See An operator who signs in.
  • rustybin password hash makes the argon2id hash for RUSTYBIN_CONSOLE_PASSWORD_HASH on your own machine.

Fixed:

  • A harness cluster's failover could pass over the standby. Nodes took their turn to stand for election in slots narrower than the gap between their heartbeats, so a later node could stand first and RUSTYBIN_HARNESS_LEADER=prefer meant little. The first in line stands as before, after the election timeout.

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.5.2.

The image

ghcr.io/coldbathcode/rustybin:0.5.2
ghcr.io/coldbathcode/rustybin@sha256:391f066e845ee0eb9030cc705b19fe2a068077533c0a1a88afbb0abc262ad2dd

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

Rustybin 0.5.1: safe for a public demo

Choose a tag to compare

@oliwynn oliwynn released this 06 Nov 22:36

Upgrade any instance in public mode. Rustybin 0.5.1 has no new features: it fixes what running the public demo's configuration on 0.5.0 found. The first two issues below are open on 0.5.0 and earlier. Behind a proxy, also read the third.

Security:

  • Captured requests were readable by other callers. On a public instance, or to an API key in shared mode, any caller could read the captured requests of an instance mock (the built-in petstore, for example), with the Authorization and Cookie headers and the query string the sender used. A caller without a credential now reads only its own session's calls, and a key only its own. The operator, signed-in users and a visitor's own mocks are unchanged. An operator of a public instance on 0.5.0 or earlier should treat credentials sent to its instance mocks as seen.
  • One anonymous request could take a self-service instance down. A 160 KiB spec whose operations all name one wide schema took about 645 MiB; two such specs, or about 100 large ordinary ones, ended a 512 MiB container. A visitor's tools now expand at most 32,000 schema nodes per revision, a deploy report keeps 256 KiB of generated bodies, and all visitor mocks share a memory budget, RUSTYBIN_MOCKS_SELF_SERVICE_MAX_MB (192 MiB by default): past it a new mock or an edit answers 503. The same spec now costs about 18 MiB.
  • A client could name its own address behind a proxy. A public instance with RUSTYBIN_TRUST_FORWARD and no RUSTYBIN_TRUST_FORWARD_HEADER believes every forwarding header, so a client could step around the per-address limits. It now warns at startup and in GET /_rustybin/diagnostics (client_address). Nothing changes until you name your proxy's header: see Behind a proxy.

Changed on a public instance:

  • GET /_rustybin/metrics needs settings.read. Set RUSTYBIN_ADMIN_TOKEN and scrape with it, or nobody reads the metrics.
  • A visitor's mcp-checks runs are answered but not kept, and the saved runs are not shown to visitors. They were one shared list, so visitors saw each other's targets and could push them out.

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.5.1.

The image

ghcr.io/coldbathcode/rustybin:0.5.1
ghcr.io/coldbathcode/rustybin@sha256:25026bdff9bd84fa146187c410962b722e04bf9a422ea78781dfe95d4d9bb7b6

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

Rustybin 0.5.0

Choose a tag to compare

@oliwynn oliwynn released this 03 Nov 20:34

Rustybin 0.5.0 lets several people share one instance, each with the roles they need. Each capability is on the API, the console, the CLI, the management MCP server and, where it is configuration, rustybin.yaml. Before the release, a security review of the whole access-control build found 33 issues; each was reproduced with a test and fixed.

New:

  • Users, roles and permissions. 38 named permissions, built-in roles (viewer, tester, editor, admin, portal_reader) and custom roles. Every route and every management tool checks a permission, and a refusal names the one that is missing. See users and invitations.
  • Invitations. People join through a one-time link and set their own password; no admin, tool or document ever handles it. Everyone has My account (password, name, email, own sessions).
  • Single sign-on with any OpenID Connect provider. The provider's groups decide the roles; people are created at their first sign-in; the password sign-in can be turned off once single sign-on is set up. rustybin login --sso for the CLI. See single sign-on.
  • Projects. Mocks, saved tests, checkpoints and portal items can belong to a project, and people can hold roles in a project as well as on the whole instance, so teams share one instance without seeing each other's work. See projects.
  • AI agents act for a user. An agent holds its user's permissions at every call, never more; disabling a user revokes their agents; users manage their own agents.
  • Open and closed APIs on the dev portal. A closed API's docs stay readable signed out, but Try it, the credentials and the collections unlock only after a portal sign-in. A closed mock must have security of its own, so calls without its credentials are refused. The portal_reader role opens the portal and nothing in the console. See open and closed items.
  • An audit log of every change, sign-in and refusal: who, what, when, from where. Values, bodies, passwords and tokens are never recorded. On every surface, with a live tail. See the audit log.

Upgrading from 0.4 (nothing to do for most instances):

  • The console user becomes the first user, with the admin role, at the first start. 0.4 sign-in tokens keep working as that user until they expire.
  • The old control scopes keep their 0.4 reach. A refusal is now 403 with reason: permission_required and the permission, instead of insufficient_scope; the CLI exits 3.
  • One admin's password change ends that admin's sessions and agents only, no longer everyone's.
  • Every published portal item stays open. portal.auth=password now asks for a portal sign-in. A mock closed behind the default demo-key answers 403 closed_unsecured until it is secured again.
  • The git.* settings need git.write; an editor's export carries no users, roles or projects.
  • The management MCP server has 137 tools for an admin. Clients that read only the first tools/list page should use ?page_size=200.

The full list, with each step's behaviour changes, 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.5.0.

The image

ghcr.io/coldbathcode/rustybin:0.5.0
ghcr.io/coldbathcode/rustybin@sha256:70baf467a6be5faca3a85655719cb97045ffe610d0a4f63d12a697eef0470135

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

Rustybin 0.4.0

Choose a tag to compare

@oliwynn oliwynn released this 03 Nov 13:11

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/'

Rustybin 0.3.1

Choose a tag to compare

@oliwynn oliwynn released this 03 Nov 00:51

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/'

Rustybin 0.3.0: reliability and testing workflows

Choose a tag to compare

@oliwynn oliwynn released this 02 Nov 21:36

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/'

Rustybin 0.2.2: the hardening release

Choose a tag to compare

@oliwynn oliwynn released this 02 Nov 17:20

Rustybin 0.2.2 is the hardening release: no new features. A full code review of 0.2.1 looked at what a public instance exposes, and every finding is fixed, in ten steps. The threat model says what each kind of caller can and cannot do now.

Behaviour changes to check before you upgrade:

  • Sign-outs survive a restart. With RUSTYBIN_STATE_DIR the token generation and every revocation are kept in <state>/sessions.json. Without a state directory a restart now signs every token out, so console users and scripts sign in again.
  • Saved MCP connections are bound to their target. A connection's credentials go only to its own target (400 connection_target_mismatch), and using one that holds credentials needs admin rights (403 connection_needs_admin). The inspector no longer targets the management server (/_rustybin/mcp); the console still connects to it from the browser.
  • Agent limits follow the credential. A revocation or the operator's limits on one agent apply to every client name on the same token.
  • Name your proxy's header. With RUSTYBIN_TRUST_FORWARD, set RUSTYBIN_TRUST_FORWARD_HEADER (or the proxy.client_ip_header setting) to fly, forwarded, x-forwarded-for or x-real-ip. The default, any, keeps the old order, which a client can spoof behind a proxy that does not set every header.
  • Documents pulled from git are not expanded from the environment. A secret takes only ${VAR} naming its own variable, secret:stored or null; literal values are refused, and a mock's spec: file must be inside the repository. RUSTYBIN_CONFIG_FILE behaves as before.
  • Request bins answer inert content. HTML, scripts and SVG come back as text/plain, with no cookies, a sandbox CSP and nosniff.
  • On a public instance, the demo identity provider redirects demo clients only to loopback or its own host (otherwise a page with the link), and token exchange takes only its own RS256 tokens.
  • Outbound connections ignore HTTP_PROXY and the other system proxy variables. A *.domain allowlist entry no longer reaches private addresses unless a network entry covers them.
  • New limits. Spec compiles run four at a time (503 when busy, 30 a minute for a visitor), generated values are capped at 1 MiB, and gRPC messages are capped at RUSTYBIN_BODY_LIMIT. ai is now a reserved mock name.
  • CLI. mcp save-connection --secret takes name=- or name=@file, never the value on the command line.

Also in this release: an AI model per job with the provider's model list (GET, POST /_rustybin/assist/models), and dependency updates. cargo audit is clean apart from the documented rsa advisory. The full list, step by step, is in the changelog.

The image

ghcr.io/coldbathcode/rustybin:0.2.2
ghcr.io/coldbathcode/rustybin@sha256:1fe578b7f45b34f61e9e4bd3944abe7b399001a42ac6f5ae5f0cd1681dddc9ad

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

Rustybin 0.2.0: the AI-assisted mocking service

Choose a tag to compare

@oliwynn oliwynn released this 30 Oct 17:56

Rustybin 0.2.0 turns an instance into a mocking and testing service a team runs: set up by describing what you need, explored by the people who test against it, managed from the console, a CLI, an AI agent or a rustybin.yaml in git, and locked with a password on day one.

Changed default: the console and the control plane ask for a user name and password (rustybin / rustybin until changed; RUSTYBIN_CONSOLE_PASSWORD, or Management, Sign-in). Instances that relied on an open control plane set RUSTYBIN_CONTROL_AUTH=open. Everything else is additive; a 0.1 rustybin.yaml still loads.

What is new

  • Bring your own AI: Anthropic, OpenAI, Gemini or any OpenAI-compatible endpoint with your key; an assist bar in every console view; keys sealed at rest and never shown again.
  • Build mocks with AI: a spec from a description (to the OpenAPI version you pick), example payloads for every operation that lacks one with an alert when a spec has none, edits by instruction shown as a diff.
  • MCP inspector for any MCP server over every transport and auth mode (bearer, API key, basic, headers, OAuth 2.1), a relay for servers the browser cannot reach, fourteen checks as JSON or JUnit, saved connections.
  • Mock MCP registry in the registry API's shape with failure scenarios, and browsing of real registries.
  • Dev portal at /portal with only what was published: mock APIs with Try it and downloads, the mock MCP servers with connect snippets, the mock LLM, agents and tools.
  • AI agents: who talks to the instance over the management MCP server, with ceilings, tool allow and deny lists, revocation and a live feed.
  • The whole instance as code: export, diff and apply a version 2 rustybin.yaml (settings, secrets as references, mocks, registry, portal, agents, harness, health); source control with commit, push, pull, resolve, a deploy key and startup from the repository.
  • The rustybin command line for remote instances: rustybin login, then every noun of the control plane.
  • Management MCP parity: a tool for every control route, prompts for the common jobs (build_instance, publish_portal, backup_to_git, test_mcp_server, onboard_agent), rustybin mcp-stdio --url --profile.
  • Foundations: one state directory, a settings store with secrets sealed under ChaCha20-Poly1305, one outbound allowlist with pinned addresses and an audit of every decision.

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

The image

ghcr.io/coldbathcode/rustybin:0.2.0
ghcr.io/coldbathcode/rustybin@sha256:002c7f164c78c06153b90dd5d8cb75b85ac8a72bb6696e038474a43fee42740e

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

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

A platform that verifies images before a pod starts (an admission policy or a pod-image-verify step) uses the same two values: the issuer above and the identity regexp, against the digest-pinned reference.

Upgrading from 0.1.0

  • Set RUSTYBIN_CONSOLE_PASSWORD (or change the password under Management, Sign-in on first start), or set RUSTYBIN_CONTROL_AUTH=open to keep an open control plane. A public instance refuses to start with the default password.
  • Set RUSTYBIN_STATE_DIR to keep settings, secrets, mocks and the git working copy across restarts (RUSTYBIN_MOCKS_STATE_DIR and RUSTYBIN_HARNESS_STATE_DIR keep working as overrides).
  • Outbound calls (A2A push notifications, the leads webhook, the key registry URL) now go through the egress policy; their variables are unchanged, but link-local and cloud metadata addresses are refused even with RUSTYBIN_A2A_PUSH_ALLOW_ALL.