Sign-in and roles
Everyone signs in with an email and password. The first account made on a new instance is the
admin; nobody can sign themselves up after that. Admins add people in Settings › Members and
set a first password that they pass on themselves. Bullship emails nobody unless
BULLSHIP_SMTP_URL is set.
Each person has one of three roles, the same on every connection:
| Role | Can |
|---|---|
| Viewer | See queues, jobs, logs and settings |
| Operator | Also retry, promote and remove jobs, add jobs, change a job’s delay or priority, pause and resume queues, create alert rules, and run bulk actions |
| Admin | Also add and remove connections, manage alert destinations and redaction, change settings, and manage people |
The server checks the role on every request: reads need a viewer, any other change to a queue
needs an operator, and connections, alert destinations, settings and people need an admin. A
request above your role answers 403 and says which role it needs:
{"error":"This needs the operator role; you are a viewer."}In the app, actions your role can’t take stay visible but disabled, labeled with the role they need. Bullship always keeps one admin: the last one can’t be demoted or removed.
Passwords and sessions
Section titled “Passwords and sessions”- Anyone can change their own password from the menu under their name. That signs them out on their other devices.
- An admin can reset someone’s password in Settings › Members, which signs that person out everywhere.
- With
BULLSHIP_SMTP_URLandBULLSHIP_URLset, the sign-in page offers Forgot your password?. The emailed link works once, for 30 minutes, and using it signs the person out everywhere. - Sessions are cookies that last 7 days. Passwords are stored as scrypt hashes in
auth.db. - Sign-in is rate limited per client address. Behind a proxy, set
BULLSHIP_TRUSTED_PROXIESso it counts each person, not the proxy.
Activity
Section titled “Activity”Every change someone makes (job and queue actions, limits, alert rules, connections, people, tokens, and people’s own name and email) is recorded in Settings › Activity, for admins, for 90 days. Each entry keeps the person’s name with their account id and email, since a name is whatever they typed. Admins can’t sign in as someone else, so an entry is always the work of the person it names. Settings › Members shows when each person last used Bullship.
Turning sign-in off
Section titled “Turning sign-in off”BULLSHIP_AUTH has three values:
| Value | Who can do what |
|---|---|
true (default) |
Everyone signs in and has their role |
false |
No sign-in. Everyone who can open Bullship is an admin. For a Bullship behind a proxy that already signs people in, on a private network |
viewer |
No sign-in. Everyone is a viewer and nothing can be changed. See Read-only mode |
With sign-in off, the API and MCP need no token, like the app, and API tokens can’t be made.