Security
Before you expose it
Section titled “Before you expose it”- Create the admin account right after the first start. Until it exists, anyone who can open Bullship can create it.
- Keep the data directory on a named volume. A container that loses it loses its accounts,
and the next visitor could create the admin account again. The image’s own
VOLUME /datais anonymous and isn’t reused by a new container. - Serve it over HTTPS with
BULLSHIP_URLset to thehttps://address, so cookies areSecureand HSTS is on. - Set
BULLSHIP_TRUSTED_PROXIESbehind a proxy, so sign-in rate limits count each person. - Decide who may add connections.
BULLSHIP_CONNECTIONS_EDITABLE=falseorBULLSHIP_BLOCK_PRIVATE_ADDRESSES=true(see Connections). - Check Redaction against the fields your jobs carry.
With BULLSHIP_AUTH=false, everyone who reaches Bullship is an admin; use it only behind a proxy
that signs people in, on a private network.
Requests
Section titled “Requests”- The server checks the role on every request.
- Requests are capped at 1 MB (16 MB for editing a job’s data) before anything reads them.
- Writes must come from Bullship’s own page: the server refuses ones a browser sends from another site, and form or text bodies.
- Pages carry a Content-Security-Policy that forbids framing them,
X-Frame-Options: DENY,X-Content-Type-Options: nosniffandReferrer-Policy: no-referrer, plus HSTS whenBULLSHIP_URLishttps. - Sign-in is rate limited per client address, and sessions are cookies that last 7 days.
/api/healthanswers{"ok":true}to anyone and its details only to someone signed in.- Deleting in bulk asks for the queue’s name: drain and obliterate need
{"confirm":"<queue>"}in the request, which the app sends for you.
Host names
Section titled “Host names”Bullship answers only at host names it is meant to be reached at, so another site can’t point its own name at Bullship’s address and use it through a visitor’s browser (DNS rebinding). It answers at:
BULLSHIP_URL’s host, and those inBULLSHIP_ALLOWED_HOSTS;- IP addresses, and names without a dot, such as
localhostor a Docker service name; - names under
.localhost,.local,.internaland.home.arpa.
Any other name gets 421 and a line in the log saying what to set. Add your names to
BULLSHIP_ALLOWED_HOSTS, comma-separated, or set it to * to allow any. Requests from a proxy in
BULLSHIP_TRUSTED_PROXIES may name any host.
Your Redis
Section titled “Your Redis”- Job writes act only on jobs found in one of the queue’s states, never on the queue’s own keys.
- Job filters read a bounded number of jobs and bytes, and heavy reads run one at a time per
connection, so Redis stays responsive to your workers while people use Bullship. One person may
have 8 heavy reads waiting per connection; past that they get
429withRetry-After, so nobody’s views wait behind someone else’s flood. - Nothing over MCP deletes jobs or queues.
See What Bullship needs from Redis for the commands it uses and an ACL.
What is stored where
Section titled “What is stored where”- Accounts and sessions are in
auth.db(Better Auth on Node’s built-in SQLite); passwords are scrypt hashes, API tokens SHA-256 hashes. - Every file in the data directory is readable only by Bullship’s user (
0600), and Bullship warns when others can open the directory. - With
BULLSHIP_SECRET_KEY, saved connection URLs and alert destinations are encrypted with AES-256-GCM, under a key stretched with scrypt and a random per-install salt insecret-salt. Keep the key outside the data directory. - Every change people make is in Settings › Activity for 90 days, with the person’s name, account id and email. Admins can’t act as someone else.
- Bullship sends no telemetry.
Reporting a vulnerability
Section titled “Reporting a vulnerability”Please report vulnerabilities privately, not in public issues: open a private report on GitHub (Security › Report a vulnerability) with what you found, how to reproduce it, and the Bullship version (Settings › General shows it). If you can’t use GitHub, email security@bullship.app. You should hear back within three working days.
Only the newest release gets fixes. Bullship is 0.x, so upgrade to the newest release before reporting. Fixes are announced in the changelog once they’re out.