How Signari keeps sign-in safe
What Signari checks on every request, how it keeps secrets, how it keeps organisations apart, and what it does not yet protect against. Each part links to the security model, which says the same in more detail.
Every request checked
A drawing of requests travelling into Signari from the left, each carrying a session or a token. As each one arrives, the PostgreSQL database under the engine is read. Requests that are still valid come out on the right and are answered. A revoked one is stopped before the engine and falls away.
Every request is checked against the database. Sessions and revocations are read from PostgreSQL on every request and never cached, so a revocation takes effect at once. Signari has no Redis for that reason.
Revoked means refused
After a session is ended, a token revoked, an application disabled or a person deactivated, Signari refuses them on the next request. Every session ends through one function, and a test fails any code that ends one another way.
Tokens an API checks itself
An API that checks a JWT access token on its own accepts it until it expires, five minutes by default. If an API must hear of a revocation at once, give its application opaque tokens, or have the API ask Signari by introspection.
Opaque access tokensRefresh tokens are used once
Each use replaces a refresh token with a new one. If a used one is presented again, every refresh token descended from the same grant is ended.
Secrets sealed under a key kept outside the database. The root key lives in an environment variable or a file, not in PostgreSQL. Without it the engine refuses to start, and with it lost, every sealed secret is lost too.
| What | How it is kept |
|---|---|
| Signing keys, directory passwords, other servers' client secrets and tokens, RADIUS shared secrets, SCIM tokens | Encrypted with AES-256-GCM under the root key |
| Authenticator-app seeds, and attributes declared personal | Encrypted under each person's own key, which is encrypted under the root key |
| Signari's client secrets, refresh tokens, opaque access tokens and one-time codes | Stored only as hashes |
| Passwords | Argon2id hashes, or PBKDF2 when built for FIPS 140-3 |
| Usernames, names, email addresses, other attributes and group memberships | Stored in the clear: a stolen database backup shows these, and none of the above |
Signing algorithms
ES256 by default, with RS256 keys also published for applications that need them. Other algorithms are there by choice, and symmetric ones are refused everywhere, which a test checks.
Rotation
A new key is published before it signs anything, so applications learn it in advance, and the old one stays published after it stops signing, so its tokens can still be checked. Automatic rotation is off until you set a period.
Key rotationKeys in a module
Signing keys can stay in a hardware security module, over PKCS#11, or in a Vault or OpenBao transit engine, so they never sit in the engine's memory.
Signing keys in a moduleOrganisations kept apart by the database. PostgreSQL's row-level security decides which organisation's rows a connection can see, as well as the code.
The console sees one
The console's database role reads views under row-level security, and sees only the organisation it names. It has no access to the engine's tables at all.
The engine names it every time
The engine has to find an application before it knows its organisation, so its queries name the organisation themselves. A test reads the engine's SQL and fails any lookup by name that does not.
Work across organisations
A separate role bypasses row-level security for work across organisations. It cannot sign in to the database, and is reached only from inside it.
An audit trail you can verify. Every administrative change is written to a hash chain, and the chain's newest entry is signed every hour by default.
Verify it
signari audit verify checks the whole chain, or the part since a checkpoint. Keep a signed head outside the database, and an entry edited or removed before it is detected.
Export and stream it
Export the trail to CSV, with the chain checked first, or stream it as it is written to a webhook or to syslog.
Audit exportGuessing is slowed without locking anyone out. Failed attempts are limited for each account and for each address, and an account is never locked.
Passwords
Thirty failed passwords every 15 minutes for each account, and twenty every 5 minutes from each address. A password imported from another system keeps its old hash until the person's first sign-in, which replaces it.
Password policySecond-factor codes
Five wrong authenticator codes pause it for five minutes, and ten wrong codes of any kind in 15 minutes slow the account. After a hundred in a row the factor is switched off, and the person is told.
ConfigurationRecovery
The recovery page answers the same way whether or not an account exists, and sends at most one link a minute and five an hour to an account.
Sign-in flowsThe sign-in pages
Served under a content security policy that starts from nothing and allows scripts only from Signari itself. Session cookies are Secure, HttpOnly and SameSite, and carry the __Host- prefix.
Outbound connections
Every call to an address that a request or a setting can name goes through one dialler, which refuses private addresses unless you name them.
Outbound connectionsThe Admin API
It listens on its own address and refuses plain HTTP unless you allow it. Each token names what it may change, and erasure or an ownership change can require a second administrator.
ApprovalsReleases you can check yourself. Each release is built twice and must match byte for byte before it is signed.
Rebuilt and signed
CI builds the release again from its tag on a GitHub runner and compares the two, then signs it with cosign. The signature and its provenance are recorded in Sigstore's public log.
A bill of materials
Each binary comes with a CycloneDX SBOM. A release is refused when govulncheck finds a vulnerability the code can reach.
The installer checks
It always checks the download against SHA256SUMS, and checks the signature when cosign is installed. When it could not, it says so.
What it does not protect against. Some threats are outside what Signari can stop on its own. Plan for these yourself.
| The limit | What to do |
|---|---|
| It has not been certified, and no independent security audit has been done | The reviews so far are the maintainer's own, against ASVS 5.0, the CWE Top 25, RFC 9700, FAPI 2.0 and NIST SP 800-63B. Read them with that in mind |
| Anyone who holds both the root key and the database can read every sealed secret | Keep them apart, as backing up and restoring describes |
| Whoever controls the machine running the engine can read keys from its memory | Keep signing keys in a hardware module or a transit engine |
| A PostgreSQL superuser ignores row-level security | Never run the engine as one. It does not need to |
| A phished password or one-time code works for whoever types it in | Use passkeys, which are bound to the sign-in address |
| It does not absorb a network-level flood | Put it behind infrastructure that does |
| Without a certificate, it serves plain HTTP and warns | Serve it over TLS, directly or through a proxy you control. signari doctor reports a plain-HTTP issuer as critical unless it is on localhost |
| Only Chrome has been tested | Firefox and Safari have not been tested yet |