Changelog
0.7.1 (unreleased): follow-ups and a security fix
Not released yet: the version and the tag come when the owner tags it. A security fix (built 2026-12-01), and what was built on 2026-11-13 after 0.7.0: follow-ups the 0.7.0 builds named, and four fixes. Nothing to do when upgrading.
Security:
- jsonwebtoken 9.3.1 is replaced by 10.4 (CVE-2026-25537: a token whose
expornbfwas not a number, such as a string, skipped the time checks, so an expired or not yet valid token could be accepted). It reached every verifier of a JWT: control-plane JWTs, console and portal sign-in tokens, the management MCP server's OAuth tokens, single sign-on ID tokens and the mocked security of the data plane. Such a token is now refused: anexpthat is not a number counts as missing, annbfthat is not a number is malformed. The console and portal sign-in tokens and the OAuth tokens now also checknbfwhen one is present (the instance never sets it). The crypto backend isaws-lc-rs, which TLS already uses, soringis no longer needed for tokens.
New:
- Source control: a pull request that is already open
is found and answered. When the host refuses to open one, the instance makes one read for an
open pull request of that branch into that base and answers its address
(
already_open: true,untrusted_pull_request) in place of the refusal. - Source control: a third kind of git host,
gitea(Gitea and Forgejo, which share an API), forgit.host.autonever picks it: name it, withgit.host_apiwhen the API is not at/api/v1on the repository's host. Tested against a stand-in, not a real server. - Diagnostics:
source_control_host(a git host named on purpose that cannot open a pull request: no token, an API the outbound policy refuses, an address or a repository name that cannot be used) andclient_documents(client ID metadata documents turned on with no host allowed for them). - MCP inspector: the client document is also served at
GET /.well-known/rustybin-inspector-client.json, and the OAuth walk now sends that address as its client id, so one Rustybin can sign in to another (an outbound policy that refuses/_rustybinpaths, as Rustybin's does, can fetch it). The 0.7.0 address keeps answering. - Harness: a Postman environment file as an import's variables:
environmentin the import envelope and on theimport_scenariotool,rustybin harness import <file> --environment FILE, and a file field in the console's form. Explicit variables win. Entries that are disabled, marked secret or named like a credential are skipped, and named innoteswithout their values. - Dev portal: event APIs. A mock made from an AsyncAPI document is published as an event API with its channels, messages, examples and connection snippets.
Changed:
- Harness import: a variable named like a harness placeholder (
id,seqand the rest) is accepted when the caller gives its value, andnotessays the name was given a fixed value; it was refused. Without a given value nothing changes. - An authorization server that remembered the inspector by its 0.7.0 client id sees a new one and asks for consent once more.
- An event mock has no collection:
GET /_rustybin/mocks/{name}/collections/{format}answers409withreason: asyncapi(it answered an empty collection), and the portal's collection and reference routes404. Closing an event API on the portal answers409 open_channelsunless the instance requires an API key, since channels ignore mocked security. - An event mock's own spec route (
/mock/{name}/_rustybin/openapi.json) serves the AsyncAPI document withserversin AsyncAPI's shape, pointing at/events/{name}.
Fixed:
- Gateway scenarios no longer take one answer of the gateway's own for
the feature.
circuit_breakerpassed through a plain proxy that lost one upstream call and answered502itself; it now passes only when the gateway answers three requests in a row without the upstream, the last half the half-open time after the first, and reports a single such answer as one failed call.timeoutsneeds the upstream to have received the request, andai_prompt_guardsends a refused prompt a second time. Five guard scenarios that accept a refusal after the upstream was reached can still be passed by a gateway error there; the page says so. - The CLI reference builds without an unclosed tag.
0.7.0 (2026-11-13): new features for gateway demos
Everything built since 0.6.0: steps 11 to 13 and 15 to 22 of the plan (the last of the roadmap's candidates and their follow-ups) and steps 01 to 09 of the demo next plan (AI gateway scenarios, MCP security, recording, drift, storyboards, demo packs, Arazzo workflows, realtime and batch AI, event mocks).
Upgrading from 0.6 (nothing to do for most instances; what is new is off until you turn it on or name it):
- 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; runs without a chain are unchanged on a mixed cluster. 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. profiles.jsonmay hold anagentobject per profile; an olderrustybinignores it.- The default image has no HTTP/3; the image tagged
0.7.0-http3has.
New:
-
AI gateway scenarios: six guided scenarios with a pass or fail verdict for an AI gateway in front of this instance's AI mock:
ai_token_limit(a token budget, told apart from a request limit),ai_model_fallback(a provider error on the primary target, the success from a fallback;fail_kind),ai_semantic_cache(rewordings from the cache, a different prompt to the model),ai_prompt_guard(fake personal data and a prompt injection refused or redacted;skip_injection),ai_response_guard(a fake customer record removed from the answer) andai_provider_balance(two targets, each its share;min_share). A run steers the AI mock for its own requests only (the run's secret session), and ending it ends that. On every surface: the scenario routes, the console's AI group,rustybin scenario(--token-limit,--fail-kind,--skip-injection,--min-share), the scenario tools. -
MCP security: attack servers at
/mcp/attack/{kind}that misbehave on purpose with inert test data (tool poisoning, a rug pull, tool shadowing, result injection, an oversized result, an exfiltration link, scope overreach), on by default and always off in public mode (mcp.attack_servers,RUSTYBIN_MCP_ATTACK_SERVERS); six MCP gateway scenarios against them (mcp_tool_poisoning,mcp_rug_pull,mcp_tool_shadowing,mcp_result_injection,mcp_oversized_resultwithmax_result_kib,mcp_exfiltration_url), each check an MCP session through the gateway; and three inspector checks that warn on any server (descriptions_look_clean,results_carry_no_instructions,definitions_are_stable). The attack servers are listed in the MCP inspector, never in the mock MCP registry. -
A mock recorded from a real API:
POST /_rustybin/recordingsanswers a proxy URL; requests sent to it go to the real API through the outbound policy (purposerecord, no default) and the exchanges are kept with credentials removed (headers not kept, secret-looking query values and JSON fields as{{NAME}});POST .../buildinfers a spec by code (path templates, parameters and schemas from the traffic) and creates the mock with the recorded answers as stored examples (sourcerecorded), naming what looked like personal data by kind. On every surface: the routes,rustybin record, six management tools, the console's Mock APIs view. -
Contract drift:
POST /_rustybin/mocks/{name}/driftsends one request per operation to the real API a mock imitates (drift.upstream, a new setting of a mock, orupstream) under the purposerecord, and reportsstatus_differs,schema_violation,missing_field,undocumented_field(a warning) andunreachableper operation, as JSON or JUnit; credentials as{{VAR}}headers, never kept; the last 10 runs kept per mock. On every surface:rustybin mocks drift(exits 1 on drift) anddrift-runs,check_mock_driftandlist_drift_runs, a mock's Drift tab,drift:inrustybin.yaml. -
Demo storyboards: a demo as a script. A storyboard is a list of steps, each with a talk track (Markdown), an action and an optional reset; an action is what an instance already does (
restore_checkpoint,start_scenario,check_scenario,run_test,send,set_health,set_mock_mode,open_view, ornonefor a talking point).POST /_rustybin/storyboards/{name}/steps/{index}/runruns one step with the caller's own permissions (tests.runplus what the action needs; a missing one is403 permission_requiredand nothing runs) and answers the verdict;POST .../resetruns every step's reset, ends the scenario runs the storyboard started and clears the caller's progress. Progress is per session, in memory, never exported. At most 50 storyboards of 40 steps in<state>/storyboards.json; a credential is never saved ({{NAME}}variables, as saved tests). A storyboard may belong to a project. On every surface: the routes, the console's Storyboards view (an editor whose action forms come from the configuration schema, and a presenter mode driven from the keyboard),rustybin storyboard list,show,apply,run(a rehearsal: exits 1 when a step fails),reset,delete, five management tools and the promptrehearse_demo,storyboards:inrustybin.yaml(a pulled document cannot point a step at a new gateway). -
Customer demo packs: a customer's whole demo as one document, a
rustybin.yamlwith apack:header (name,title,customer,notes,console_title) and the sectionsmocks,portal,tests,test_schedulesandstoryboardsonly.POST /_rustybin/packs/applycreates a project named after the pack and applies the document into it (dry_runpreviews after the same checks; a name that is taken is409 name_taken, never overwritten; a pack with a problem is refused whole);DELETE /_rustybin/packs/{name}removes what the project holds now, the pack's schedules and the project, and puts the console title back (dry_runlists it), leaving an export of the instance byte for byte what it was;GET /_rustybin/packs/{name}/exportgives any project as a pack. At most 20 packs. On every surface: the routes, Management, Packs in the console,rustybin pack apply(a file, or a directory whose spec files it sends inline),list,teardown,export, four management tools and the promptprepare_customer_demo. -
Multi-step saved tests: a test takes
stepsinstead ofrequest, each step a request with its assertions andoutputs($statusCode,$response.header.<name>,$response.body#/json/pointer) that later steps use as{{steps.<id>.outputs.<name>}}. At most 20 steps; a step that fails stops the test and is named in the failure; a result has each step with its outputs (one named like a credential is hidden). The Hurl export writes a step as an entry and an output as a capture. -
Arazzo workflows:
POST /_rustybin/tests/importreads an Arazzo 1.0 document and makes one multi-step test a workflow, its source descriptions being the instance's mocks (by name, else the one mock with the operations used; never fetched). What has no counterpart (anonFailuregoto or retry, regex and XPath criteria, nested workflows) is named inleft_out, never guessed;dry_runpreviews.GET /_rustybin/tests/{name}/export?format=arazzowrites a test back as Arazzo. The harness import reads the same document (format: arazzo) for the steps that stand alone. On every surface: the console's Import Arazzo card and per-step results,rustybin tests importandtests export <name> --format arazzo, the toolimport_tests,steps:inrustybin.yaml. -
Realtime API of the mock LLM:
GET /ai/openai/v1/realtime, the OpenAI-shaped realtime protocol over a WebSocket (session.update,conversation.item.create,input_audio_buffer.*,response.createandcancel; theresponse.*events with text, audio and transcript deltas, function calls from the session's tools,response.donewith usage). Answers come from the engine of the other AI paths. Input audio is counted and never kept; output audio is silence or a tone in PCM16 or G.711.?fail=drop_after:Nanderror_after:Nfault a session, a fail kind refuses the upgrade. At mostai.realtime.max_sessions(64) sessions ofai.realtime.session_minutes(30). -
Batch APIs of the mock LLM: OpenAI-shaped files and batches (
/ai/openai/v1/files*,/ai/openai/v1/batches*) and Anthropic-shaped message batches (/ai/anthropic/v1/messages/batches*). A batch moves through the provider's states inX-Rustybin-Batch-Seconds(default 10,ai.batch.seconds); its results are the engine's and deterministic for the same input, ids included;X-Rustybin-Batch-Fail-Ratefails chosen lines with the provider's error, a malformed line fails validation, a cancel goes throughcancelling. Per callerai.batch.max_files(20) andai.batch.max_batches(10), an hour. -
The AI request log (
GET /ai/requests) has akind(request,realtime,batch); a realtime session's record holds its events and a batch's its lines, never audio. The console's AI playground has a Realtime session panel and a Request log card. -
Event mocks from AsyncAPI: an AsyncAPI 2.x or 3.0 document becomes a mock with channels in place of operations, in the same store as the OpenAPI mocks (drafts, deploys, revisions, projects, exports). Each channel answers at
/events/{mock}/{channel}as a WebSocket, as server-sent events and to aPOST; Rustybin publishes the document'ssendmessages (its examples, the mock's stored ones, or generated from the schema) on a pattern (every,burst,on_receive,off), with faults (delay_ms,drop_percent,malformed_percent), and validates what clients publish against thereceivemessages: an invalid one is answered with an error and kept with its report. Webhook subscribers (/_rustybin/mocks/{name}/subscribers) get a channel's messages posted, under the new outbound purposeevents, which has no default. The deploy report names what is not served (kafka,mqttand other bindings) or not generated (Avro, Protobuf). On every surface: the console's Channels tab,rustybin mocks channels | events | publish | subscribers | subscribe | unsubscribe, six management tools,channels:of a mock inrustybin.yaml, and the settingsasyncapi.max_connections(128),asyncapi.session_minutes(60) andasyncapi.max_subscribers(50). Kafka is not built. -
Source control: a diverged branch says what differs (
divergencein the status and in the409) and is resolved by a person:POST /_rustybin/git/resolvetakesinstance,repositoryorpull_request(this instance's side to a new branch, for a pull request at the git host), each withdry_run. Still never a merge, never a forced push, and the automatic mode never resolves. -
Branches per environment:
GET /_rustybin/git/branches, andPOST /_rustybin/git/branchto switch with a preview or to start a branch from the instance.rustybin git branches,switch,branch; the toolsgit_branches,git_switch_branch. -
Signed commits:
git.sign(off by default) with a signing key of its own, the secretgit.signing_key;POST /_rustybin/git/signing-keygenerates it and answers the public key and its fingerprint.rustybin git signing-key, the toolgit_signing_key. The instance signs; it does not verify the signatures of what it pulls. -
A saved harness scenario in a file of its own:
file:in theharnesssection, read like a mock'sspec:. -
A secret at an agent's request: with the
agents.secret_requestssetting on (off by default), an agent asks for a secret setting to be set (request_secret: the setting and a reason) and a person types the value in Management or gives it torustybin settings fulfil <id>on stdin, or declines. The value never passes through the agent: the tools answer a request's state only. Requests expire after 15 minutes;GET /_rustybin/secret-requests,POST .../{id}/fulfil | decline(secrets.write, and what setting that secret needs). -
An agent's sign-in from the command line:
rustybin login --agentwalks the instance's own OAuth sign-in in the browser and keeps the agent's tokens in the profile;rustybin mcp-stdio --profile <name>uses and renews them. The credential works withmcp-stdioonly, and the other commands say so. -
Harness: import from other tools.
POST /_rustybin/harness/import,rustybin harness import --formatand the newimport_scenariotool read a Postman collection (v2.1) and an Artillery script as well as a recording. What has no counterpart (scripts, hooks, plugins, captures, think times) is never run and is named inleft_out; a request with a variable the document does not define is left out and the variable named; an Artillery script's phases becomepatternwhen they map exactly. A program is refused. -
Harness: HTTP/3 targets (
targets[].http: h3) in builds with the cargo featureharness-http3. The default binary and the default image have no QUIC stack and refuse the scenario with a message naming the feature. QUIC connects to the run's pinned addresses only. -
An image with HTTP/3: a second published image carries the suffix
-http3on every tag (latest-http3,X.Y.Z-http3), built withharness-http3and signed like the default one. The default image, the one a public instance runs, gains nothing. -
Harness: server-to-server chains (
servers.chain): a server answering a request of the run calls a further hop, and the report gains the leg of each hop (server.chain). A server calls on only for a request with its run's signed marker, only while the run is live, only to a hop the scenario names and the server node allows, pins and verifies, once per request and hop, to a depth of 3. A scenario with a chain needs every server node on this version; runs without one are unchanged on a mixed cluster. -
Harness: a hop of a chain over HTTP/3 (
http: h3on a hop) in builds withharness-http3. The hop is pinned, verified over HTTP/3 and called on its pinned addresses only; its QUIC connections close when the kill switch is set or the run ends. Chains may mix protocols. A build without the feature refuses the hop by the feature's name. -
Harness:
rustybin_harness_chain_calls_total{run, hop, result}on/_rustybin/metrics, a chain's onward calls on each server node while the run is on.resultisok(answered),failed(no answer) or why no call was made (not_prepared,not_live,kill_switch,seen_before,untracked,busy); the numbers are the report's. A run without a chain has no such series. -
Harness: variables given to a scenario import. A collection keeps its base URL and ids in an environment the exported file does not carry, so the caller gives the values: an envelope
{document, format, variables}onPOST /_rustybin/harness/import,rustybin harness import <file> --var NAME=value,variableson theimport_scenariotool, and a form in the console that asks for the variables an import named. A given value wins over the document's own; at most 64, 1 KiB each. A name that is a harness placeholder (seq,idand the rest) or looks like a credential is refused, credentials are removed after the values are put in, and a value is never logged or in an audit entry. -
MCP inspector: client ID metadata documents. The instance serves the inspector's client document at
GET /_rustybin/oauth/inspector-client.json(open;rustybin mcp client-document), and the OAuth walk sends its URL as the client id, with no registration call, to an authorization server that supports it. Step 4 of the walk says which client was used and why not the others (an instance onhttp://localhostcannot offer a document and registers). Client in the auth form forces a document, registration or a given id, and a saved connection keeps the choice. A new check,client_document, says whether a server takes this instance's document. -
OAuth sign-in to
/_rustybin/mcpwith a client ID metadata document, off by default. With the settingoauth.client_metadata_documentson, an agent's client may name itself with the URL of a document instead of registering. The instance fetches it under the new outbound purposeclient_metadata, which has no default (only hosts inRUSTYBIN_EGRESS_ALLOW): no redirects, at most 5 KiB, kept five minutes. The consent page shows the document's host and says the name is the client's own claim. A document from git never changes the setting. -
A note on a declined secret request: the decline takes an optional
note(at most 300 characters;rustybin settings decline <id> --note, a field in the console) that the agent reads inget_secret_request. Never the secret; a note is in no audit entry. The console's gear shows how many requests wait, from any view. -
Verified pulls: with
git.verifyon (off by default) 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).git.allowed_signersnames who may sign; the instance's own signing key is allowed without being listed. A merge commit passes unsigned only as the clean merge of two verified parents, so a host's merge button works; a squash or rebase merge made by the host is refused. It holds on every path that applies the repository: a pull, the webhook, the automatic mode, startup,resolvewithrepository, a switch of branch and a checkpoint from the repository. A refusal is409withreason: unverified, the commit and why; nothing is applied. Turning it on trusts the head of that moment.rustybin git signers, a "Verified pulls" card in the console, and a diagnostics check. -
A pull request opened by the git host:
resolvewithpull_requesttakesopen: true, and after the push the git host's API is asked to open the pull request; the answer carries its address (untrusted_pull_request). GitHub and GitLab and their self-hosted variants: the settingsgit.host(autorecognisesgithub.comandgitlab.comonly),git.host_apiand the secretgit.host_token(elsegit.token, on the remote's own host only). The instance never merges one. When the host does not open it the branch stays pushed andnot_openedsays why;dry_runcalls nothing. The outbound purposegit_hostpermits exactly the host's API. In the console,git_resolvewithopen, andrustybin git resolve --with pull-request --open. The two hosts' APIs were tested against stand-ins, not the real hosts.
Changed:
-
A change of reach: a user reads and may decline the secret requests of their own agents without
secrets.write(GET /_rustybin/secret-requests,GET /_rustybin/secret-requests/{id},POST /_rustybin/secret-requests/{id}/decline). Another user's request is404, andpendingcounts the requests the caller may read. Fulfilling is unchanged, and a caller who is not a user still needssecrets.writefor all of it. -
Settings under
oauth.needsettings.security, andupdate_settingsasks to confirm a change of one. -
GET /_rustybin/gitanswersverificationandhost, thecheck_egresstool'spurposetakes every purpose, andGET /_rustybin/harnessanswershttp3with the harness off too. -
A scenario import names every variable a left-out request needs in
variables, not only the first, and a400for want of variables carries the list. A Postman collection's variable in the place of a URL's host that has a value is read as a base URL (its host is inhosts, its path leads the requests). The harness import of an Arazzo document no longer leaves a step out for a reference inside a secret-looking header: the header is removed by name. -
The management MCP server has 169 tools for an admin (the six event mock tools
list_channels,list_channel_messages,publish_event,list_event_subscribers,add_event_subscriber,remove_event_subscriber, andrequest_secret,get_secret_request,git_branches,git_switch_branch,git_signing_key,import_scenario, the six recording toolslist_recordings,start_recording,get_recording,stop_recording,build_mock_from_recording,delete_recording,check_mock_drift,list_drift_runs, and the five storyboard toolslist_storyboards,save_storyboard,delete_storyboard,run_storyboard_step,reset_storyboard, and the four pack toolslist_packs,apply_pack,teardown_pack,export_pack, andimport_tests) and eleven prompts (rehearse_demoandprepare_customer_demoare new). -
A saved test's name cannot be
import(a route now). A test's result hasstepswhen it is a multi-step test; a single-request test is as before. -
rustybin.yamlhas astoryboards:section (empty when there are none), and a project's resources count its storyboards. -
profiles.jsonmay hold anagentobject per profile. An olderrustybinreads the file and ignores it. -
A harness import keeps at most 64 requests (a layer's limit; it kept 200, which did not validate) and a weight never passes 1000.
Fixed:
- A document pulled from the configuration repository could change the
git.*settings (the remote, the branch, the automatic mode) when someone wrote them into it by hand. It no longer can: a different value is a problem and the setting is kept. - A mock whose spec changed, and nothing else, was not seen as a change against the working
copy:
git.auto: push_on_changedid not commit it and the status showed no drift. - A harness scenario written by hand in a document (the shorthand with
target) was refused when applied; it is folded like every other way of saving one.
cargo version 0.7.0, the tag v0.7.0, and two signed multi-arch images: the default
ghcr.io/coldbathcode/rustybin:0.7.0, digest
sha256:84663e342a16caf8a9fea08a9288cffc14673a708db6b33af3b3ed2da35f229b, and
ghcr.io/coldbathcode/rustybin:0.7.0-http3 with HTTP/3 for load tests, digest
sha256:ccd4d92597c4a23baec6833347e54ae97a41ac774bc9bea9bd5ff298f6a0b0b1 (verify either with the
cosign command of the quick start; the
release carries the same
values, and the Linux and macOS binaries).
0.6.0 (2026-11-07): more from an instance
The plan, steps 01 to 10, from the roadmap's candidates. Nothing to do when upgrading; three things are new and off until you turn them on.
New:
- A spec from a URL:
spec_urlon a create,--spec-url, 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. - A push webhook for source control:
POST /_rustybin/git/webhookpulls at once, signed, and answers404untilgit.webhook_secretis set. - OAuth on a mock's own MCP server:
mcp.oauthanswers401with protected resource metadata, to try a client's sign-in. - 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 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/export writes a version 2 document with only the mocks section.
It applies as before.
cargo version 0.6.0, the tag v0.6.0, the signed multi-arch image
ghcr.io/coldbathcode/rustybin:0.6.0, digest
sha256:492000348f22ebb73cd6197de2a07ea6bfc9a363b606b33dcf25b535e29cceb3 (verify it with the
cosign command of the quick start; the
release carries the same
values, and the Linux and macOS binaries).
0.5.2 (2026-11-07): an operator's sign-in next to anonymous visitors
Changed: RUSTYBIN_MOCKS_SELF_SERVICE=true now works with the password sign-in, where
it was ignored with a warning: visitors stay anonymous and only the operator signs in. See
An operator who signs in. Check this
before upgrading: an instance that has RUSTYBIN_MOCKS_SELF_SERVICE=true set, public
mode and password control auth was locked and now takes visitors. Remove the variable to
keep it locked. token and jwt still ignore it.
New: 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, and the next ones now wait half of it each.
cargo version 0.5.2, the tag v0.5.2, the signed multi-arch image
ghcr.io/coldbathcode/rustybin:0.5.2, digest
sha256:391f066e845ee0eb9030cc705b19fe2a068077533c0a1a88afbb0abc262ad2dd (verify it with the
cosign command of the quick start; the
release carries the same
values, and the Linux and macOS binaries).
0.5.1 (2026-11-06): safe for a public demo
No new features: what running the public demo's configuration on 0.5.0 found, fixed (the plan, steps 01 to 03). Upgrade any instance in public mode: the first two entries below are open on 0.5.0 and earlier. Behind a proxy, also read the third.
Security: on a public instance, or to an API key in shared mode, the captured
requests of an instance mock (the built-in petstore, for example) were readable by
any other caller, 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, on the requests list, one request by number, the live feed,
the rule tester and the get_mock_traffic and wait_for_requests tools; total then
counts those calls. 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.
Security: one anonymous POST /_rustybin/mocks could take a self-service instance
down. A 160 KiB spec whose operations all name one wide schema took about 645 MiB,
because each MCP tool kept its own expansion of the schema and the deploy report its
own generated body; 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
(1,000,000 otherwise), a report keeps 256 KiB of generated bodies with body_omitted
on the rest (an operation's detail still generates its whole sample), 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.
Security: a public instance with RUSTYBIN_TRUST_FORWARD and no
RUSTYBIN_TRUST_FORWARD_HEADER believes every forwarding header, so a client could
name its own address and 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 them), and a visitor's mcp-checks runs are answered but not kept, nor are the saved runs shown to
them (they were one list, so visitors saw each other's targets and could push them out).
The console's Saved tests view says once that the tests are the operator's, in place of
three errors.
cargo version 0.5.1, the tag v0.5.1, the signed multi-arch image
ghcr.io/coldbathcode/rustybin:0.5.1, digest
sha256:25026bdff9bd84fa146187c410962b722e04bf9a422ea78781dfe95d4d9bb7b6 (verify it with the
cosign command of the quick start; the
release carries the same
values, and the Linux and macOS binaries).
0.5.0 (2026-11-03): access control
Several people on one instance, each with the roles they need: users with roles made of named permissions (built-in and custom), invitations instead of shared passwords, single sign-on with any OpenID Connect provider, projects so teams share an instance, AI agents that act for a user and never above them, APIs on the dev portal that are open or closed behind a portal sign-in, and an audit log of who did what. A security review of the whole access-control build closed 33 findings before the release (the plan, steps 07 to 15).
Upgrading from 0.4 (nothing to do for most instances; what an operator or a script may notice):
- The console user becomes the first user, with the
adminrole, at the first start; its password stays where it was. Sign-in tokens from 0.4 keep working as that user until they expire. - The old control scopes keep their 0.4 reach as roles (
console,inspector,harness,admin); a control JWT may also carryrb_rolesandrb_perms. - A refusal is
403 {"error", "reason": "permission_required", "permission"}naming what is missing (wasinsufficient_scope); the CLI prints it and exits3. - One admin's password change ends that admin's sessions and agents only, no longer
everyone's;
DELETE /_rustybin/sessions(sign out everyone) needs every permission. - Every published portal item stays open.
portal.auth=passwordnow asks for a portal sign-in by a user holdingportal.read(theportal_readerrole gives only that) instead of keeping a console token. A mock closes only behind credentials of its own: a mock closed behind the defaultdemo-keyanswers403 closed_unsecureduntil it is secured again (secure: true). - Single sign-on links a user created ahead only through an email the provider verified.
- The
git.*settings needgit.write;update_settingsneeds whatPATCH /_rustybin/settingsneeds; aneditor's export carries no users, roles or projects; a/_rustybin/*route missing from the catalogue answers403. - The management MCP server has 137 tools for an admin (118 without the harness
ones); clients that read only the first
tools/listpage use?page_size=200.
The entries below are each step's, with their own behaviour changes.
cargo version 0.5.0, the tag v0.5.0, the signed multi-arch image
ghcr.io/coldbathcode/rustybin:0.5.0, digest
sha256:70baf467a6be5faca3a85655719cb97045ffe610d0a4f63d12a697eef0470135 (verify it with the
cosign command of the quick start; the
release carries the same
values, and the Linux and macOS binaries).
-
Users, roles and permissions, the model (access control, step 07 of the plan): a user store (
<state>/users.json), 38 named permissions, the built-in rolesviewer,tester,editor,adminandportal_reader, custom roles. On the first start the console user becomes user one with theadminrole (nothing to do; its password stays in the sign-in settings and the environment). Sign-in tokens carry the user id (sub),rb_user,rb_genandrb_ugen, and resolve their permissions from the user at every request; tokens issued before the upgrade stay valid as user one. Control JWTs may carryrb_rolesandrb_perms(unknown names ignored).GET /_rustybin/sessionanswersuser_id,display_name,rolesandpermissions; the sign-in answer and the sessions list carryuser_id. What each credential may do is unchanged until every route checks a permission (step 08). A new diagnostics check,users. -
Every route and tool checks a permission (access control, step 08): each control route declares the permission it needs per method in the catalogue (or that it is open, or needs only a signed-in caller), one check makes the decision before the handler runs, and each management tool declares one too; the yes/no admin check is gone. A refusal is
403 {"error", "reason": "permission_required", "permission"}naming what is missing. The CLI printspermission_required: <permission>and exits3, and its reference has a Needs column; the console asksGET /_rustybin/sessionand disables what the caller may not do, saying which permission it needs; the agent tool tables have a Permission column.GET /_rustybin/settingsanswers what changing each settingneeds.Behaviour changes (the 0.4 scopes keep their reach,
consoleas theviewerrole plustraffic.read,assist.useandmcp.inspect,harnessas everyharness.*permission; every difference is listed in the step's build notes):- a
consolescope token (and theviewerrole) now reads what 0.4 kept for admin: the settings (secrets show only whether they are set), diagnostics, the outbound decisions, the AI usage, per-key usage, saved tests, schedules and their runs, source control status and history, and the AI agents; it also previews and validates harness scenarios (they compute and send nothing), and the management server lists the matching tools; - any authenticated caller may read
GET /_rustybin/session, sign out, and reach a self-service visit's own routes (which answer404with control auth on); DELETE /_rustybin/requests?session=...needstraffic.readeverywhere, as on an open control plane; clearing everyone's captures needstraffic.clear;- the
inspectorscope reads a mock's traffic (/_rustybin/mocks/{name}/requests*); - the
harnessscope lists the harness read tools on the management server; - a refusal says
reason: permission_requiredandpermission(it wasinsufficient_scopewith the caller'sscopes); an API key refused by a handler's check in shared mode gets403(was401), as the key layer already answered;get_instanceanswerscaller.rolesandcaller.permissionsinstead ofcaller.rights; an agent's tool list answers each tool'spermissioninstead of itsright;export_configis amocks.readtool (the whole instance still needsconfig.export).
- a
-
Users and roles on every surface, with invitations (access control, step 09; Users and roles). An admin invites people (
POST /_rustybin/usersanswers a one-time link/ui/#/join/<token>, 72 hours, kept only as a SHA-256, at most 100 open), gives them roles, disables or deletes them; a reset is a new link. Nobody but its owner sees a password: the person sets it on the join page (POST /_rustybin/join, open and rate limited like the sign-in) and changes it under My account (/_rustybin/me,PUT /_rustybin/me/password). Custom roles under/_rustybin/roles(every mode). Guard rails: the last enabled admin stays, nobody changes their own roles, the first admin is never deleted, a role in use is never deleted, and nobody grants or manages more than they hold. The console's Management, Users and roles with the permission matrix, the account menu's My account and the join page;rustybin users,roles,meandpasswd; the toolslist_users,invite_user,update_user,delete_user,list_roles,save_role,delete_role(the admin's tool list is 132);users:androles:inrustybin.yaml(never a password; a document from the repository changes display names and emails only).Behaviour changes:
PUT /_rustybin/passwordchanges the caller's own password (any signed-in user; a caller who is not a user still needsusers.manageand changes the first admin's); a disabled user's sign-in answers as a wrong password; theapply_configtool now checks what a document's sections need (settings:,secrets:,agents:,users:,roles:) as the REST route did;list_sessionsandend_sessiontakeuser. -
Open and closed APIs on the dev portal (access control, step 13; Dev portal). Each published item is
open(the default) orclosed(accessonPUT /_rustybin/portal/items/{id}, inGET /_rustybin/portal,portal.itemsofrustybin.yaml). A closed item is read by everyone (docs, operations, schemas, spec, reference); Try it, the demo credentials, the collections and the MCP connection snippets unlock for a reader: a user holding the newportal.readpermission (every built-in role; theportal_readerrole holds nothing else) signed in to the portal, or a bearer control credential that resolves it. The catalogue answers a closed item to anyone else withlocked: trueand placeholders for the credentials; its collections answer401. A mock closes only with its mocked security on (409 security_offotherwise;secure: true, the console's Turn on security and close, turns it on and deploys it), so a call without the credentials is refused by the mock. The portal sign-in:POST /portal/api/login,/logout,GET /portal/api/session, therustybin_portalcookie (HttpOnly,SameSite=Strict,Securebehind HTTPS,Path=/portal, 12 hours, its own signing subkey), accepted under/portalonly; the throttle is the console sign-in's. An invitation of aportal_readerlinks to/portal/#/join/<token>. The console's publish dialog (Open or Closed), the lock and the reader count in Management, Portal, Invite a portal reader; the portal's Sign in, lock, disabled Try it, Sign out and join page;publish_portal_itemtakesaccessandsecure;rustybin portal publish --access closed [--secure]. A document from the repository may close an item, never open one.Behaviour changes:
portal.auth=passwordnow asks for the portal sign-in (the 0.3 screen that kept a console token in the tab is gone; on an instance without the password sign-in the portal still takes a control token) and lets in only credentials that holdportal.read: a control JWT with theinspectororharnessscope alone no longer reads such a portal; with it, the reference page needs the sign-in too. A console sign-in (and an invitation) of an account whose only permission isportal.readanswersportal_onlywith the portal's cookie, and the console sends the person to the portal. -
AI agents act for a user (access control, step 12; Agents act for a user). An agent on a user's sign-in token, and one whose OAuth sign-in a user approved, works for that user and never holds more than them: its permissions are the user's at every call (a role change applies to the next call), within the scope it was given, then its ceiling, allow and deny lists, rules and defaults take away. The agents list answers each agent's
owner(nullfor the admin token and control JWTs, which act for nobody) andowner_label,?owner=<user>keeps one user's; the console's AI agents view has an Owner column and filter;list_agentstakesowner;rustybin agents list --owner. A ceiling may name a role (built-in or custom: the tools whose permission it grants); the four 0.3 ceilings keep exactly their tools (nearest roles:read-onlythe viewer,trafficthe viewer plustraffic.read,managethe editor,fullthe user's own). The new settingagents.default_ceiling_for(role=ceiling, such asadmin=editor) gives a role's users' agents a default.rustybin.yaml'sagents:rules matchuserandrole, andcredential: user. The consent page lists the permissions the agent will hold (grants,permissionsandapproverinGET /_rustybin/oauth/requests/{id}); a user grants a scope that gives at least one permission they hold. Your own agents: seeing everyone's needsagents.read, changing themagents.manage; without them a user sees, limits (never widens), revokes and ends the sessions of their own, and restores one they revoked. Disabling or deleting a user revokes every agent acting for them and ends their sessions. Agents recorded before the upgrade move to their user at the first start (a console record to its user, an OAuth record to the first admin).Behaviour changes: the first admin's password (or user name) change signs out the first admin only (their sessions, portal sessions and agents, OAuth tokens included), no longer every user; an OAuth agent approved with the admin token or a control JWT outlives it (
DELETE /_rustybin/sessionsends it). OAuth tokens carry the user (rb_uid) and the user's generation (rb_ugen); a token issued before the upgrade counts as the first admin's (with the password sign-in). Any signed-in caller reaches the/_rustybin/agents*routes; a caller who is no user still needsagents.readandagents.managethere, so what it can do is unchanged. The agents'credential.kindisuser(withvia:sign-inoroauth) for a user's agent (it wasconsole, oroauthfor one approved in the console);match.credential: consoleandoauthstill match them. Disabling or deleting a user answersagents_revoked. -
Single sign-on with OpenID Connect (access control, step 10; Single sign-on): with the
sso.*settings (RUSTYBIN_SSO_*, allsettings.security) the sign-in screen offers "Sign in with" any OpenID Connect provider, and its groups decide the roles through a role map (the union of a person's groups' roles, else the default roles). The authorization code flow with PKCE,stateandnonce; the ID token verified (issuer, audience, expiry, nonce; RS256 or ES256) with the provider's keys, fetched with discovery under the new outbound purposesso(the issuer's host) and cached for an hour; the provider's tokens are never kept. Users from single sign-on (source: sso) are created at their first sign-in (sso.provision, or added ahead with"sso": true), have no password and no invitation, get their roles again at every sign-in, and may have roles pinned by an admin (pinned_roles).sso.allowed_domainslimits the email domains;sso.password_sign_inoff leaves only single sign-on and the admin token. New routes:GET /_rustybin/sso/status,/start,/callback,POST /_rustybin/sso/token(open, throttled like the sign-in) andPOST /_rustybin/sso/test; console: the sign-in button, Management, Sign-in, Single sign-on with Test; CLI:rustybin login --sso(a loopback address takes the browser back),rustybin sso status,rustybin sso test,users invite --sso,users update --pin-role; management MCP:test_sso(133 tools for an admin);rustybin.yaml: thesso.*settings,sso: trueon a user. The demo identity provider puts the groups in the ID token when thegroupsscope is asked for. A new diagnostics check,sso.Behaviour changes: a document pulled from git never changes an
sso.*setting;update_settingsasks to confirm a change ofsso.*;GET /_rustybin/sessionanswersobtained: "sso"for a single sign-on token;PATCH /_rustybin/users/{id}refusesrolesfor a single sign-on user (409sso_user) and takespinned_roles; an invitation, a reset or a password change for one is refused (409sso_user). -
Projects: roles on part of an instance (access control, step 11; Projects): a project (at most 100) groups mocks, saved tests and checkpoints (a mock's portal item follows its mock), and a user's roles in a project apply to its resources on top of their instance roles (the union rule; a user with a role in a project also holds
instance.read). Another project's resource answers404and lists leave it out; instance-wide things need instance roles; a move between projects needs the write permission in both; a project is deleted only when empty or withmove_to(another project orinstance); the last enabled admin is counted instance-wide. New routesGET /_rustybin/projectsandGET,PUT,DELETE /_rustybin/projects/{name};projecton the mock, saved test and checkpoint routes that create,?project=on those that list,projectson invitations, the users' answers and the session. A project's checkpoint keeps and restores that project's mocks only.sso.role_mapentries may name a project ({group, project, roles}, kept asgroup=project:role). Console: the Project picker in the top bar, a mock's Project (move it), Management, Users and roles: the Projects card and each user's project roles. CLI:rustybin projects list | show | save | delete --move-to,mocks move,--projecton the commands that list and create,users invite --project P=role. Management MCP:list_projects,save_project,delete_project(136 tools for an admin),projecton the tools that list and create.rustybin.yaml:projects:with members by user name,project:on mocks and tests; a pulled document never changes members, prunes a project nor moves a resource. An agent acting for a user follows the user's project roles.Behaviour changes: none for a caller with instance roles only (resources without a project are the instance's, as before).
GET /_rustybin/tests/runsanswerstotalas the runs the caller may see; the management tools on mocks, saved tests and checkpoints are listed for a member of a project who holds their permission there. -
The audit log (access control, step 14; The audit log): who did what, and when. Every mutating control route and every management tool that changes something writes one entry (a new route or tool without code), with every sign-in and failed sign-in (the user named only when one has that name), invitations, role and project changes, single sign-on with the groups that mapped, portal sign-ins and items opened or closed, agent revocations (whose agent), config applies, git pulls with the commit, and every
403 permission_required(reads and the data plane's included). An entry: time, actor (a user, or the credential's kind; the agent), via, action, event, targets, result, request id and address; never a value, a body, a header, a password or a token. The last 10,000 entries in memory and, with a state directory,<state>/audit/as JSON Lines, one file a UTC day, written off the request path, keptaudit.retention_days(30, at most 365) and at mostaudit.max_bytes(256 MiB;RUSTYBIN_AUDIT_RETENTION_DAYS,RUSTYBIN_AUDIT_MAX_BYTES), bothsettings.securityand refused from a pulled document. Unauthenticated entries (sign-ins) are capped at 600 a minute. New routesGET /_rustybin/audit(filtersactor,action,target,since,until,result, a cursor) andGET /_rustybin/audit/stream(SSE), bothaudit.read(only theadminrole has it). Console: Management, Audit (filters, the table with links, older pages, a live tail, the retention settings). CLI:rustybin audit list | tail. Management MCP:list_audit(137 tools for an admin), typed names underuntrusted_*.rustybin.yaml: theaudit.*settings; the log is never exported. -
Security pass (area A): sign-in, invitations, single sign-on, the model and its enforcement (step 14 of the plan; every finding and its test in the step's build notes).
Behaviour changes:
- Single sign-on links a user added ahead only through the email the provider
verified (
email_verified: true), never by a matching name; give such users their email. A new user's name comes from the email only when it is verified. The refusals about a name (name_taken,other_identity,not_provisioned, and a user added ahead without the verified email) reach the browser as one reason,not_linked; the detail is logged. - The agent tokens of the built-in OAuth server acting for a single sign-on user (access and refresh) are refused twelve hours after the person last signed in through the provider, until they sign in again.
- Under an
httpsissuer the discovery document's endpoints must behttps. - A full table of single sign-on starts drops the oldest of the busiest address
instead of refusing (
busy). rustybin login --ssoanswers only the callback carrying its owncli_stateand prints what comes back without control characters.- Every password sign-in runs one argon2id verify under the hash permits, a dummy
one without a hash, so a name nobody has can answer
429 busylike a real one. - The brute-force brake counts per user name (20 failures a minute from every address together, was 100 for every sign-in together); invitations and single sign-on have lanes of their own.
- Listed sessions: at most 16 per user (a sign-in past them ends the user's oldest session, whose token is refused) and 4096 in all (was 256 in all).
- A first admin's reset link is refused with
409 lockedbefore it is used whileRUSTYBIN_SETTINGS_LOCKholds the sign-in (the link stays valid). update_settingsneeds whatPATCH /_rustybin/settingsneeds for each key, and confirmsproxy.*,assist.providerandassist.base_urlchanges too.- The
git.*settings needgit.writeon top ofsettings.write. sso.role_mapandsso.default_rolesmay name only roles whose permissions the setter holds (in a project forproject:role), on every surface.DELETE /_rustybin/sessions/{id}(andend_sessionwith an id) needs every permission of the session's user;DELETE /_rustybin/sessions(andend_sessionwithall) needs every permission.GET /_rustybin/config/exportandexport_configleave outusers:,roles:andprojects:for a caller withoutusers.read(theeditorrole).- On a self-service instance a user or a control JWT is held to each route's permission (only a visitor, an API key or a caller sending a manage token gets the visitor rules), and a visitor reads the instance's mocks but needs the route's permission for their traffic, data, deletion or publication.
- A document from the repository gives no role a permission it did not grant and creates no role that single sign-on names.
- A
/_rustybin/*route the catalogue does not know is refused (403).
- Single sign-on links a user added ahead only through the email the provider
verified (
-
Security pass (area B: the portal's closed items, projects and agents; step 14 of the plan). Behaviour changes:
- a mock closes on the portal only when every call needs an API key or a Basic user
of its own: closing is refused (
409,reasondefault_credentials,obtainable_credentialsoropen_operationsbesidesecurity_off, withclosable_modes) for the documented defaults (demo-key,demo/demo), thejwtandbearermodes and OAuth 2, OpenID Connect, bearer andmutualTLSschemes (anyone mints a JWT from the built-in identity provider, whose demo client is public, or downloads the demo client certificate), and a mock whose every operation is public (operations declared public, marked so or without a requirement inspecmode, stay open by design); secure: true("Turn on security and close") replaces every default credential with a random one and usesapi_keymode unless the spec's mode (orbasic) closes the mock; metadata and capacity are checked before it changes the mock;- while an item is closed, no edit, deploy, rollback, document (trusted or pulled),
file reload or checkpoint restore turns the mock's security off or puts the
defaults back (
409, a problem line); a mock that has such a revision anyway (recreated under the same name, loaded from a file, closed before this release behinddemo-key) answers every call403 closed_unsecureduntil it is secured (sendsecure: trueagain), and a config file load reports it; - a document pulled from git never changes
portal.authnorportal.base_url; - a closed
mcp:*(and every other non-mock) item drops the hint at how to get through, the publish answer has anotethat its endpoint stays callable, and a locked mock entry carries notoken_url; - portal sign-outs have their own bounded list, so they never push out console sign-outs;
- a second revoke of an AI agent keeps the first revocation (who, when); the answer
says
already_revoked; - revoking a user's OAuth agent refuses that user's tokens of the client only, never another user's who registered the same client metadata (user disabled or deleted too);
- the AI spec job lists only the mock names the caller may read as taken;
- a mock's live traffic stream checks its caller again at every event and every 5 seconds, and ends when they may no longer read it;
- the OAuth consent shows (
projects, per scope and for the request) and counts the approver's project grants; - naming an unknown project answers like a project the caller may not use (
403) unless they hold the permission on the whole instance, and a checkpoint restore says "now in another project"; GET /_rustybin/projectslists a project's resource names only to who reads them there, andGET /_rustybin/mocksanswersload_errorsonly to holders of instance-widemocks.write.
- a mock closes on the portal only when every call needs an API key or a Basic user
of its own: closing is refused (
0.4.0 (2026-11-03): testing workflows
Saved tests run without anyone at the console and keep their history, four more gateway scenarios, checkpoints that travel in the configuration repository, and a compare view when an edit is refused as stale (the plan, steps 01 to 06; access control follows in 0.5.0).
Behaviour changes (what an operator or a script may notice):
- A saved test can no longer be named
runsorschedules(the new routes take those paths); an existing test with either name is skipped with a warning when the instance loads. POST /_rustybin/tests/runanswers more fields (run_id,trigger,principal,selection,change); with?format=junitthe run id is in theX-Rustybin-Test-Runheader. Every value given as a variable is replaced by its{{NAME}}in the answer and in the kept run.- Every gateway scenario lists its test
parameters; a check's body is the gateway URL plus a map of parameters, and an unknown or out-of-range parameter is refused with a400naming the bounds before anything is sent. - The mock store keeps the drafts replaced before they were deployed (as many as
deployed revisions, in memory), so a stale edit's
409names what changed for an undeployed base too. - A commit through source control never stages
<git.path>/checkpoints/except the checkpoints it names, and "nothing to commit" ignores untracked files. rustybin.yamlhas atest_schedules:section (empty when there are none).- The management MCP server has 125 tools for an admin; full rights without the
harness tools no longer fit one
tools/listpage (see tool limits).
New:
- A history of saved-test runs: every run of the saved tests
(console, CLI, API, management MCP) is kept with its trigger, the caller (never a
credential), each test's result and what changed since the previous run (newly
failing, newly passing); the last 200 for 30 days in
<state>/test-runs/(50 in memory without a state directory), never a variable's value.POST /_rustybin/tests/runanswersrun_idandchange;GET,DELETE /_rustybin/tests/runs,GET /_rustybin/tests/runs/{id}(?format=junit);rustybin tests runs | run-show | runs-clear; the toolslist_test_runs,get_test_run,clear_test_runs; the console's Saved tests view has a History card. A test can no longer be namedruns. - Saved tests on a schedule, with a failure notice: a schedule
runs saved tests (every one,
namesor aprefix)every5m to 24h orata time of day (UTC), without anyone at the console; each run is in the history asschedule:<name>. A run never overlaps another run of the saved tests, and one due while the harness sends load is skipped and counted. A failing run posts one JSON notice to the schedule'swebhook(and a recovery one more withnotify_recovery) under the new egress purposenotify, which has no default; a refusal is reported in the status and never retried, a failed delivery is tried 4 times. The secretnotify.webhook_token(RUSTYBIN_NOTIFY_WEBHOOK_TOKEN) is its bearer token,notify.base_url(RUSTYBIN_NOTIFY_BASE_URL) makes its link absolute. At most 20 schedules.GET,POST /_rustybin/tests/schedules,GET,PUT,DELETE /_rustybin/tests/schedules/{name},POST /_rustybin/tests/schedules/{name}/run;rustybin tests schedules | schedule-show | schedule-save | schedule-run | schedule-delete; the toolslist_test_schedules,save_test_schedule,delete_test_schedule,run_test_schedule; a Schedules card on the console's Saved tests view;test_schedules:inrustybin.yaml(a pulled document cannot name a new webhook). A test can no longer be namedschedules. - Two more gateway scenarios:
circuit_breaker(the gateway stops forwarding to a failing upstream, then lets a trial through after the half-open time you give ashalf_open_ms) andrequest_size_limit(a body over thesize_limityou give is answered413and never reaches the upstream). Every scenario lists its test parameters with their bounds underparameters; the console shows a field for each, the CLI adds--half-open-msand--size-limit. - CORS and header transformation gateway scenarios:
cors(preflights from theallowed_originandrefused_originyou give, then aGET: the allowed preflight is answered with CORS by the gateway, or by the upstream withupstream_cors: true, the refused one gets none) andheader_transformation(the request header the gateway adds reaches the upstream, the one it removes does not, the response header it adds is on the answer). Test parameters now also take origins, header names and booleans; the CLI adds a flag for each (--allowed-origin,--upstream-cors,--add-request-headerand the rest), and an unknown parameter is refused with the list. Acorsrun's mock gets no CORS from the instance itself. - Checkpoints in the configuration repository:
POST /_rustybin/git/committakescheckpointsand writes those checkpoints to<git.path>/checkpoints/<name>.jsonnext torustybin.yaml(only a commit that names one: the automatic mode never writes one, and no commit stages anything else in that directory). A pull answers the repository's checkpoints by name;GET /_rustybin/checkpoints?from=gitlists them with what each holds, andPOST /_rustybin/checkpoints/{name}/restore?from=git(withdry_run) restores one. A checkpoint from the repository is untrusted: size-checked before it is read (16 MiB), parsed and held to a local checkpoint's caps, compiled on the compile pool.rustybin git commit --checkpoint NAME,rustybin checkpoint list --from-git,rustybin checkpoint restore NAME --from-git;git_commitgainscheckpoints,restore_checkpointgainsfrom, the new toollist_repository_checkpoints; the console's Checkpoints view gets an "In the repository" card and the Source control commit card a checkpoint choice. - A compare view for a stale edit: an edit the console makes from a revision someone
changed since (the
409 rustybin_stale_revision) opens a compare dialog: per section (spec, responses, security, MCP, each operation) what the other change did beside the refused edit; Keep mine sends it again on the current revision, Take theirs reloads. The newGET /_rustybin/mocks/{name}/revisions/{revision}(theget_mock_revisiontool,rustybin mocks revision NAME N) answers a kept revision's spec and settings and what the draft changed since; the store now also keeps the drafts replaced before they were deployed (as many as deployed revisions), so the409'schangednames the sections for an undeployed base too.
Also:
- Every tool on one page:
?page_size=200on the management MCP URL (it was accepted before) now also works with OAuth sign-in, whose resource check ignores the query. The new Connect your coding agent page uses it for the clients that read only the firsttools/listpage (Cursor, Gemini CLI, Zed). rustybin mock push | list | ...sendsRUSTYBIN_TOKENandRUSTYBIN_ADMIN_TOKENto a--serveronly when it isRUSTYBIN_SERVERor loopback, follows no redirects and warns on plain http, as the other commands do since 0.3.1.POST /_rustybin/mocks/applycompiles on the compile pool.- The
rustybin.yamlschema allows response statuses from 200, as the validation does. - Release binaries for Linux and macOS on every GitHub release; the CLI guide says how to install. The docs site has its favicon, and page-view analytics when the site is configured for them.
cargo version 0.4.0, the tag v0.4.0, the signed multi-arch image
ghcr.io/coldbathcode/rustybin:0.4.0, digest
sha256:db4d1493d6121556d456463a5027530cc91e1a30c351427d8e182ecefeb1ea5e (verify it with the
cosign command of the quick start; the
release carries the same
values, and the Linux and macOS binaries).
0.3.1 (2026-11-02): the 0.3 review
A full review of 0.3.0 by eight reviewers, 89 findings, all fixed in eight steps (the plan); the threat model says what each kind of caller can do now.
Behaviour changes (what an operator or a script may notice):
- Sign in again after the upgrade. The console and OAuth signing key is a random
per-instance key in
<state>/control-oauth.key(per process without a state directory) unlessRUSTYBIN_CONTROL_OAUTH_KEYis set; it is never derived from the admin token. Sign-in and OAuth tokens issued before the upgrade stop working once (agents too). Replicas that shared sessions through a shared admin token setRUSTYBIN_CONTROL_OAUTH_KEYor share the state directory. An admin token shorter than 24 characters warns at startup. - Control-plane CORS.
/_rustybin/*(the sign-in and OAuth endpoints included) answers cross-origin only to origins named inRUSTYBIN_CORS_ORIGINS;*covers the data plane only. A browser app on another origin that calls the control API lists its origin. - The sign-in changes only with the password. In password mode
console.userandconsole.password_hashchange only with the current password (PUT /_rustybin/password, orcurrent_passwordinPATCH /_rustybin/settings) or the admin token itself; the management MCP andrustybin.yamlno longer change them, and every change signs every session out. - Saved tests are admin-only to read (
GET /_rustybin/tests*,list_tests), a secret-looking header or query value must be a{{variable}}(a literal is refused), captured JSON and form bodies lose their secret fields to variables, and a binary capture cannot be saved. One run at a time (409);run_testsasks before replaying aPOST,PUT,PATCHorDELETE. A save or delete the file refuses answers500and changes nothing. - 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 a mock its document names but could not read (a pulled entry with a typo included). The harness and registry sections prune only what the document does not name at all.
- A document from git cannot repoint outbound requests:
egress.allow,egress.allow_loopback,assist.provider,assist.base_urlandproxy.client_ip_headerwith a different value are reported and kept, a test cannot name a new gateway, andsecret:storedin a harness scenario fills a saved value only for the same targets. A pull's preview and apply read the same commit. - Compiles count for every caller without admin rights (30 a minute per visit, key
or address, whatever the session header), duplicates, AI previews and generated
examples included; config applies run on the compile pool (
503withRetry-Afterwhen it stays busy). - Deploys can name their revision:
POST /_rustybin/mocks/{name}/deploytakesIf-Matchorexpected_revision(409when the draft moved on;deploy_mock.expected_revision,rustybin mocks deploy --expect-revision), andPATCHwithdeploy: truepublishes exactly the revision it wrote. Revision numbers start from the clock, so they keep growing across restarts (they are large numbers). - Agents see less third-party text in summaries: traffic rows carry
untrusted_path,untrusted_query,untrusted_methodanduntrusted_validation,diagnose_instancemoves quoted messages tountrusted_message, andlist_mcp_check_runsanswersuntrusted_report. MCP inspector targets never show their query string. - Without admin rights the MCP relay, check runs and
mcp_callsend only read-only methods to servers on other hosts (notools/call). The inspector runs at most two check suites and 16 relay calls at once (503). - Agents cannot lift their own limits (rights, restore, end sessions of their own
credential);
update_settingsasks to confirm changes toegress.*,agents.*,console.*andgit.*; AI assist caps of token callers follow the credential, notX-Rustybin-Session. - Statuses are 200 to 599: a requested (
Prefer: code=,X-Rustybin-Mock-Status) or configured mock status outside that range is refused. - Public mode:
Set-Cookiethrough/response-headersand a cookie_domainare refused (400); at most 20 bins per address; public A2A sink ids are at least 16 characters and keep 10 notifications; dynamic client registrations, registry token mints and portal catalogue renders are rate limited (429or503withRetry-After); a full token denylist refuses new revocations (503) rather than forgetting old ones. - The CLI follows no redirects, sends
RUSTYBIN_TOKENandRUSTYBIN_ADMIN_TOKENto--urlonly when it isRUSTYBIN_URLor loopback, warns on plain http to another host, and reads a secret test variable with--var NAME=-(stdin) orNAME=@file. - Gateway scenario run ids are 96 bits, a check cannot be skewed by forged sessions,
and the credential-injection key is shown to admin callers only (
key_hidden).
Hardening (no change for a well-behaved caller):
- Listeners: a request head must arrive within 30 seconds, at most 16,384 connections at once; WebSocket sends and gRPC streams are bounded in time.
- Budgets: schema generation (
minLength, exclusive bounds, unique items),$refinlining (20,000 nodes),allOfwalks, the regex cache (128 patterns, 256 KiB), rerank queries, completion stream pacing, A2A message and task bytes, captures (16 KiB of headers, 4 KiB a field, a 64 MiB ring). - Locks and files: checkpoint restores one at a time under the edit lock, each mock
swapped in whole; mock, visit and saved-test files written off the async workers with
the latest change winning;
apply_keepingone locked edit per mock; session saves under one writer lock. - Git: blobs are sized before they are read; an ssh user name cannot be an option.
- Harness: a member cannot depose the leader, a kill during preparation prevents the start, node calls never reach forbidden addresses, run ids are safe file names, one in-flight slot per request.
168.63.129.16is never an egress target; logs escape control characters in user names and targets; in-process tool requests carry the caller's address, not127.0.0.1; cookie arguments of a mock's MCP tools are percent-encoded.- Console: the console token never fills the MCP inspector's auth form, edits and deploys name the revision they were made from, OAuth popups have no opener, sign-out clears the tab's data, consent redirects refuse script schemes.
- The image workflow keeps
lateston main's newest build.
cargo version 0.3.1, the tag v0.3.1, the signed multi-arch image
ghcr.io/coldbathcode/rustybin:0.3.1, digest
sha256:079a0a8a6808db5cdc72e43c59c5f3d7bae7ebe1ae26823d2036209427bd6601 (verify it with the
cosign command of the quick start; the
release carries the same
values, and the Linux and macOS binaries).
0.3.0 (2026-11-02): reliability and testing workflows
The correctness work the hardening review queued, then the workflows that turn an
instance into a test bench for a gateway, in ten steps
(the plan).
Every capability is on the API, the console, the CLI, the management MCP and
rustybin.yaml (or says why not).
New
- Diagnostics:
GET /_rustybin/diagnostics,rustybin doctor(exit1on a failed check),diagnose_instance, Management, Diagnostics. Each check (the state directory, the secrets key, unreadable secrets, the settings document, load errors, the config file, listeners, outbound refusals, source control, the default password, the harness engine, AI assist) says what it saw and the fix. - Gateway scenarios: retries, rate limiting, credential
injection, timeouts and caching. A run prepares the upstream, gives the steps for the
gateway, sends test traffic through it (egress purpose
scenario) and compares what the client got with what reached the upstream; ending it removes only what it created. - Saved tests: a captured request (Save as test in Live traffic)
or a written one with assertions (status, a header, the body, a JSON value, the time),
run in process or through a gateway (egress purpose
replay), as JSON or JUnit, and exported as Hurl for CI. Credentials become{{variables}}, never values. Inrustybin.yamlastests:. - Checkpoints: save the instance's API mocks (with their data) and the health toggle, restore them before a run (with a dry run), never touching visitors' mocks, settings or secrets.
- Edit conflicts: a mock edit may name the
draft revision it was made from (
If-Matchorexpected_revision, theETagof the mock); a stale one answers409with what changed. The console, the CLI and agents always send one;mocks.require_revisionmakes it mandatory (428). - The AI job fields offer the provider's models to pick from.
Behaviour changes (what an operator or a script may notice):
- An apply never deletes what its document names but cannot load. A mock whose spec fails to read, parse or compile is a problem and keeps its last good revision, in the apply and in its dry run alike (it was pruned before).
- A dry run validates like the apply: settings, secrets, mocks (compiled), portal items and harness scenarios a dry run accepts are the ones the apply accepts.
- Git documents and specs are read whole: a spec over 8 KiB pulled from a repository was cut before; specs now go up to the instance's spec limit, and a larger one 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.
tools/listof the management server pages at 100 tools, and the server now has more: clients follownextCursor(MCP clients do). New tools come after the existing ones.- The
rustybin.yamlexport has atests:section (empty when there are none).
cargo version 0.3.0, the tag v0.3.0, the signed multi-arch image
ghcr.io/coldbathcode/rustybin:0.3.0, digest
sha256:471f176542e10e4012b7f05f972985704f22e927bef287ceec97136bb2c5ac6f (verify it with the
cosign command of the quick start; the
release carries the same
values).
0.2.2 (2026-11-02): the hardening release
No new features. A full code review of 0.2.1 found what a public instance exposes; every finding is fixed, in ten steps (the plan). The threat model says what each kind of caller can and cannot do now.
Behaviour changes (what an operator or a script may notice):
- The console sends its control token only on its own control calls. It is opt-in
per call, never inferred from a URL: a URL from an MCP server, a discovery document or
an AI answer does not receive it. An AI
run_requestaction is refused for/_rustybin,/uiand/portal. - A saved MCP connection's credentials go only to its own target, and using a
connection that holds credentials needs admin rights (
400connection_target_mismatch,403connection_needs_admin). The inspector, the relay and the checks no longer target the management server (/_rustybin/mcp); the console still connects to it from the browser. - An AI agent's revocation and the operator's limits follow its credential, not the
client name it sends: another name on the same token is refused or limited too.
list_registry_serversanswers its entries underuntrusted_entries, paged. - Sign-outs survive a restart. With a state directory the token generation and every
revocation live in
<state>/sessions.json; without one a restart signs every token out. A sign out everywhere or a password change also ends the management server's OAuth tokens. - The proxy header trusted for the client address is a setting,
proxy.client_ip_header(RUSTYBIN_TRUST_FORWARD_HEADER): name your proxy's header;anykeeps the old order. Anip:value ofX-Rustybin-Sessionis ignored. A control JWT without the admin scope is never admin, also without an admin token. - Request bins answer inert content: HTML, scripts and SVG as
text/plain, no cookies or security headers of their own, a sandbox CSP andnosniff. - A document pulled from git is not expanded from the environment. A secret takes
only
${VAR}naming its own variable,secret:storedornull(a literal value is refused); a mock'sspec:file must be inside the repository; diffs never show secret values; pruning never removes the console's password hash.RUSTYBIN_CONFIG_FILEkeeps expanding as before. - Saved harness scenarios export their API keys and OAuth client secrets as
secret:stored, answer them redacted, and are sealed at rest. - The demo identity provider on a public instance sends demo clients on only to loopback or its own host (a page with the link otherwise), limits failed sign-ins per address, and exchanges only its own RS256 tokens (the HS256 sample is refused).
- Outbound connections never use a system proxy (
HTTP_PROXYand friends are ignored), and a*.domainallowlist entry no longer reaches private addresses without a network entry. - New limits: spec compiles four at a time (
503when busy, 30 a minute for a visitor), generated values at 1 MiB, path templates at 32 parameters, server URLs at 2 KiB, gRPC messages and client streams atRUSTYBIN_BODY_LIMIT, sign-in hashes four at a time, OAuth sign-in requests 10 a minute per address.aiis a reserved mock name.mcp save-connection --secrettakesname=-orname=@file, never a value. assist.provideracceptsclaude,googleandopenai-compatibleagain.
Fixes and additions by step:
- AI model catalogue (step 01):
GET,POST /_rustybin/assist/modelsand a model per AI job (assist.job.<task>) on every surface, with a Models and jobs card in the console. - Hostile specs and queries (step 02): no single request can abort the process or hold a worker (see the limits above); the regex cache is an LRU with each revision's patterns pinned.
- MCP (step 03), the console (step 04), sign-in (step 05): as above; the API reference pages pin their script with Subresource Integrity and run sandboxed.
- Egress and git (step 06): every client resolves the pinned name only, so a name in another form cannot re-resolve (a DNS rebinding path the review confirmed); NAT64, 6to4 and IPv4-compatible addresses are checked as their IPv4 destination; git is pinned, follows no redirect, runs with a cleared environment.
- Configuration and persistence (step 07): symbolic links in the working copy are refused; mock saves are ordered and written privately.
- Public data plane (step 08) and the harness (step 09): one run at a time under parallel starts and a kill during verification, elections only from eligible nodes, rate caps that hold under live multipliers, no engine panic on absurd answers.
- Dependencies (step 10):
tokio,anyhowandrandpatched;serde_yamlreplaced by its maintained fork (serde_norway, the output pinned byte for byte);rustls-pemfiledropped;tonic0.13 andaxum-server0.8, so oneaxum.
cargo version 0.2.2, the tag v0.2.2, the signed multi-arch image
ghcr.io/coldbathcode/rustybin:0.2.2, digest
sha256:1fe578b7f45b34f61e9e4bd3944abe7b399001a42ac6f5ae5f0cd1681dddc9ad (verify it with the
cosign command of the quick start; the
release carries the same
values).
0.2.1 (2026-10-30): the dev portal in the container image
- Fix: the published 0.2.0 image served no dev portal.
/portalanswered "portal assets are not embedded in this build": the Dockerfile copiedui/into the build context but notui-portal/, so the portal SPA was embedded empty (acargo buildfrom a checkout was fine). The Dockerfile copiesui-portal/now, and the image smoke tests of CI and the publish workflow start the container withRUSTYBIN_PORTAL=onand require/portal/to answer the page. - Fix: OpenAI's reasoning models answered empty or cut off. GPT-5 and the o-series
spend output tokens thinking before they write, and the key test gave them 16; the
describe task could end mid-JSON and report a schema problem. Requests to those models
now carry
reasoning_effort: low, a stream that ends withfinish_reason: lengthis reported as "the model hit its output token limit" instead of a truncated answer, and the key test allows 256 output tokens.
0.2.0 (2026-10-30): the AI-assisted mocking service
Rustybin becomes 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. Built
in twelve steps (the plan), each listed below.
Changed default: the console and the control plane now ask for a user name and
password. RUSTYBIN_CONTROL_AUTH is password when unset: rustybin / rustybin
until changed (RUSTYBIN_CONSOLE_PASSWORD, or Management, Sign-in). Instances that
relied on an open control plane set RUSTYBIN_CONTROL_AUTH=open; token and jwt
are unchanged; a public instance refuses to start with the default password. Every
other change is additive: a 0.1 rustybin.yaml still loads, every 0.1 route and
variable keeps its meaning.
- Your own OIDC users.
RUSTYBIN_OIDC_USERS_FILEreplaces the built-in provider's demo users with users of your own (PBKDF2-HMAC-SHA256 password hashes from the newrustybin oidc-hash-password), so the provider can guard something real; the login page stops listing the demo passwords. An invalid file stops the server. - Foundations (step 01). One state directory,
RUSTYBIN_STATE_DIR: settings, the secrets key, and the defaults of the mocks and harness state directories. Instance settings atGET,PATCH /_rustybin/settingsandDELETE /_rustybin/settings/{key}(admin): dotted keys with a schema, seeded by their environment variables and overridden by what is saved;RUSTYBIN_SETTINGS_LOCKmakes the environment authoritative. Secrets sealed at rest with ChaCha20-Poly1305 (RUSTYBIN_SECRETS_KEYor a generatedsecrets.key), returned only as{set, hint}, audited without values. One egress policy for every outbound call (src/egress.rs):RUSTYBIN_EGRESS_ALLOWandRUSTYBIN_EGRESS_ALLOW_LOOPBACKplus a rule per feature, pinned addresses, always-refused ranges,GET /_rustybin/egresswith the last 100 decisions; A2A push notifications, the leads webhook and the key registry URL now resolve through it (their variables and semantics are unchanged, except thatRUSTYBIN_A2A_PUSH_ALLOW_ALLno longer reaches link-local or cloud metadata addresses). The console title and back link are the settingsconsole.titleandconsole.backlink; the leads webhook token is the secretleads.webhook_token. The console's settings dialog is replaced by the Management view (the gear opens it): General (console settings, this browser, the agent panel) and Network (the policy, each feature's rule, the decisions, the leads token), with forms generated from the settings schema. - Console sign-in with a user name and password (step 02). Changed default:
RUSTYBIN_CONTROL_AUTHispasswordwhen unset (jwtin hosted mode,openin shared mode): the control plane and the console ask forrustybin/rustybin(RUSTYBIN_CONSOLE_USER,RUSTYBIN_CONSOLE_PASSWORDor an argon2idRUSTYBIN_CONSOLE_PASSWORD_HASH). Instances that relied on an open control plane setRUSTYBIN_CONTROL_AUTH=open(self-service instances must);tokenandjwtare unchanged.POST /_rustybin/login(never behind control auth) answers a 12 hour control token (HS256, the instance key, scopeadmin) that every control-plane route, the management MCP server and the admin guard accept;POST /_rustybin/logoutrevokes it;GET /_rustybin/sessionsays who a credential is;GET,DELETE /_rustybin/sessions,DELETE /_rustybin/sessions/{id}andPUT /_rustybin/password(admin, the current password required) manage sessions and the password, which is stored as the secretconsole.password_hash(the user name asconsole.user). Five failed attempts per address and minute, then429withRetry-After, doubling up to ten minutes; attempts are audited onrustybin::authwithout the password. With the default password the instance warns at startup,/_rustybin/statuscarriesdefault_password: trueand the console shows a banner; a public instance refuses to start. The console: a user name and password sign-in screen with Remember me (the token form stays under "Use a token instead"), the signed-in user and expiry in the top bar, and Management, Sign-in (change the user name and password, the sessions, Sign out everywhere). The docker image's CI smoke test signs in with the defaults. - AI assist: providers, keys, the assist bar (step 03). The console's AI features
run on the user's own provider and key:
RUSTYBIN_ASSIST_PROVIDER(anthropic,openai,gemini,compatible,mock),_MODEL,_FAST_MODEL,_BASE_URLand one_*_KEYper provider seed theassist.*settings (keys are secrets: sealed,{set, hint}, never in prompts, exports or captures). Every call is a task with a validated input, a system and user prompt, an optional output schema (the provider's native JSON mode, validated with the mocks' validator, repaired at most twice) and a deterministic mock answer:free_answer,explain,suggestthis step. RoutesGET /_rustybin/assist,POST /_rustybin/assist/run(SSE eventssent,delta,json,action,usage,error,done, or one JSON document),POST /_rustybin/assist/testandGET /_rustybin/assist/usage(admin). Egress under theassistpurpose (the provider's host once a key is set); capsRUSTYBIN_ASSIST_MAX_CALLS_PER_MINUTE(20, per caller,429) andRUSTYBIN_ASSIST_MAX_OUTPUT_TOKENS(8192); a redact pass refuses inputs that hold a stored secret or the admin token (422); usage per provider, model and task and the metricsrustybin_assist_calls_total,rustybin_assist_tokens_total. The console: the assist bar (Ctrl+K) with per-view suggestions, the drawer with streamed markdown, "What was sent", tokens and estimated cost, apply cards (open_view,copy,run_request), sparkles in the navigation, an Ask Rustybin card on the overview, Explain on a captured request, and Management, AI (curated models with prices, keys, Test the key, the built-in mock LLM, usage). New book page Bring your own AI. - AI mocks: specs from a prompt, examples, AI edit (step 04). Four tasks:
spec_from_description(an OpenAPI 3.1.0, 3.0.3 or Swagger 2.0 document from a description with auth, pagination and error style, parsed and run through the deploy checks),examples_for_operations(example payloads for the success responses that lack them, each validated against its schema, ten operations per call),edit_spec(the whole document after an instruction, with a bounded structural diff) andrequest_examples. Examples stored with a mock (operations.<id>.examples.<status>, sourceuser,aiorgenerated, at most 8 per status) are served where the spec has none and by name, by the REST routes and the mock's MCP tools alike. Every revision reports its example coverage: a banner on the detail page with Generate with AI and Use generated values (the deterministic generator, no key), ano_exampleswarning in the deploy report,check_mockandrustybin mock validate, the count inget_mock, andGET /_rustybin/mocks/{name}/coverage. RoutesPOST /_rustybin/mocks/ai/spec,POST /_rustybin/mocks/{name}/ai/examplesandPOST /_rustybin/mocks/{name}/ai/edit(SSE progress or one JSON document); visitors needRUSTYBIN_ASSIST_VISITORS. Console: the wizard's Describe it tab (first when a key is set), the coverage banner, the Generate examples dialog with a preview per operation, Edit with AI with a streamed diff and Apply as draft, stored examples in the operation editor, and the apply cardscreate_mock,edit_spec,generate_examplesfrom the assist bar. New book page Build mocks with AI. - MCP inspector for any server, every auth mode, test runs (step 05). The console's
MCP view is rebuilt in three columns (the server and connection, the protocol tabs,
the timeline with exports) and connects to any MCP server: this instance's servers
from the new
GET /_rustybin/mcp-servers(/mcpand its variants, the management server, every mock's server; a mock's MCP tab opens the inspector on it), saved connections, or any URL; over 2026-07-28, the 2025 session versions and legacy HTTP+SSE; with no auth, a bearer, an API key (header or query), basic, custom headers, or OAuth 2.1 (the discovery walk as a timeline of documents, dynamic registration, PKCE in a popup for any issuer, client credentials, refresh). The relay,POST /_rustybin/mcp-relay(SSE back, at most 64 sessions idle 10 minutes,DELETE /_rustybin/mcp-relay/{session}), makes the calls when the browser cannot: this instance's servers in process, other hosts under the egress purposemcp_relay(RUSTYBIN_EGRESS_ALLOW), andPOST /_rustybin/mcp-relay/fetchfetches discovery documents. Checks:POST /_rustybin/mcp-checksruns fourteen checks (connect, version, auth refusal, tool schemas, every tool called with generated or AI arguments, unknown tool and method, bad arguments, resources, prompts, ping, routing headers, the server stream, the session lifecycle) with latency, as JSON or JUnit; runs are saved (at most 50). Saved connections (/_rustybin/mcp-connections/{id}, admin, at most 50) keep their credentials sealed with the settings key and used only by the relay. Two assist tasks:tool_arguments(Generate arguments, validated against the schema) andsampling(answer a server'ssampling/createMessagewith your provider). New book page MCP inspector. - MCP registry: a mock registry and inspecting real ones (step 06). A mock MCP
registry at
/mcp-registryin the registry API's/v0.1shape (/v0answers the same):GET /v0.1/serverswithcursor,limit,search,updated_since,versionandinclude_deleted,GET .../servers/{serverName}/versions[/{version}],POST /v0.1/publishwith a token from theauth/*stubs (github-at,github-oidc,oidc,dns,http,none), the statusPATCHroutes,POST /v0.1/validate,health,ping,version. It lists every MCP server of the instance (io.rustybin/mcpand its variants,io.rustybin/manage,io.rustybin/mock-<name>per serving mock, remotes under the request's origin), the newregistry.serverssection ofrustybin.yamland published entries (at most 256 together).server.jsondocuments are validated against the vendored 2025-12-11 schema plus the registry's semantic checks. The settingregistry.scenario(RUSTYBIN_REGISTRY_SCENARIO) breaks it on purpose:empty,large(2000 synthetic entries),flaky(every third list503),slow(2 s),stale,invalid,auth_fail. Control plane:GET /_rustybin/registry,DELETE /_rustybin/registry/servers/{serverName}(admin),POST /_rustybin/registry/validateandGET /_rustybin/registry/browse, which fetches a real registry under the egress purposeregistry(registry.modelcontextprotocol.ioand the saved registries,registry.saved/RUSTYBIN_REGISTRY_SAVED), cached for a minute. The console's new MCP registry view (Mock registry, Browse a registry; Open in inspector hands a remote and its auth to the inspector), the assist taskserver_json("Write a server.json for my mock") and the explain kindserver_entry. Settings can now be a choice (a select in the console). New book page MCP registry. - Dev portal: publish and consume (step 07). A read-only portal at
/portal(a second SPA embedded like the console,ui-portal/) that shows only what was published: mock APIs (base URL, authentication with the demo credentials, every operation with Try it and curl, the full API reference, downloads in seven formats, the mock's MCP server), the mock MCP servers (tools, schemas,claude mcp addandmcpServerssnippets), the mock LLM (every provider with a sample and Try it), A2A agents, the HTTP tools and the mock MCP registry, with search and a "new this week" strip. Publish withPUT /_rustybin/portal/items/{id}(mock:<name>,mcp:<server>,llm,a2a:<agent>,tools,registry; title, Markdown summary, tags, contact, order, credentials),DELETEto unpublish,GET /_rustybin/portalfor every item and why a published one is hidden, or the newportal.itemssection ofrustybin.yaml. The portal readsGET /portal/api/catalog(published items only, ETag). Settingsportal.enabled(RUSTYBIN_PORTAL:auto, on once something is published),portal.auth(RUSTYBIN_PORTAL_AUTH:open,password,key),portal.base_url(RUSTYBIN_PORTAL_BASE_URL, a gateway URL for snippets and Try it), the branding (portal.title,portal.introin Markdown,portal.accent,portal.contact) andportal.visitors(RUSTYBIN_PORTAL_VISITORS: visitors publish their own mocks). Insights: views per day for 30 days, downloads by format and Try it calls per item, no visitor identifiers (GET /_rustybin/portal/insights); items and counts persist in<state>/portal.json. Console: Management, Portal (status, branding, items with bulk publish, insights, Preview), Publish to portal on a mock's page with Write with AI (the assist tasksummarise_for_portal), portal badges. Settings may be Markdown (a textarea)./portal/*is not captured, ignores fault headers and is exempt from the key layer. New book page Dev portal. - AI agents: who talks to the instance over MCP (step 08). Every client of the
management MCP server is an agent, named by its credential (admin token, console
sign-in, control JWT, OAuth client, API key, visit, or none) and its
clientInfoname: two clients on one token are two agents.GET /_rustybin/agentslists them (first and last seen, calls today and in total, sessions, status, rights),GET /_rustybin/agents/{id}adds calls per tool with their outcomes, the last 20 errors and the sessions,GET /_rustybin/agents/eventsstreams calls (SSE). Rights below what the credential allows: a ceiling (read-only,traffic,manage,full) and tool allow and deny lists, per agent (PATCH /_rustybin/agents/{id}), from the newagents:section ofrustybin.yaml(default_ceilingandrulesmatching the client name and credential kind) or the default (agents.default_ceiling,RUSTYBIN_AGENTS_DEFAULT_CEILING,full); a tool outside them is not listed and answers a tool error.POST /_rustybin/agents/{id}/revokerefuses the agent's calls, ends its sessions (403from then on) and revokes its console and OAuth tokens and an OAuth client's refresh tokens;/restoreundoes it;DELETE .../sessionsends sessions only. The admin token is never revoked per agent. Control JWTs with a revokedjtiare refused too. Rights, notes, revocations and totals persist in<state>/agents.json. Audit lines of the management server carry the agent id. Console: the AI agents view (the list, a detail panel with the rights form, tool chips, Revoke, Restore, End sessions, Explain what this agent did, the live feed, the defaults and rules) now holds Connect an agent, moved from Management, General. The stdio bridge registers as transportstdio. - The whole instance as code, and source control (step 09).
rustybin.yamlversion 2 holds the whole instance:instance(the console title and user),settings(stored, non-secret settings by key),secrets(references only:${VAR}from the environment,secret:storedfor what the instance holds), themocks,registry,portalandagentssections as before,harness(saved scenarios) andhealth; version 1 files still load.GET /_rustybin/config/export(YAML, JSON, or a.tar.gzbundle with the specs as files),POST /_rustybin/config/apply{document, prune, dry_run}answering the diff (mocks.orders: spec changed (2 operation(s) added)), each section's result and the problems,GET /_rustybin/config/schema. An absent section is left alone; withprunea present section is the whole truth.RUSTYBIN_CONFIG_FILEloads every section at startup and on reload. Source control (src/sourcecontrol.rs, thegit.*settings seeded byRUSTYBIN_CONFIG_GIT*): a working copy in<state>/repodriven by thegitbinary (now in the container image, withopenssh-client), a token throughGIT_ASKPASSor a generated ed25519 deploy key, the remote's host under the egress purposegit;GET /_rustybin/git(status, ahead and behind, the drift a commit would record, the timeline),POST /_rustybin/git/init,/commit,/push,/pull(fast-forward, then apply with a dry run),/resolve(a diverged branch: the instance's copy or the repository's, never a merge),GET,POST /_rustybin/git/key,GET /_rustybin/git/history;RUSTYBIN_CONFIG_GITclones and applies before serving (_REQUIREDmakes a failure fatal);git.autopushes every change or pulls at an interval. Console: Management, Export (the document, copy, download, bundle, the diff since the last export, apply with a dry run and an explicit prune) and Management, Source control (the repository form, status, connect, commit and push with Write the commit message, pull with the diff, resolve, the deploy key, history, the operations). The mock MCP registry's published entries are now part ofAppState(exported and pruned with the document). - The
rustybincommand line for remote instances (step 10).rustybin login --url <url>signs in with the console password (or keeps a token with--token) into a profile (profiles.jsonunderRUSTYBIN_CONFIG_HOME, else~/.config/rustybin, mode0600;RUSTYBIN_URLandRUSTYBIN_TOKENoverride,--profilepicks one), then nouns and verbs mirror the control API:status,whoami,logout,instance,settings,sessions,password,mocks(every mock verb, the AI ones included),visits,visit,requests,bins,agents,ai,mcp(servers, saved connections, checks with--junit, calls through the relay),registry,portal,config,git,harness(the remote verbs;validate,runandreportstay offline unless--remote),keys,egress,profiles,completion. Tables for people,--jsonfor scripts,--yesfor destructive verbs,--maxand--timeouton the tails; exit codes 0, 1 (refused or failed), 2 (usage), 3 (network or credentials). A parity test fails when a control route lands without a command; the referencedocs/src/cli.mdis generated from the command tree. - Management MCP parity and the build-an-instance prompts (step 11). Every
control route now has a management tool (or a resource, or a written reason), kept so
by a parity test over the catalogue: settings (
get_settings,update_settings, never secrets), the outbound policy (check_egresswith a dry check of a URL), AI assist (assist_status,assist_usage,test_assist,run_assist_taskfor the read tasks) and the AI-built mocks (generate_specwithcreate,generate_exampleswithapply,edit_spec_with_aiwithapply, each confirmed when it writes;get_mockandcheck_mockcarry the coverage), the MCP inspector (list_mcp_servers,mcp_callto any server with the handshake its transport needs,run_mcp_checks, the saved runs and connections), the mock registry (list_registry_servers,set_registry_scenario,browse_registry,validate_server_json,unpublish_registry_server), the dev portal (list_portal_items,publish_portal_itemconfirmed on an open portal,unpublish_portal_item,set_portal_branding,get_portal_insights), configuration as code at version 2 (export_config,diff_config,apply_config) and git (git_status,git_init,git_commit,git_pushconfirmed,git_pull,git_resolve,git_deploy_key), agents (list_agents,get_agent,set_agent_rights,revoke_agentconfirmed and never oneself,restore_agent,end_agent_sessions), sign-in sessions (list_sessions,end_session) andreload_mocks. Calls to another host, a browsed registry and the answers of MCP servers areuntrusted_*content; secrets are never tool inputs and never returned. Five new prompts walk the common jobs:build_instance(from a brief to a published, exported instance),publish_portal,backup_to_git,test_mcp_serverandonboard_agent;mock_an_apigains the describe path. New resourcesrustybin://harness.schema.json,rustybin://portal/catalogandrustybin://cli.md; the server instructions are rewritten around the jobs.rustybin mcp-stdiotakes--urland--profile, so a local agent manages a remote instance with the sign-in ofrustybin login. The REST handlers of the AI mock routes, the portal, the registry and the inspector share their logic with the tools (one code path each). The MCP conformance suite walksbuild_instancewith the Python SDK. - Docs sweep, conformance, release 0.2.0 (step 12). The book is reordered around
the jobs (Using Rustybin: the console, your own AI, AI-built mocks, the portal, the
instance as code, source control, the CLI, agents, the MCP inspector and registry,
load testing, recipes, exports), and every one of those pages ends with an "On every
surface" table: the same job from the API, the console, the CLI, the management MCP
and
rustybin.yaml, with its environment variables. The introduction, the README and the quick start tell the 0.2 story (describe, explore, manage, lock) and show the sign-in, the AI key, a described mock, the portal and the export in five commands. Every 0.2 route has a tested example (new: ending one sign-in session and an agent's sessions, the agents feed, the deploy key, connecting a repository through the settings and resolving a diverged branch, the registry's health, version, public validate, server-level status and/v0alias, the portal's API reference page). The MCP conformance runner opens the control plane of its first instance again (RUSTYBIN_CONTROL_AUTH=open, red in CI since the sign-in became the default) and generates examples on a mock that lacks them (a described spec has them everywhere). The console check covers every 0.2 view.cargoversion 0.2.0, the tagv0.2.0, the signed multi-arch imageghcr.io/coldbathcode/rustybin:0.2.0, digestsha256:002c7f164c78c06153b90dd5d8cb75b85ac8a72bb6696e038474a43fee42740e(verify it with the cosign command of the quick start; the release carries the same values for a platform's image verification).
0.1.0 (2026-10-29): the AI and agent gateway upgrade
A broad rework of Rustybin, from an httpbin-style echo service into an upstream for API, AI and agent gateway demos.
Foundation
- axum 0.8, a library plus a thin binary, a shared
AppState, and a middleware stack with request ids, CORS, a time-to-headers timeout, a request body limit and the request inspector. - The route catalogue as the single source of truth for the landing page, the eight collection exports, the README tables and the console's API explorer, with tests that keep routes, catalogue and OpenAPI in sync.
- Fault injection on every route (
X-Rustybin-Delay,X-Rustybin-Fail), sessions (X-Rustybin-Session), public mode, an admin token for global mutations, and a control plane under/_rustybin/. - Graceful shutdown; the HTTPS and gRPC listeners are optional; invalid settings warn instead of failing; bounded state everywhere.
New
- Mock LLM (
/ai/*): OpenAI (Chat Completions, Responses, completions, embeddings, moderations, images, audio), Azure OpenAI, Anthropic, Gemini, AWS Bedrock (with binary event streams), Ollama and Cohere, with modes, scripted rules, tool calls, structured output, deterministic tokens, native errors and rate-limit headers, latency and pace controls, credential checks and request inspection. - Guardrail mocks: Azure AI Content Safety, Bedrock ApplyGuardrail, generic check and PII redaction.
- MCP server: Streamable HTTP for 2026-07-28 and the 2025 handshake versions, legacy HTTP+SSE, OAuth 2.1 protected and API key variants, named servers.
- A2A agents: seven agents over A2A v1.0 and v0.3, JSON-RPC and HTTP+JSON, with streaming, multi-turn, auth-required and SSRF-safe push notifications.
- Identity provider: authorization code + PKCE with a login page, refresh token rotation, password, client credentials, token exchange, introspection, revocation, dynamic client registration.
- Real auth checks: JWT validation (HS256 and RS256), HMAC signatures (hmac-auth and draft-cavage, with digests), mTLS on the HTTPS listener or forwarded in a header, with a persisted demo CA.
- Request bins, generic SSE streams, webhook signing and verification (Standard Webhooks, GitHub and Stripe styles), compression (gzip, deflate, Brotli, zstd), ranges, data transfer helpers, generic JSON-RPC, GraphQL subscriptions and automatic persisted queries, gRPC reflection, health and gRPC-Web.
- The web console at
/ui. - OpenAPI mocks (
/mock/{name}): upload an OpenAPI 3.0 / 3.1 spec and get a named mock API answering with spec examples or deterministic data generated from the schemas (path parameters echoed), with rules, per-operation overrides, thePreferheader, request validation (warn or enforce), deploy checks with a report, drafts, rollback, an on/off switch, captured traffic, and mocked security from the spec (API key, basic, bearer, OAuth 2.0 / OpenID Connect scopes against the built-in identity provider, mTLS) or a fixed scheme, its secrets shown only to callers who may change the mock. Managed in the console, through/_rustybin/mocks*, fromrustybin.yaml(RUSTYBIN_CONFIG_FILE,--config, reload onSIGHUP, JSON Schema for editors) or a directory of specs (RUSTYBIN_MOCKS_DIR), and with therustybin mockCLI. Apetstoresample is built in (RUSTYBIN_MOCKS_SAMPLE). A reload never deletes mocks because of a broken file or entry (they keep their last good revision and show aload_error), enforced validation answers406for an unacceptableAccept, missing scopes get an RFC 6750insufficient_scopechallenge, and requests are counted inrustybin_mock_requests_total. - Self-service mocks for hosted demos (
RUSTYBIN_MOCKS_SELF_SERVICE, off by default): visitors of a public instance create and manage their own mocks through a manage token, on a time allowance (an hour, extendable to three, then an email address for up to six hours a day, delivered to a webhook), on a separate mocks domain, with responses that can never set cookies, redirect elsewhere or ship active content. Operators can list, end and pause visits. - Mock collections also export as a Bruno collection and an Insomnia export
(
GET /_rustybin/mocks/{name}/collections/bruno|insomnia,rustybin mock collection, the console and the management MCP'sexport_collection), in the same shapes as/export/bruno.jsonand/export/insomnia.json. - An MCP server for every OpenAPI mock at
/mock/{name}/_rustybin/mcp(and<name>.<domain>/_rustybin/mcpon the mocks host): one tool per operation, with flat arguments from the parameters and body, annotations from the method, an output schema from the default response, and the served spec as a resource. Each call runs through the mock (rules, examples, stateful data, mocked security with the MCP request's credentials, delays, captures marked as MCP), so tools return what the REST calls return; a status outside 2xx is a tool error. Settingsmcp.enabledandmcp.exclude; an "MCP server" tab in the console. - Management MCP server at
/_rustybin/mcp: configure a Rustybin from an AI agent such as Claude Code. Tools for the instance, OpenAPI mocks (create, edit, check, deploy, roll back, delete, collections,rustybin.yamlexport and apply), testing (try_requestin process on this instance only,issue_token,validate_payload,wait_for_requests), captured traffic, usage and self-service visits, plus three prompts and two resources. Protected by control-plane authentication;tools/listshows only what the caller may use; destructive tools ask for confirmation (elicitation, elseconfirm: true); captured traffic is returned only underuntrusted_*fields, truncated; changes are logged without arguments and counted inrustybin_manage_mcp_calls_total. The console shows theclaude mcp addcommand for the instance, andrustybin mcp-stdiobridges stdio-only clients. - OAuth sign-in to the management MCP server: where the control plane asks for
credentials, agents sign in through the browser instead of pasting a token. A
built-in authorization server (RFC 9728 and RFC 8414 metadata, dynamic client
registration, PKCE, refresh tokens) sends the browser to a consent page in the
console, which grants at most what the approver's own credential allows. Tokens
open
/_rustybin/mcponly.RUSTYBIN_CONTROL_OAUTH,RUSTYBIN_CONTROL_OAUTH_KEY, andRUSTYBIN_CONTROL_OAUTH_ISSUERfor an external authorization server. - Plan limits for hosted offerings (
RUSTYBIN_PLAN,RUSTYBIN_LIMIT_*,RUSTYBIN_USAGE_FILE): rate, concurrency, streams and daily or monthly request and egress quotas, per instance or per session, with IETF RateLimit headers on 429s andGET /_rustybin/usage. Off by default. - This documentation site, with every example tested in CI, and SDK conformance suites for the mock LLM, MCP, A2A and OAuth.
Operations and hosting
- The management MCP server no longer passes the caller's control credentials
into the requests its tools send to the data plane, and captures (inspector,
bins, mock traffic) store
X-Rustybin-Admin-TokenandX-Rustybin-Mock-Tokenas[redacted]. Mock traffic now redacts API keys like the inspector does. - A workflow publishes the image to
ghcr.io/coldbathcode/rustybinon pushes tomainand onv*tags. - Control-plane authentication (
RUSTYBIN_CONTROL_AUTH):token(admin token) orjwt(admin token or Ed25519 JWTs withaud,expand the scopesinspector,console,admin) for every/_rustybin/*route except the new readiness probe. The web console signs in with a token from the URL fragment or a sign-in screen and reads its live feed withfetchso the bearer header is sent.RUSTYBIN_HOSTED_MODE=truepresetsjwtand JSON logs. GET /_rustybin/ready: readiness, always 200 while serving, independent of the/healthdemo toggle, exempt from auth, plan limits and capture.GET /_rustybin/metrics: Prometheus metrics with bounded labels (route templates, status classes, protocols, mock LLM tokens by model family, injected faults, open streams, egress, build info).- More metrics:
rustybin_limit_rejections_total{dimension}(plan limiter 429s and gRPCRESOURCE_EXHAUSTED),rustybin_llm_requests_total{provider,model_family,streaming}andrustybin_llm_faults_total{provider,kind}(mock LLM faults by kind), and latency buckets from 1 ms to 60 s onrustybin_request_duration_secondsso p50 and p99 can be computed withhistogram_quantile(PromQL examples in the docs). RUSTYBIN_LOG_FORMAT=json: one JSON object per line with the request id.RUSTYBIN_GRPC_ON_HTTP=true: the gRPC services on the HTTP and HTTPS listeners (h2c and ALPNh2) for a TLS-terminating proxy.RUSTYBIN_CONSOLE_TITLEandRUSTYBIN_CONSOLE_BACKLINKin the console header./_rustybin/version,/_rustybin/statusand/_rustybin/usagereport the build commit (git_sha) and the control auth mode.- Shared mode (
RUSTYBIN_SHARED_MODE=true): one instance for many API keys (X-Rustybin-Keyor?rb_key=) from a registry file or URL, per-key limits and daily quotas (429rustybin_quota_exceededuntil 00:00 UTC), inspector and usage scoped by key, keys redacted in captures, readiness waiting for the registry, andGET /_rustybin/keys/usagefor collectors.RUSTYBIN_REQUIRE_KEY=truerequires a key on a normal instance. - Optional cargo feature
quota-postgres: replicas share daily quotas through PostgreSQL (RUSTYBIN_QUOTA_STORE), withrustybin_quota_store_upin the metrics. - Harness mode, single node (
RUSTYBIN_HARNESS=on, phase 1 of the harness plan): Rustybin as a load client with its own engine runtime, a dedicated scheduler thread, an in-flight cap from the descriptor limit and saturation detection, so a slow client is never read as a slow gateway. Scenarios (targets with weights, request templates with placeholders, open and closed load models,constantandramppatterns chained withthen, thresholds) are validated against the node's caps and one JSON Schema (GET /_rustybin/harness/schema) drives the API, the management MCP tools (validate_scenario,create_runwith confirmation,get_run_report,harness_stop) and the console's scenario builder. Targets must be inRUSTYBIN_HARNESS_TARGETSand are pinned to their resolved addresses; link-local, metadata and control-plane targets are always refused; optional target verification through/.well-known/rustybin-harness; a kill switch atPOST /_rustybin/harness/stop; theharnesscontrol scope. Reports as JSON, text and JUnit; headless runs at startup with exit codes;rustybin harness run | validate | report. - Harness correlation (phase 2): every harness request carries a signed marker
(
X-Rustybin-Harness), anX-Request-Idand atraceparent; a server layer records arrivals, processing time and what the gateway changed (headers added, removed, rewritten, bodies, paths), samples captures into the inspector and tags every answer (Server-Timing: rb,X-Rustybin-Served-By). The client classifies answers asupstream,gateway(by status) ortransport, countslostrequests after the run, and reports the gateway overhead and, in loop-through, one-way legs. Thresholdsgateway_overhead_p99_ms,lost,upstream_reach; the scenario'sserversblock drives the shaped upstream/harness/{*path}(log-normal latency, status mix, body size, chunked streaming) and inspector sampling;rustybin_harness_*metrics with a bounded run label. - Harness clusters (phase 3): a coordinator creates a cluster
(
POST /_rustybin/harness/clusters, orRUSTYBIN_HARNESS_CLUSTERwithRUSTYBIN_HARNESS_JOIN_TOKEN); client and server nodes join with the token (RUSTYBIN_HARNESS_JOIN,POST /_rustybin/harness/join) and heartbeat with a long poll, carrying cumulative stats and NTP-style clock stamps. Runs are submitted, then started once the quorum is there (scale.client_nodes,scale.server_nodes, the cluster'smin_nodes; headlessRUSTYBIN_HARNESS_START=on-quorum): the rate is split by declared capacity, virtual clients by disjoint ranges, the start is synchronised, and one report merges every node's exact histograms, withlostchecked against every server node. Leases stop a client that loses its leader. The server nodes are exported for the gateway's upstream pool (GET .../clusters/{id}/upstreams); members redirect controllers to the leader. MCP toolscreate_cluster,list_cluster_nodes,export_upstreams,start_run(andcluster_idon the run tools); a cluster card in the console. - Harness failover (phase 3b): nodes with
RUSTYBIN_HARNESS_CONTROL_URLare eligible to lead (RUSTYBIN_HARNESS_LEADER=prefermakes a standby). The leader replicates a versioned snapshot (members, runs with a checkpoint of their stats, secrets to eligible nodes only) and orders the live eligible nodes by work; when it goes silent for the election timeout (RUSTYBIN_HARNESS_ELECTION_TIMEOUT, 3 s), the first in line is elected by a majority of the eligible nodes and takes over within the lease, so clients never stop. Every message carries the term; an old leader steps down, a leader without a majority stops renewing leases (a minority partition stops sending). The new leader hands its own client share back and re-splits the share of silent clients once their lease expired, never sending more than planned; what an old leader's own part sent after its last checkpoint is reported asunreported.GET .../clusters/{id}/leaderon any member, vote and announcement node routes, the MCP toolget_leader, and the leader, term, history and succession in the console. - Harness patterns and live tuning (phase 4): layers run every pattern
(
constant,ramp,step,target,breakpoint,spike,pulse,burst,wave), chained withthen:, withjitterandsync: cluster | node; the scheduler follows the exact curve second by second and lands a burst within its window. Closed loops:targetonoverhead_p99_msmoves the rate toward the gateway overhead goal,breakpointstops at the first plateau that failsuntiland reports the last good rate.PATCH .../runs/{run}changes a running run (rate multiplier, pause and resume, hold, skip stage,seton any pattern field, add and remove layers), checked against the caps, logged, and carried in the cluster snapshot through a failover;GET .../runs/{run}/eventsis the run's feed (server-sent events). Reports gain the changes, the findings and every stage as it ran.POST /_rustybin/harness/previewreturns the expected curve; saved scenarios (PUTandDELETE /_rustybin/harness/scenarios/{name},RUSTYBIN_HARNESS_STATE_DIR) and six new built-ins.scale.client_nodes: autowaits for nodes and emitsscale_request, also POSTed to a signed controller hook (RUSTYBIN_HARNESS_SCALE_HOOK), withscale.scale_timeout;scale.connections_per_client. MCP toolslist_patterns,preview_scenario,save_scenario,update_run; in the console, a preview chart, saved scenarios, live run controls and the feed. - Harness rate-limit tests (phase 5): a layer's
expect(limitperwindow,perkey, ip, consumer, route or global, aburstallowance, the refusalstatus, anode_header) and thelimit_testpattern with ten tests:over_limit,window_edge(bursts around window boundaries on the wall clock),just_under,distributed(every client node at the same window start, over every target),many_keysandmany_ips(identity pools:{{id}},{{ip}}, rotating forwarded addresses from 198.18.0.0/15),retry_wave(refusals retried at once or afterRetry-After),concurrency,slow_riseandlimit_probe(a closed loop: a binary search for the effective limit), each with an optionalrecoverstage. The report'srate_limits: admission per window and in the worst window-long span, over- and under-admission, the first refusal, recovery, the measured window, identities and gateway nodes, the rate-limit headers (IETFRateLimitdrafts,X-RateLimit-*,Retry-After), upstream protection from the server side's arrivals by layer, collateral damage to the other layers, and findings; per-layerthresholds(rate_limited,over_admission,under_admission). Counted on every client node and merged by the leader. Built-insrate-limit,limit-probeandmany-ips; the analysis in the console's report and the MCP report summary. - Harness mock-driven traffic and identities (phase 6): a layer's source can be an
OpenAPI mock (
source: { mock: petstore }): every operation of its live revision, with generated parameters and bodies,operations(include, exclude, weights),invalid_fraction(requests that expect a 4xx),stateful(a create followed by a read of what it made) andbase_path. A layer'sidentities: API keys (listed or minted), JWTs minted by the node's built-in IdP (RS256 or the shared HS256 demo secret), OAuth client credentials against an allowlisted token endpoint (fetched before the run, cached, renewed), forwarded-address pools and source address binding. The report breaks the answers down by operation and by credential (labels without secrets) and says when invalid requests got through; listed keys and client secrets are redacted. Thepetstore-customersbuilt-in. - Harness faults and protocols (phase 7): a
faultsblock with presets (calm,jittery,flaky-upstream,retries,synchronised,churn,all) and the live changefaults. Client faults by fraction: connection churn, abandoned requests, slow bodies, malformed JSON, wrong content types, oversized headers, immediate (or synchronised) retries on 5xx, expired tokens, an HTTP/2 mix. Server faults on the run's marked requests: drops after the headers, stalls, flapping/health, and node churn (the server nodes down in turn, 503 with the connection closed). Protocol sources:llm(streamed chat completions timed token by token),sse,websocket(upgrade and masked frames on the pinned connections),grpc(unary echo over HTTP/2, judged bygrpc-status) andmcp(statelesstools/call). The report'sstreams(time to first token, inter-token latency, tokens per second, stalls), the injected faults by name,abandonedandunattributedcounts. Built-insllm-streaming,flaky-upstreamandjittery-clients. - Harness docs and conformance (phase 8, the last): the guide
Load testing through a gateway with tested examples for the control API
(status, schema, validate, preview, a run with a live change and its report in three
formats, saved scenarios, the cluster API on one node, the kill switch) and the CLI;
a compose cluster (
docs/examples/harness/cluster: a leader, a standby, two clients, two servers and a stand-in gateway, headless on quorum);conformance/harness/run.sh, which runs that cluster, kills the leader mid-run and asserts the standby's report; the harness tools, prompt and resource on the agent page. The harness plan is complete. Found by that run and fixed: a member that followed a new leader's announcement stood for election itself at once, and candidates that split the votes retried in lockstep; following a leader now defers the node's next stand, retries add a random wait, and refused votes are logged with their reason.
Changed
- Open redirects and other abuse-prone endpoints were removed or made safe
(
/redirect-toonly redirects to the same host). - Content negotiation serves JSON to browsers by default.
- The Docker image no longer generates certificates with OpenSSL at startup: Rustybin generates and persists its own demo PKI (the old script produced a CA that the server replaced, which broke mTLS and HTTPS verification in containers).
tests/smoke_test.shwas replaced by the documentation examples (docs/examples/run.sh), which need Hurl 8 (CI pins 8.0.1).- The Docker image runs as an unprivileged user (uid 10001) and supports a
read-only root filesystem;
docker-compose.ymlkeeps the demo PKI in a named volume, andfly.tomluses ports 8080 / 8443 and the readiness probe. - MCP
tools/list(and the other list methods) render their result once per server and protocol version instead of on every request: about 7x the throughput, same bytes on the wire. - Minimum supported Rust version is now 1.88 (was 1.86), to take security fixes in
ruzstd(zstd request bodies, RUSTSEC-2026-0344) andtime(used when parsing client certificates, RUSTSEC-2026-0009). - Security updates: rustls 0.23.46 (RUSTSEC-2026-0285, -0346, -0347, -0348, -0349),
rustls-webpki 0.103.15 (RUSTSEC-2026-0104), h2 0.4.20 (RUSTSEC-2026-0258) and
quick-xml 0.42 (RUSTSEC-2026-0194, -0195: memory exhaustion in the namespace reader
used by the SOAP endpoint). SOAP field values still decode
&, character references and the other predefined entities; unknown entities are a Sender fault. - CI runs
cargo auditon every push.
Fixed
From a full code review (2026-10-25):
- GraphQL: a query nested thousands of levels deep overflowed the parser's stack
and aborted the whole process. Queries nested more than 64 levels are refused before
parsing (
NESTING_LIMIT_EXCEEDED, WebSocket close 1008). - Credentials in captures:
Authorization: Bearerwith the admin token or a control JWT is captured as[redacted]; therb_keyquery is redacted in OpenAPI mock captures; AI request records redactX-Rustybin-Keyandrb_keyand, in shared mode, are scoped by key. - Console: the API explorer shows the console's own credentials masked; a valid token with a narrow scope signs in; the admin token is kept for the tab only.
- Shared mode console: a token bound to a key (
inspectorscope,rb_key) was sent back to the sign-in screen when an admin token was configured: the console'sGET /_rustybin/statusand every other route outside the key's reach answered401. The status now answers a key with the key's view, and a valid key gets403on the routes it may not use (401stays for a missing or invalid credential). The console's own data-plane requests send the token asX-Rustybin-Key-Token(it stands in for the key, redacted in captures), its traffic view no longer narrows a key's requests to the console session, the overview shows the key's view, and the API explorer may read the route catalogue. - MCP: tool scopes are checked inside JSON-RPC batches on
/mcp/protected; the legacy HTTP+SSE transport caps requests in flight per session. - Self-service: redirects that browsers read as off-domain (
/\host) are refused; a trailing-dotHostno longer reaches the console on the mocks domain; rotating a manage token can no longer drop the visit's mocks; every saved visitor mock loads after a restart; a visitor mock's spec answers only on the mocks domain. - OpenAPI mocks: odd path templates, multibyte response keys and huge integer
bounds no longer panic; validation,
minLengthand stateful collections are bounded. /statuswith weights whose sum overflows answers400; the Azure-shapedtext:analyzecaps blocklist names and repeated rows;/response-headerskeeps reflected values inert under anyContent-Type.- File-defined mocks load before the HTTP listener serves; JWT control auth warns when
the token audience would change on every restart;
/openapi.jsonis built once.