Skip to content

Security

  1. Create the admin account right after the first start. Until it exists, anyone who can open Bullship can create it.
  2. 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 /data is anonymous and isn’t reused by a new container.
  3. Serve it over HTTPS with BULLSHIP_URL set to the https:// address, so cookies are Secure and HSTS is on.
  4. Set BULLSHIP_TRUSTED_PROXIES behind a proxy, so sign-in rate limits count each person.
  5. Decide who may add connections. BULLSHIP_CONNECTIONS_EDITABLE=false or BULLSHIP_BLOCK_PRIVATE_ADDRESSES=true (see Connections).
  6. 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.

  • 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: nosniff and Referrer-Policy: no-referrer, plus HSTS when BULLSHIP_URL is https.
  • Sign-in is rate limited per client address, and sessions are cookies that last 7 days.
  • /api/health answers {"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.

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 in BULLSHIP_ALLOWED_HOSTS;
  • IP addresses, and names without a dot, such as localhost or a Docker service name;
  • names under .localhost, .local, .internal and .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.

  • 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 429 with Retry-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.

  • 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 in secret-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.

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.