Repository navigation
Releases
Rustybin 0.7.0: new features for gateway demos
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.writenow gets200fromGET /_rustybin/secret-requests(the requests of their own agents, possibly none) and may read and decline those; it was403. Another user's request is404, fulfilling is unchanged, and callers who are not users see no change. A script that read the403as "may not read requests" reads/_rustybin/sessioninstead. - 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.needsettings.security. - A harness scenario with
servers.chainneeds every server node on 0.7.0. A chain hop withhttp: h3needs the-http3image on every server node. - Verified pulls are off until
git.verifyis 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.comorgitlab.comwith a token as its authentication can open a pull request with that token once a caller asks withopen: true; nothing calls a host before that. - The default image has no HTTP/3; the image tagged
0.7.0-http3has.
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.verifyon, 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:
resolvewithpull_requesttakesopen: truefor 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_documentsis 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
-http3on 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
Nothing to do when upgrading: everything new is off until you turn it on or use it.
New:
- A spec from a URL.
spec_urlon a create,--spec-urlon the CLI and Or fetch it in the new mock dialog. It needsmocks.writeand a host named inRUSTYBIN_EGRESS_ALLOW(purposespec_fetch, no default), so never a visitor's. See A spec from a URL. - A push webhook for source control.
POST /_rustybin/git/webhookpulls at once, signed, and answers404untilgit.webhook_secretis set. See A webhook instead of polling. - OAuth on a mock's own MCP server.
mcp.oauthanswers401with 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>andGET /_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/exportwrites a version 2 document with only themockssection. 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
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 hashmakes the argon2id hash forRUSTYBIN_CONSOLE_PASSWORD_HASHon 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=prefermeant 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
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 theAuthorizationandCookieheaders 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 answers503. The same spec now costs about 18 MiB. - A client could name its own address behind a proxy. A public instance with
RUSTYBIN_TRUST_FORWARDand noRUSTYBIN_TRUST_FORWARD_HEADERbelieves every forwarding header, so a client could step around the per-address limits. It now warns at startup and inGET /_rustybin/diagnostics(client_address). Nothing changes until you name your proxy's header: see Behind a proxy.
Changed on a public instance:
GET /_rustybin/metricsneedssettings.read. SetRUSTYBIN_ADMIN_TOKENand scrape with it, or nobody reads the metrics.- A visitor's
mcp-checksruns 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
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 --ssofor 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_readerrole 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
adminrole, 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
403withreason: permission_requiredand thepermission, instead ofinsufficient_scope; the CLI exits3. - 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=passwordnow asks for a portal sign-in. A mock closed behind the defaultdemo-keyanswers403 closed_unsecureduntil it is secured again. - The
git.*settings needgit.write; aneditor'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/listpage 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
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,corsandheader_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
runsorschedules; an existing one with either name is skipped with a warning. POST /_rustybin/tests/runanswers more fields (run_id,changeand 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.yamlhas atest_schedules:section.- The management MCP server has 125 tools for an admin. Clients that read only the first
tools/listpage 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
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.keyunlessRUSTYBIN_CONTROL_OAUTH_KEYis 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 needRUSTYBIN_CONTROL_OAUTH_KEYor 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 inRUSTYBIN_CORS_ORIGINS.*now covers the data plane only. - The sign-in changes only with the password. In password mode,
console.userand the password hash change only with the current password (PUT /_rustybin/password, orcurrent_passwordinPATCH /_rustybin/settings) or the admin token. The management MCP andrustybin.yamlcan 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_testsasks 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_urlorproxy.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 (
503withRetry-Afterwhen it stays busy). - Deploys can name their revision. Use
If-Matchorexpected_revision(409when 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 andmcp_callsend only read-only methods to servers on other hosts. - Mock statuses are 200 to 599.
- Public mode refuses
Set-Cookiethrough/response-headersand 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_TOKENandRUSTYBIN_ADMIN_TOKENonly toRUSTYBIN_URLor 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
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(exit1when a check fails),GET /_rustybin/diagnosticsand 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-Matchorexpected_revision; the mock'sETag). A stale edit answers409with what changed and saves nothing. The console, the CLI and agents always send one; themocks.require_revisionsetting 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/listhas more than one page (100 tools a page). Clients must follownextCursor; MCP clients do. New tools come after the existing ones. rustybin.yamlexports have atests:section (empty when there are no saved tests).- Two new outbound purposes,
scenarioandreplay, with no default: add your gateway's host toRUSTYBIN_EGRESS_ALLOWbefore 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
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_DIRthe 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, setRUSTYBIN_TRUST_FORWARD_HEADER(or theproxy.client_ip_headersetting) tofly,forwarded,x-forwarded-fororx-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:storedornull; literal values are refused, and a mock'sspec:file must be inside the repository.RUSTYBIN_CONFIG_FILEbehaves as before. - Request bins answer inert content. HTML, scripts and SVG come back as
text/plain, with no cookies, a sandbox CSP andnosniff. - 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_PROXYand the other system proxy variables. A*.domainallowlist entry no longer reaches private addresses unless a network entry covers them. - New limits. Spec compiles run four at a time (
503when busy, 30 a minute for a visitor), generated values are capped at 1 MiB, and gRPC messages are capped atRUSTYBIN_BODY_LIMIT.aiis now a reserved mock name. - CLI.
mcp save-connection --secrettakesname=-orname=@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
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
/portalwith 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
rustybincommand 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 setRUSTYBIN_CONTROL_AUTH=opento keep an open control plane. A public instance refuses to start with the default password. - Set
RUSTYBIN_STATE_DIRto keep settings, secrets, mocks and the git working copy across restarts (RUSTYBIN_MOCKS_STATE_DIRandRUSTYBIN_HARNESS_STATE_DIRkeep 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.