All docs

Running Fettledesk

Security

A checklist before going live, what Fettledesk protects for you, and what's still to come.

Before going live

  • Run it behind HTTPS. Use compose.prod.yaml (Caddy gets and renews a certificate), or your own proxy with TRUST_PROXY=true. See Install.
  • Set PUBLIC_URL to the exact https:// address people use. Cookies are then marked secure, and browsers are told to use HTTPS only.
  • Use a random POSTGRES_PASSWORD (install.sh makes one), and keep .env readable only by the account that runs Docker (chmod 600 .env).
  • Don't publish the database's port. The compose files don't; keep it that way.
  • Back up both volumes on a schedule, and test a restore. See Backups. If you set SECRET_KEY, keep a copy somewhere safe away from the server.
  • For email requests, use a mailbox only Fettledesk reads, and an app password or app registration rather than a person's own password.
  • Run the setup wizard soon after starting. It needs the setup code from the server's log, so nobody else can claim the first admin account. If you set SETUP_CODE, remove it from .env once setup is done.
  • Check People after setup: only the people you expect, with the roles you expect.
  • Keep the server, Docker and Fettledesk up to date.
  • Facing the internet? Use single sign-on, or require two-step sign-in for at least admins. See Sign-in and SSO.
  • If you turn AI on, start with admins only, and tell people to connect only apps they started themselves. See AI connections.

What Fettledesk does for you

AreaProtection
PasswordsHashed with Argon2id, at least 10 characters. Signing in takes the same time whether or not the email exists.
Sign-in abuseFive failed attempts for an email from one address in 15 minutes locks it out. Every signed-in session, token and address has its own rate limit.
Two-step sign-inCodes from any authenticator app, with ten one-time backup codes. Organisations can require it for admins or all staff. Wrong codes are limited per account as well as per address.
Single sign-onOpenID Connect (PKCE, nonce) and SAML (signed responses, one assertion, replay checks), each tied to the browser that started it. Accounts match by verified email, then by the provider's own id. Password sign-in can be kept for admins only or turned off, and open password sessions end when it is.
AI connectionsOff until an admin turns them on. An app acts as its person and no more, can't touch people or settings, and risky changes wait for that person to confirm. The page that connects an app names where it sends you back.
SessionsRandom tokens, stored only as hashes, in cookies scripts can't read. 14 days idle, 90 days at most. Deactivating someone or resetting their password signs them out everywhere.
Forged requestsEvery change must come from PUBLIC_URL, on top of same-site cookies.
Scripts in contentDescriptions and comments are stored as structured text, never HTML, and shown without running anything. A strict Content Security Policy allows scripts only from Fettledesk itself.
UploadsThe file type is decided by content, not name, from an allowlist (images, PDF, text, CSV, logs, office documents, zip). No SVG or HTML. Downloads are sandboxed.
Photo privacyPhotos lose their location and other camera details before they're stored.
AccessEvery request is checked against the person's organisation and project roles. Projects someone can't see answer "not found", so their keys don't leak.
CustomersCustomers reach only their own requests and their organisation's shared ones, never internal notes or the team's files. Self sign-up is off unless an admin lists allowed domains.
Email linksPassword reset and invitation links work once, are stored as hashes, and expire: an hour for resets, a week for invitations.
Stored secretsMailbox and mail server passwords, two-step secrets, AI provider keys and Jira tokens during an import are encrypted with AES-256-GCM, with a key kept outside the database, and never sent back to the browser. Personal tokens and backup codes are stored as hashes.
Email requestsOnly the reporter, watchers and staff can comment by email. Automatic replies, bounces and the mailbox's own address are ignored, so nothing loops.
Offline useNo calls to CDNs, font services, analytics or telemetry. The server only connects to what an admin sets up (mail servers, identity providers, an AI provider, Jira during an import), and once a day to desk.fettle.software to see whether a newer release is out, sending nothing about your install (UPDATE_CHECK=false turns it off).
Errors and logsPeople see a plain message and a reference; details stay in the server's log, with cookies, passwords and tokens removed.
AuditSign-ins, failed sign-ins, two-step and single sign-on changes, people and role changes, password resets, AI connections, imports and settings changes are recorded, and can't be edited from the app.
DeletingDeleted work, projects and assets can be restored for 30 days, then they and their files are removed for good.
The containerRuns as an unprivileged user, with no compiler or package manager inside.

Still to come

Account lifecycle from your directory (SCIM), a hook for virus scanning uploads, passkeys, built-in backups and data retention settings come after 1.0.

Some risks are accepted on purpose: admins choose the addresses Fettledesk connects out to (Jira, the AI provider), identity providers are trusted to say who someone is, email requests go by the sender's address (use a mail provider that rejects forged mail), and rate limits are kept in memory for the one container.

Reporting a vulnerability

Please don't open a public issue. Use Report a vulnerability on the Security tab of the GitHub repository: only the maintainer sees it. Include what you found, how to reproduce it, and which version you tested. You'll hear back within 3 working days.