Repository navigation
Rustybin 0.2.2: the hardening release
Rustybin 0.2.2 is the hardening release: no new features. A full code review of 0.2.1 looked at what a public instance exposes, and every finding is fixed, in ten steps. The threat model says what each kind of caller can and cannot do now.
Behaviour changes to check before you upgrade:
- Sign-outs survive a restart. With
RUSTYBIN_STATE_DIRthe token generation and every revocation are kept in<state>/sessions.json. Without a state directory a restart now signs every token out, so console users and scripts sign in again. - Saved MCP connections are bound to their target. A connection's credentials go only to its own target (
400 connection_target_mismatch), and using one that holds credentials needs admin rights (403 connection_needs_admin). The inspector no longer targets the management server (/_rustybin/mcp); the console still connects to it from the browser. - Agent limits follow the credential. A revocation or the operator's limits on one agent apply to every client name on the same token.
- Name your proxy's header. With
RUSTYBIN_TRUST_FORWARD, setRUSTYBIN_TRUST_FORWARD_HEADER(or theproxy.client_ip_headersetting) tofly,forwarded,x-forwarded-fororx-real-ip. The default,any, keeps the old order, which a client can spoof behind a proxy that does not set every header. - Documents pulled from git are not expanded from the environment. A secret takes only
${VAR}naming its own variable,secret:storedornull; literal values are refused, and a mock'sspec:file must be inside the repository.RUSTYBIN_CONFIG_FILEbehaves as before. - Request bins answer inert content. HTML, scripts and SVG come back as
text/plain, with no cookies, a sandbox CSP andnosniff. - On a public instance, the demo identity provider redirects demo clients only to loopback or its own host (otherwise a page with the link), and token exchange takes only its own RS256 tokens.
- Outbound connections ignore
HTTP_PROXYand the other system proxy variables. A*.domainallowlist entry no longer reaches private addresses unless a network entry covers them. - New limits. Spec compiles run four at a time (
503when busy, 30 a minute for a visitor), generated values are capped at 1 MiB, and gRPC messages are capped atRUSTYBIN_BODY_LIMIT.aiis now a reserved mock name. - CLI.
mcp save-connection --secrettakesname=-orname=@file, never the value on the command line.
Also in this release: an AI model per job with the provider's model list (GET, POST /_rustybin/assist/models), and dependency updates. cargo audit is clean apart from the documented rsa advisory. The full list, step by step, is in the changelog.
The image
ghcr.io/coldbathcode/rustybin:0.2.2
ghcr.io/coldbathcode/rustybin@sha256:1fe578b7f45b34f61e9e4bd3944abe7b399001a42ac6f5ae5f0cd1681dddc9ad
The image is multi-arch (linux/amd64, linux/arm64) and signed with cosign (keyless, using the publishing workflow's GitHub identity). Verify it before you run or deploy it, and pin deployments to the digest:
cosign verify ghcr.io/coldbathcode/rustybin@sha256:1fe578b7f45b34f61e9e4bd3944abe7b399001a42ac6f5ae5f0cd1681dddc9ad \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity-regexp '^https://github.com/coldbathcode/rustybin/'