Security
How Stater protects passwords, sessions, saved secrets, backups, offline tills and AI questions, and how to report a vulnerability.
On this page
Stater runs on servers you run, and its data lives in your own PostgreSQL database. Licences are checked offline: nothing calls home. This page gathers what the other pages say about keeping that data safe, with a link to the detail.
Passwords, sessions and tokens#
- Passwords and PINs: argon2id. Sessions and API tokens are random 256-bit values; only their SHA-256 is stored.
- Browser sessions are
HttpOnly,SameSite=Laxcookies; requests that change data must also carryX-Stater-Client, which a cross-site form cannot send. - API tokens carry a role (never more than their creator's), read or write access, an optional store and an expiry. Read-only tokens are refused on anything but GET.
- Wrong passwords and manager PINs are limited across every replica (sign-in per username and address, PINs to 5 wrong in 15 minutes per caller). Attempts from one caller are checked one at a time, so right answers sent in parallel never count against each other. CSV exports guard against formula injection.
See Architecture.
Signing in#
Staff sign in with a Stater password, or with their company account: Microsoft Entra ID, Google Workspace or another OpenID Connect provider (Business and up), or Active Directory and LDAP (Enterprise). LDAP connections are always LDAPS or StartTLS with a verified certificate, and OpenID Connect uses the authorisation code flow with PKCE; Stater keeps no tokens. An owner with a Stater password can always sign in, and Stater refuses to switch a directory on without one. See Directory sign-in.
Permissions and audit#
Permissions are checked on the server for every operation, and store scope is enforced: a person sees only their stores unless their role covers every store.
Every change runs in one transaction that also writes the ledger where there is one, the timeline of the records involved, the audit log (with the person or API token that made the change) and an event. If any of these fails, nothing is saved. Audit export is part of the Business plan and up (Plans and licences).
Saved passwords and tokens#
Every password, token and secret key an owner types into a connector screen, and the tokens accounting software hands back, is sealed with AES-256-GCM under a key that is never stored in the database. The API never returns one, and they never appear in the audit log, in events sent to webhooks or in the server log. A database backup holds the sealed passwords but not the key, so keep a copy of the key apart from your backups. Webhook signing secrets are not encrypted, because the receiving system holds the same secret. See Secrets.
Outbound connections#
Outbound connections that follow a setting someone typed go through one outbound connection guard: the dialled address is checked after DNS, link-local and cloud metadata are always refused, private and loopback only for a connector set to "On my own network" on a server that allows it (STATER_PRIVATE_CONNECTORS), redirects are not followed and HTTP_PROXY is ignored. See Private networks.
Backups#
Backups run inside Stater on a schedule, to a folder on the server and/or S3-compatible storage. With a backup key, or a key derived from STATER_SECRET_KEY, they are encrypted on the server before they are stored (AES-256-GCM in 64 KiB chunks, so damage, truncation and reordering are all detected) and the manifest is signed. Each backup is read back after it is made. Restore is command-line only, by design: nobody can download or replace the whole database from a browser. See Database and backups.
Offline tills#
Setting a till up gives its browser a random credential in an HttpOnly cookie that scripts on the page cannot read; Stater keeps only its SHA-256, and removing the till makes it useless at once. The till keeps names and expiry times only: no passwords, PINs, session tokens, customers, costs or stock figures. A lost or stolen till can be removed and everything it has not sent refused. See Offline counter.
AI assistant#
The assistant is off until an owner sets it up and confirms that questions, and the business data needed to answer them, are sent to the provider's host. Customer names and contact details are left out by default, nothing is sent until someone asks, and every question is in the audit log. Every lookup is read-only and runs as the person asking, and Stater limits what text inside a document or record can make the model do rather than trusting the model to ignore it. See AI assistant.
Security events#
Stater records security events (sign-ins, refused requests, admin changes, exports, licence and backup events, threat matches) on every plan, and can forward them to a SIEM (Business and up). Pay, cost, customer details, addresses and passwords are never sent, and names typed at failed sign-ins are hashed by default. Threat feeds over TAXII 2.1 (Enterprise) can monitor or block known-bad addresses. See SIEM and threat intelligence.
Signed releases#
Every release file is listed in SHA256SUMS, which is signed with cosign; the image and the Helm chart are signed too. Check them before installing: Linux packages, Docker Compose, Kubernetes.
Report a vulnerability#
Email [email protected] with the details and the version you tested.