Repository navigation
Rustybin 0.3.1
Rustybin 0.3.1 fixes all 89 findings of a full review of 0.3.0 by eight reviewers. It covers hostile input, credentials and third-party content, the console, the control plane, configuration and git, mocks and workflows, the harness, and the public demo modules. The threat model says what each kind of caller can and cannot do now.
Behaviour changes to check before you upgrade:
- Sign in again after the upgrade. The console and OAuth signing key is now a random per-instance key in
<state>/control-oauth.keyunlessRUSTYBIN_CONTROL_OAUTH_KEYis set. It is never derived from the admin token, so sign-in and OAuth tokens issued before the upgrade stop working once, agents' included. Replicas that shared sessions through a shared admin token needRUSTYBIN_CONTROL_OAUTH_KEYor a shared state directory. An admin token under 24 characters warns at startup. - Control-plane CORS.
/_rustybin/*, including the sign-in and OAuth endpoints, answers cross-origin requests only from origins listed inRUSTYBIN_CORS_ORIGINS.*now covers the data plane only. - The sign-in changes only with the password. In password mode,
console.userand the password hash change only with the current password (PUT /_rustybin/password, orcurrent_passwordinPATCH /_rustybin/settings) or the admin token. The management MCP andrustybin.yamlcan no longer change them. - Saved tests are admin-only to read. A secret-looking header or query value must be a
{{variable}}. One run at a time (409).run_testsasks before replaying a request that changes state. - A prune deletes only the instance's own mocks. Never a visitor's, an API key's or a running gateway scenario's, and never one its document names but could not read.
- A document pulled from git cannot repoint outbound requests. It cannot change the egress settings,
assist.provider,assist.base_urlorproxy.client_ip_header(a different value is reported and kept as it is). It also cannot point a saved test at a new gateway, or send a stored harness secret to new targets. - Compiles count for every caller without admin rights (30 a minute per visit, key or address). Config applies run on the compile pool (
503withRetry-Afterwhen it stays busy). - Deploys can name their revision. Use
If-Matchorexpected_revision(409when the draft moved on). Mock revision numbers now start from the clock, so they are large numbers. - Agents get third-party text under
untrusted_*fields. This covers traffic rows, diagnostics messages and saved check reports. Without admin rights, the MCP relay, check runs andmcp_callsend only read-only methods to servers on other hosts. - Mock statuses are 200 to 599.
- Public mode refuses
Set-Cookiethrough/response-headersand cookie_domain. It also caps bins at 20 per address and rate-limits client registrations, registry token mints and portal renders. - The CLI follows no redirects. It sends
RUSTYBIN_TOKENandRUSTYBIN_ADMIN_TOKENonly toRUSTYBIN_URLor a loopback--url.
Also hardened: listener timeouts and a connection cap, budgets for schemas, $ref inlining, regexes, captures, streams and A2A tasks, locked and off-runtime persistence, harness leadership and the kill switch. In the console, the inspector's auth form, stale edits, OAuth popups and sign-out. The full list is in the changelog.
The image
ghcr.io/coldbathcode/rustybin:0.3.1
ghcr.io/coldbathcode/rustybin@sha256:079a0a8a6808db5cdc72e43c59c5f3d7bae7ebe1ae26823d2036209427bd6601
The image is multi-arch (linux/amd64, linux/arm64) and signed with cosign (keyless, using the publishing workflow's GitHub identity). Verify it before you run or deploy it, and pin deployments to the digest:
cosign verify ghcr.io/coldbathcode/rustybin@sha256:079a0a8a6808db5cdc72e43c59c5f3d7bae7ebe1ae26823d2036209427bd6601 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity-regexp '^https://github.com/coldbathcode/rustybin/'