Skip to content

Rustybin 0.5.0

Choose a tag to compare

@oliwynn oliwynn released this 03 Nov 20:34
· 92 commits to main since this release

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

New:

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

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

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

The full list, with each step's behaviour changes, is in the changelog.

Install

Release binaries for Linux and macOS (x86_64 and arm64) are attached below, each with a .sha256. Or cargo install --locked --git https://github.com/coldbathcode/rustybin --tag v0.5.0.

The image

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

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

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