Skip to Content
v1.41.2 · shipped More settings on the script tag · Script tag typos no longer slip through Read the changelog →
Security & complianceSign-in and roles

Sign-in and roles

This page lists the identity controls Mushi Mushi enforces on the server, and what each one means for your team. The decision record is ADR 0093.

Two-step sign-in

Anyone can add an authenticator app (1Password, Google Authenticator, Authy and others) in Settings → General → For every app → Two-step sign-in. After that, signing in asks for the 6-digit code.

An owner or admin can turn on Team → Setup → Sign-in rules → Require two-step sign-in. From then on:

  • The API refuses every console request from a session that has not passed the second step. The answer is 403 with code MFA_REQUIRED.
  • The console shows one dialog: enter the code, or set up the app first. Nothing else in the console works until then.
  • This holds for single sign-on users too. Mushi Mushi cannot see whether your identity provider asked for a second factor.

To change the rule you must be an owner or admin and signed in with two steps yourself. The card shows how many members have not set it up yet, so you can warn them first.

API keys are not sessions, so the rule does not apply to them. Only owners and admins can create keys, and in a team that requires two-step sign-in they must be signed in with two steps to do it.

Single sign-on on verified domains

A SAML provider routes sign-in only for email domains your team has proved it owns. See Single sign-on for the steps. In short:

  1. Add the domain. Mushi Mushi shows a TXT record: name _mushi-verification.<your domain>, value mushi-domain-verification=<token>.
  2. Add the record to your DNS and press Check.
  3. Only then is the domain sent to the sign-in service. People sign in from Sign in with SSO on the sign-in page.

A domain can be verified by one team only. Mushi Mushi checks every verified record again each day. If it is missing three days in a row, the domain stops routing sign-in until you check it again.

Mushi Mushi does not offer SCIM provisioning. Invite and remove people from Team. Removing someone in your identity provider does not remove them from Mushi Mushi.

Who can change setup

ChangeOwnerAdminMemberViewer
Project settingsyesyesnono
Prompt Lab (add, edit, activate, delete)yesyesnono
API keys (create, rotate, revoke)yesyesnono
Integrations, GitHub connect, Telegramyesyesnono
Single sign-on and its domainsyesyesnono
Team sign-in rulesyesyesnono
Read all of the aboveyesyesyesyes

A refused change answers 403 with code ROLE_REQUIRED and a sentence naming what was refused.

Slack buttons act as a person

A button in Slack (Dispatch fix, Resolve, Dismiss, Approve, Decline and the others) runs only for a Slack user linked to a Mushi member, and runs as that member:

  • Linking starts in Slack: an unlinked click answers, only to that person, with a one-time link that works once for 15 minutes. The member opens it while signed in to the console, sees which Slack user and workspace it names, and confirms. Mushi stores only a hash of the link.
  • A click is refused, and nothing runs, when the Slack user is not linked, the clicked workspace is not the one the app is connected to, the member is not on the app, or the member is a viewer.
  • Approve and Decline on a “Waiting for your OK” card record the member as the approver. Approving runs every merge check again, as that member.
  • Every action writes an audit row with the member’s account. Each person sees and removes their links in Settings → General → For every app → Slack buttons.

How agent commits are labelled

Commits made by a local agent (mushi work) carry their own identity:

  • Author: Mushi local agent (<agent>) <local-agent@mushi-mushi.invalid>. The person who runs the worker stays the committer, so their signing key still signs and they stay accountable.
  • Trailers: Mushi-Report: <report id>, Mushi-Agent: <agent>, and from the worker Mushi-Host: <hashed machine id> and Mushi-Lane: <lane id>. The host name never leaves your machine.

If your repository’s CLA check or author rules refuse an unknown address, set MUSHI_AGENT_AUTHOR=operator on the worker. You stay the author; the trailers stay.

Cloud fix agents commit as their vendor’s bot (for example the Cursor or GitHub App bot) and put Mushi report: <id> in the pull request.

Last updated on