Docs Version v0.2
Docs menu

Security

Security inventories

Changed 6 min readv0.2

On this page

Introduction

The OWASP Application Security Verification Standard (ASVS) 5.0 asks for several things to be written down in one place. They are which cryptography is in use, every way to authenticate, the session rules, what bounds a deployment's resources, and what data there is. This page is that list, with where each entry can be checked.

Nothing here is a new rule. Each entry was already true in the code, but scattered across reviews, so the OWASP ASVS review recorded each requirement as partial.

The page is for an auditor checking Signari against ASVS, and for an administrator who wants one page that says what Signari protects and how. Each section names the requirement it answers, such as V11.1. What is logged and every outbound connection are the two inventories the standard asks for by name.

Cryptography (V11.1)

Each row names a use, the cryptography it gets, and where to check it. The seed of a time-based one-time password (TOTP) is among the values sealed under the root key.

UseWhatWhere
Signing tokensES256 by default, RS256 always available. ES384, ES512, RS384, RS512, PS256, PS384, PS512 and EdDSA by choice. Symmetric algorithms are refused everywhere, by testengine/internal/keys/keys.go
RSA keysGenerated at 3,072 bits. A client's may be 2,048, FAPI 2.0's floorkeys.RSABits, clientauth.MinRSABits
Sealing what must be read back: private keys, bind passwords, TOTP seeds and the restAES-256-GCM with a random nonce, under SIGNARI_ROOT_KEY, which is never in the database it protectsengine/internal/keys/store.go
Deriving from the root keyHKDF-SHA-256engine/internal/keys/store.go
PasswordsArgon2id, with a floor and a calibrated cost. A hash brought in by an import is verified as it is, and upgraded to Argon2id at that person's first sign-inengine/internal/passwords/
Secrets only ever compared: tokens, codes, invitationsSHA-256, as they are long and random and a slow hash would buy nothingstore.HashToken
Session identifiers256 bits from the system's random sourcenewSID in engine/internal/httpapi/session.go
One-time passwordsHMAC-SHA-1 by default, as RFC 6238 says and every authenticator app implements. SHA-256 and SHA-512 by choice, and FIPS 140-only mode needs one of themengine/internal/mfa/totp.go
Webhook bodiesHMAC-SHA-256engine/internal/hmacsig/
MD5Three sites, each required by a protocol it speaks to, and why each stays is in the OWASP ASVS reviewV11.4.1 there

Signing keys move from next to active to passive to retired on a schedule. A passive key is retired once nothing can still be verifying against it. The root key is rotated with signari keys rewrap-root, which knows every sealed column by test (TestEveryEncryptedColumnIsClassified), so that a rotation cannot orphan one. FIPS 140-3 says what changes under a validated module.

Ways to authenticate (V6.1, V6.3.4)

Here every way to authenticate is side by side, with what each is recorded as in a token's amr claim. That claim is what a policy can require or refuse: see access policy.

PathwayProvesamr
PasswordSomething knownpwd
Passkey, device-boundPossession, and the person presenthwk, with user
Passkey, syncedThe same, but not bound to one deviceswk, with user
Authenticator app or hardware tokenPossession of a seedotp
Text messagePossession of a number, which a SIM swap defeats with no technical exploitsms, deliberately not otp
Emailed code, first factorPossession of a mailbox: one factorotp, read as single-factor
Recovery codeThat it was kept. It stands in for a second factor and proves noneAdds nothing
Upstream providerWhat that provider says, as far as it is trusted tofed, with mfa only where an administrator trusts its claim (idp trust-mfa)
KerberosA ticket from a trusted Kerberos realmkrb
DuoThat Duo was satisfied, not howmfa, added to what came before
An external factorWhat that service assertsWhat it is registered with

No sign-in goes through the password form for ldap, radius or the jwt-bearer grant. Each has a page of its own: Lightweight Directory Access Protocol (LDAP), Remote Authentication Dial-In User Service (RADIUS) and the jwt-bearer grant.

Sessions (V7.1)

DefaultBoundsSet with
Session lifetime, from the sign-in12 hours5 minutes to 30 daysper organisation
Inactivity limitNoneAt least 5 minutesper organisation
Offline access30 daysper organisation
Concurrent sessionsNo limitWhen set, a new one is refused, by defaultper organisation

Sessions are rows, read on every request and never cached, so ending one takes effect at once. A person signed in through a provider has a session here whose life is this table's, not the provider's. The exception is when the provider says, by OpenID Connect Back-Channel Logout, that the session has ended: see federated sign-in providers. Every session ends through one function, by test (TestEverySessionEndsThroughTerminateSessions).

Who may do what (V8.1)

The rules are enforced in four places, each with its own page.

BoundaryEnforced byPage
One organisation from anotherRow security on every organisation's table, with the database's own role as the backstop, and requireOrg in the Admin APIthe Admin API
What an admin token may touchSeventeen scopes, narrowed further to named clients and groupsAdmin API access
What a person may reachSign-in policy, and client access by groupaccess policy
What an application may decideRelations, and AuthZENasking whether an action is allowed

The console has no privilege on the engine's tables at all. It reads views and writes through the Admin API, as the design sets out.

Connections and resources (V13.1)

DefaultSetting
Database connections, requestsThe larger of 4 and the number of CPUsSIGNARI_DB_MAX_CONNS
Database connections, background work3SIGNARI_DB_WORKER_MAX_CONNS
Reading a request's headers, its whole body, writing the answer, an idle connection10, 30, 60 and 120 secondsFixed
Admin API, all callers and one token100 and 50 requests a secondSIGNARI_ADMIN_RATE, SIGNARI_ADMIN_TOKEN_RATE
An organisation's tokens and sign-ins a minuteNone until setsignari instance org-budgets
Outbound request8,000 octets a URI or a header field, 5 seconds to connect and 10 to the first byteFixed

What the engine calls out to is in every outbound connection. What these numbers mean under load is in performance.

Data (V14.1)

ClassWhatHow it is keptHow long
CredentialsPasswords, seeds, passkey keys, refresh and access token recordsHashed if only ever compared, sealed if read back, and a public key as it isAs long as the person or the grant, and gone with them on erasure
IdentityNames, addresses, attributes, group membershipsIn the clear, with row securityUntil erased
Sessions and sign-in locationsWhich device, roughly where, an address only as a keyed hashIn the clear, but for the addressSIGNARI_RETENTION_SESSIONS, SIGNARI_RETENTION_SIGNIN_LOCATIONS
Audit trailWho did what, in classes security, operational and profileHash-chained and append-onlyAs kept: see what is logged
ConfigurationClients, policies, flowsIn the clear, but for sealed secretsUntil removed

Every environment variable lists every SIGNARI_RETENTION_ setting. A person can export their own data at /account/export, and delete their account at /account/delete. An administrator has GET /admin/subjects/{subjectID}/export and signari erase subject: see erasing a subject.

What a browser has to do (V3.1.1)

NeedsForWithout it
Cookies, Secure, HttpOnly, SameSite=Lax, with a __Host- prefix on the session'sEvery sign-inNothing signs in. The session cookie needs HTTPS
Content-Security-PolicyContaining what an injection could doSign-in works, with one defence fewer
Sec-Fetch-Site, Sec-Fetch-DestKnowing a form started a navigation, so that a redirect to an application survives form-actionThe plain redirect, which Chrome then stops at a strict policy. A proxy stripping these brings that back
JavaScriptPasskeys, and a form that posts itselfA password sign-in needs none. A form posting to an application shows a button
WebAuthnPasskeysNot offered where the instance has no RP ID

Tested in Chrome 156. Firefox and Safari have not been tested.