Docs Version v0.2
Docs menu

Running in production

Every environment variable

Changed 43 min readv0.2

On this page

Introduction

Signari reads its settings from environment variables whose names start with SIGNARI_. Only a few are needed to start: the database connection (SIGNARI_DSN), the root key (SIGNARI_ROOT_KEY or SIGNARI_ROOT_KEY_FILE) and, when the database holds more than one instance, the issuer (SIGNARI_ISSUER). Everything else has a default, and you set it only when you need what it changes.

This page lists every one, grouped by what it is for. If you are starting out, read the "Required" table below, and look up the rest when another page sends you here.

A test enforces this list. TestEveryEnvVarIsDocumented fails when the code reads a SIGNARI_ variable this page does not mention, so the page stays complete.

Required

SIGNARI_DSNPostgreSQL connection string. With no sslmode in it the driver's default is prefer, so a server that offers Transport Layer Security (TLS) gets it, on loopback too. To a database across a network, say sslmode=verify-full. To one on the same host, TLS protects nothing a local attacker could not already reach, and it cost a tenth of the throughput on the token and federated paths (measured in November 2026). Sign in as signari_engine, which reads every organisation by design and holds no power over the database server it does not need. A superuser can run programs and read files on that server, change its configuration and reach every database on the cluster, and a BYPASSRLS role passes every row-level policy on every table it may read, so serve refuses to start on either, or on a role that may SET ROLE to one, and signari doctor reports one as critical. signari setup writes this as signari_engine; Serving as signari_engine says how to move a deployment that serves as a superuser
SIGNARI_ALLOW_RLS_BYPASS1 lets serve start when SIGNARI_DSN or SIGNARI_READ_DSN signs in as, acts as or may SET ROLE to a superuser or a BYPASSRLS role, as -allow-rls-bypass does, with a warning at startup. Without it such a role is refused rather than warned about, since it would hand a compromised engine powers over the database server it never needs
SIGNARI_READ_DSNA replica for the Admin API's GET /admin/audit-events, and for nothing else. Absent, the primary answers, and it answers anyway if the replica does not. Running several copies of Signari says why it is only that. With the Admin API on, serve checks its role at startup as it checks SIGNARI_DSN's, and refuses a superuser, a BYPASSRLS role or one that may SET ROLE to either
SIGNARI_ROOT_KEY32 random bytes, base64. Seals every stored secret. Lose it and no sealed data can be read: Remote Authentication Dial-In User Service (RADIUS) secrets, bind passwords, System for Cross-domain Identity Management (SCIM) tokens, signing keys. The engine refuses to start rather than run with keys it cannot unwrap
SIGNARI_ROOT_KEY_FILEA file holding the root key, instead of SIGNARI_ROOT_KEY: a mounted secret, so the key is not in the environment every child process inherits and a container runtime shows. Refused when its group or anybody else may read it, and when SIGNARI_ROOT_KEY is set as well. A Kubernetes secret volume is mode 0644 unless told otherwise, so mount it with defaultMode: 0400
SIGNARI_ISSUERThe issuer URL. Must match an instance in the database

SIGNARI_ROOT_KEY_REF is the label stored beside every value the key seals, so a later rotation can tell which key sealed what. It fetches no key from anywhere: the key itself comes only from SIGNARI_ROOT_KEY or SIGNARI_ROOT_KEY_FILE, and serve and doctor both refuse a deployment that sets the label alone, or a key file they would refuse. A root key held in a key management service (KMS) is not built yet.

Rotating the root key with the deployment running

SIGNARI_ACCEPTED_ROOT_KEYA second root key the process opens with and never seals with, held through an online rotation. Its ref must differ from the root key's
SIGNARI_ACCEPTED_ROOT_KEY_FILEThe accepted key from a file, on the same terms as SIGNARI_ROOT_KEY_FILE
SIGNARI_ACCEPTED_ROOT_KEY_REFThe accepted key's ref: the label the rows it sealed carry

Four rolling restarts, with nothing stopped:

  1. Every node: SIGNARI_ROOT_KEY the old key, SIGNARI_ACCEPTED_ROOT_KEY the new one. Nothing is sealed with the new key yet, and every node can open it.
  2. Every node: SIGNARI_ROOT_KEY the new key (with its _REF), SIGNARI_ACCEPTED_ROOT_KEY the old one (with its _REF). New rows are sealed with the new key, and every node opens both.
  3. signari keys rewrap-root, with the same two variables, moves every row still under the old key to the new one, in one transaction.
  4. Every node: remove SIGNARI_ACCEPTED_ROOT_KEY.

Step 3 refuses while any running node still seals with the old key, because that node would go on sealing rows under a key about to be removed. Each node's database connections say which key it seals with, as a one-way tag of the key in their application_name (signari seals=1a2b3c4d opens=5e6f7a8b), so the command reads pg_stat_activity and names the nodes that are behind. A node of an earlier release carries no tag. Under the default names it is refused as one that cannot say; under a name of its own it cannot be seen at all. Upgrade every node before rotating. Run no other command that seals, such as radius add-client, with the old key during step 3.

Rotating the root key with the deployment stopped

SIGNARI_NEW_ROOT_KEYThe replacement, read only by signari keys rewrap-root. Separate from SIGNARI_ROOT_KEY so the command can always tell "the key we are on" from "the key we are moving to". With one variable for both it would have to guess, and a wrong guess leaves a database no key opens
SIGNARI_NEW_ROOT_KEY_FILEThe replacement from a file, on the same terms as SIGNARI_ROOT_KEY_FILE
SIGNARI_NEW_ROOT_KEY_REFA name for the new key, and it must differ from the current ref. Stored rows record which key wrapped them, so two keys sharing a ref are indistinguishable: a later rotation could not tell which rows it had already done, and a failed one could not be diagnosed. The command refuses rather than proceeding

These commands make a new key, try the rotation, and then make it:

Shellexport SIGNARI_NEW_ROOT_KEY="$(head -c 32 /dev/urandom | base64)"export SIGNARI_NEW_ROOT_KEY_REF=v2signari keys rewrap-root -dry-run   # does the whole job, then rolls backsignari keys rewrap-root

The rotation runs in one transaction. A partial rotation would leave half the rows opening with the old key and half with the new, so that no single key opens the deployment.

Afterwards, set SIGNARI_ROOT_KEY to the new value on every node before any of them restarts. A node that comes up holding the old key refuses to start, by design: the engine compares the stored key_ref against the key it was given and says so, instead of failing later inside a signature. Keep the old key until every node is running on the new one and a restore test has passed. The command warns, naming them, when nodes are still running: they open nothing once it commits.

Anything sealed under a subject's key, such as a time-based one-time password (TOTP) secret, needs no attention: the subject's DEK is itself root-sealed and is re-wrapped, so everything under it follows. A test enumerates every encrypted column in the schema and fails the build if one is not classified, because a root-sealed column the rotation does not know about becomes ciphertext that can no longer be opened, while the administrator is told the rotation succeeded. It covers every bytea column, and every column of any type whose name says it holds a token, a secret, a password or a key, so a secret kept in a text column in the clear is caught too.

Some sealed values live inside a JSON payload rather than a column of their own: a Client-Initiated Backchannel Authentication (CIBA) delivery waiting in the outbox holds the client's notification token, the auth_req_id and, for push, the minted tokens, all sealed. The rotation re-seals those in place, and the command's output lists them after the columns. A second test finds every place the code seals with the root key and fails unless the rotation knows that context, so a new sealed value cannot be left out.

Rotating the signing keys

SIGNARI_KEY_ROTATION_PERIODThe age at which an active signing key is replaced, unattended, as a Go duration: 2160h for ninety days. Unset, nothing rotates on its own and signari keys rotate and keys retire are the only way. At least 48h, twice the day a new key is published before it signs

With a period set, at startup and then once an hour, one node, whichever holds the lock, takes the step that is due for each algorithm. It publishes a next key when the active one is older than the period, promotes it once it has been published for a day, and retires a passive key once no token it signed can still be valid. These are the steps keys rotate and keys retire take, decided by the same rules, and each is audited as keys.rotated with automatic: true. Signing moves to the new key on every node within the key refresh interval.

Signing keys in a hardware module

Only in the pkcs11 image, or a binary built with CGO_ENABLED=1 -tags pkcs11; any other build refuses SIGNARI_PKCS11_MODULE rather than ignoring it. See Signing keys in a hardware module or a key service.

SIGNARI_PKCS11_MODULEThe PKCS#11 module, a path to the vendor's .so. Set, every new signing key is made in its token and never leaves it, and the keys already there are signed with in place. There is no separate switch to make keys there, so a rotation cannot make a successor in software by mistake
SIGNARI_PKCS11_TOKENThe token's label. Required with a module, so one with a second token cannot have keys made in the wrong one
SIGNARI_PKCS11_PINThe token's PIN, the one PKCS#11 calls the "user" PIN
SIGNARI_PKCS11_PIN_FILEThe PIN from a file instead, on the same terms as SIGNARI_ROOT_KEY_FILE

Or a Vault or OpenBao transit engine, in every build. Set with a module as well, the process refuses to start: new keys are made in one place.

SIGNARI_VAULT_ADDRThe Vault server, https://vault.internal:8200. Set, every new signing key is made in its transit engine, not exportable, and signs there. Plain http is refused except to a loopback address
SIGNARI_VAULT_TOKENA token allowed to create, read and sign with keys on the mount
SIGNARI_VAULT_TOKEN_FILEThe token from a file instead, read again for every request, so one Vault Agent renews into it keeps working. On the same terms as SIGNARI_ROOT_KEY_FILE, so give the agent's sink mode = 0600
SIGNARI_VAULT_TRANSIT_MOUNTWhere the transit engine is mounted. transit unless set

Build-time, not runtime

SIGNARI_SCHEMA_FINGERPRINTThe schema digest a release binary is pinned to, supplied as a docker build argument, never as an environment variable at run time. Setting it in the environment of a running engine does nothing. Unpinned, the engine compares the schema's shape only with the ledger in the same database, so a hand-patched database whose ledger row was rewritten along with it is accepted. scripts/build-release.sh passes it, and signari version prints what a binary is pinned to. See Pinning a build to its schema

It is listed separately because exporting it into a running process has no effect.

Listeners

SIGNARI_ADDRWhere signari serve listens, such as 127.0.0.1:8080, when -addr is not given; -addr wins when it is, as the image's serve -addr 0.0.0.0:8080 does. Unset, :8080. signari setup writes it to its env file, so that file holds everything serve reads and the systemd unit and a shell start it alike
SIGNARI_TLS_CERT, SIGNARI_TLS_KEYServe HTTPS. Without them the engine warns: browsers refuse __Host- cookies over plaintext on anything but localhost, so a sign-in does not persist and no error says why
SIGNARI_H2C1 lets the public listener speak HTTP/2 with no TLS, for a proxy that has already ended TLS: a client has to know to, as the Upgrade: h2c way in is not honoured. Off, as a listener in the clear is otherwise HTTP/1.1 only
SIGNARI_TLS_CLIENT_CAAuthorities that may issue client certificates for RFC 8705 mutual-TLS. Absent, tls_client_auth is refused rather than relaxed
SIGNARI_TLS_ECH_KEYSComma-separated key files from signari ech new, newest first: the public listener takes Encrypted Client Hello (ECH), so the name a browser asks for is not sent in the clear. A client refused ECH is told to retry with the first; the rest are still accepted, for clients holding an older DNS answer. The listener then takes TLS 1.3 only. Set without SIGNARI_TLS_CERT, or with a file that cannot work (its configuration not its own key's, two keys with one config id), the engine refuses to start
SIGNARI_ADMIN_ADDRListen address for the Admin API. Absent, it does not start
SIGNARI_ADMIN_RATE, SIGNARI_ADMIN_TOKEN_RATEThe Admin API's request rates, a second: everything arriving at the listener (default 100), and one token's share (default 50), each allowed a burst of twice. 1 to 100000, and one token cannot be allowed more than the listener; anything else stops the engine from starting rather than falling back to a default. A provisioning run larger than the defaults needs this; GET /admin/system reports what is in force
SIGNARI_METRICS_ADDRListen address for GET /metrics in the Prometheus text format. Absent, nothing is collected and nothing is served. Its own listener, like the Admin API: serving metrics from the public listener would publish request rates, error rates and sign-in failure counts to anyone who can reach the sign-in page, usually the whole internet. No label ever carries an identifier (see below)
SIGNARI_OTLP_TRACES_ENDPOINTA collector's OpenTelemetry Protocol (OTLP) traces URL, over HTTP, such as http://localhost:4318/v1/traces. Set, every request, the queries it runs and the calls it makes are sent there as spans; absent, nothing is recorded and nothing is installed. No span carries an identifier. See Tracing
SIGNARI_OTLP_HEADERSHeaders sent with every export, as name=value pairs separated by commas: a collector's API key, usually. Refused with a plain http:// collector anywhere but loopback, as the key would cross the network in clear
SIGNARI_TRACES_SAMPLE_RATIOThe share of requests traced, from 0 to 1, default 1. A query or call is traced when its request is. Either of these two without an endpoint stops the engine from starting, as does a value it cannot read
SIGNARI_SHUTDOWN_DRAINHow long to keep serving after SIGTERM before the listener closes, default 5s. /readyz answers 503 for this whole window, so whatever routes traffic here has time to take the node out of rotation before the socket goes. Set it above your readiness probe's interval; 0 disables it, which is right locally and wrong behind a load balancer
SIGNARI_SHUTDOWN_TIMEOUTHow long in-flight requests may take to finish, default 20s. Keep it under the orchestrator's grace period before SIGKILL, or the process is killed before the timeout ends. Also caps the drain
SIGNARI_OUTPOST_LDAP_INSECURE1 permits a Lightweight Directory Access Protocol (LDAP) outpost (signari outpost run -kind-outpost ldap) to listen without TLS, as -ldap-insecure does. Without it, an LDAP outpost given no -tls-cert refuses to start, because every simple bind carries a password. See LDAPS on an outpost
SIGNARI_ADMIN_CLIENT_CAA PEM file of the authorities whose client certificates the Admin API admits. Set, nobody reaches it without one, whatever token they hold, so a token lifted from a console's environment opens nothing from elsewhere. Needs the listener on TLS, and the engine refuses to start without that rather than ask for nothing. Unset, a token alone admits
SIGNARI_ADMIN_CLIENT_CERT, SIGNARI_ADMIN_CLIENT_KEYThe certificate and key a caller presents to such a listener: signari api and the commands with -admin-url, the console and the Terraform provider all read these two
SIGNARI_ADMIN_INSECURE1 permits the Admin API to serve plaintext HTTP. Without it, an Admin API listener configured with no SIGNARI_TLS_CERT refuses to start rather than putting a bearer token that can erase a subject on the wire in clear. Only reasonable bound to loopback behind a terminator you control
SIGNARI_INSECURE_ISSUER1 permits an http:// issuer. Development only
SIGNARI_PROXY_COOKIE_DOMAINParent domain for the forward-auth cookie, for every host that names none of its own with signari proxy cookie

Every listener (public, Admin API and metrics) allows 10 seconds for headers, 30 to read a whole request, 60 to answer it and 120 for an idle keep-alive. These are not settings. They stop a client that sends its body a byte a minute from holding a connection for as long as it likes. The remote-access tunnel is a WebSocket, and upgrading to one clears these deadlines for that connection, so a remote desktop is bounded by its session checks instead.

Several instances in one process

SIGNARI_ADDITIONAL_ISSUERSFurther instances to serve beside the one SIGNARI_ISSUER names, as a comma-separated list of their issuers. Each must already exist (signari instance create) and be named once. Absent, one instance is served

Each instance is its own issuer with its own signing keys, and a request goes to the instance whose issuer names the host it was made to. A host that no issuer names is answered by the instance SIGNARI_ISSUER names. Instances are told apart by host alone, so each needs a host of its own, and serve refuses to start with two on one.

A token one instance signs is refused by the others. So is anything found without a token: a client, a session cookie, an account found by its name, a provider found by its slug, a recovery or passkey link, an invitation, an outpost or SCIM token, a dynamic registration. Each is treated as unknown outside its own instance. Each logout_token and security event is signed as the instance of the client it goes to. Account notices carry the links of their holder's instance. The Admin API accepts each instance's access tokens only from that instance's designated applications.

Some things stay with the process rather than an instance:

  • TLS. The certificate must cover every host, or TLS is terminated in front.
  • LDAP and RADIUS. Each listener serves one organisation.
  • The audit chain's head. It is signed with the first instance's keys.
  • Metrics. The signing-key age is the first instance's, and the refresh failure count is the worst of all the instances.

Retention

The janitor deletes, every pass and a thousand rows a table to a transaction, rows that nothing reads any more. Each is a Go duration of at least 1h.

VariableDefaultDeletes
SIGNARI_RETENTION_SESSIONS720hsessions ended this long ago, with their list of applications and their refresh families, all ended with them; a session a live grant of offline_access was given in is kept until the grant ends. And remembered devices forgotten or run out this long ago
SIGNARI_RETENTION_REFRESH_FAMILIES720hrefresh-token families revoked this long ago, or whose newest token expired this long ago, with their tokens. A token of a live family is never deleted, rotated ones included: presenting a rotated token is how a stolen one is caught
SIGNARI_RETENTION_DELIVERED168hsign-out notices and security events delivered this long ago, and event deliveries delivered or abandoned this long ago
SIGNARI_RETENTION_RECEIVED_EVENTS2160hsecurity events received from other transmitters
SIGNARI_RETENTION_SIGNIN_LOCATIONS2160hsign-in locations, except each person's newest, which the next sign-in is compared with
SIGNARI_RETENTION_CREDENTIAL_NONCES24hcredential-issuance nonces this long past their expiry

Password history keeps the newest SIGNARI_PASSWORD_HISTORY hashes per person, the depth the reuse check reads, and keeps every one when that is unset. Each pass logs what it deleted, and signari_janitor_rows_deleted_total{table} counts it.

The audit trail is not among them: it is append-only and hash-chained, and pruning it means archiving a verified segment first, which is not built yet.

Logging

VariableMeaning
SIGNARI_LOG_FORMATtext, logfmt and the default, or json, one object per line. Anything else refuses to start
SIGNARI_LOG_LEVELdebug, info (the default), warn or error. Anything else refuses to start
SIGNARI_ACCESS_LOG1 writes one line per request: the method, the route that matched, the status, the bytes written, the duration and the correlation id. 0 or unset writes none. The route is the pattern (/login/with/{slug}), never the path or the query string, and there is no client address in it

A line logged with a request's context carries that request's correlation_id, the one its response sends as X-Correlation-Id and its error page shows as a short code, whether the call names it or not. The access log line does. Most handlers still log without the context, and their lines carry the id only where the call names it. A line names a person by the subject id when it must, never by username, email address or a certificate's subject, and a test holds every log call in the engine to that. See Logging inventory.

Database connections

SIGNARI_DB_MAX_CONNSThe most connections the pool holds. Default the larger of 4 and the number of CPUs
SIGNARI_DB_MIN_CONNSConnections the pool keeps open while idle. Default 0. Must not exceed the maximum
SIGNARI_DB_MAX_CONN_LIFETIMEHow long a connection lives before it is replaced, as a Go duration (30m). Default 1h
SIGNARI_DB_MAX_CONN_IDLEHow long an idle connection is kept, as a Go duration (5m). Default 30m
SIGNARI_DB_WORKER_MAX_CONNSThe most connections the background workers' own pool holds: the outbox, the janitor, the audit-sink pump and the key refresher. Default 3. It keeps none idle and takes its connection ages from the two settings above. A node opens up to this plus SIGNARI_DB_MAX_CONNS. See Connection pooling

The data source name (DSN) can carry its own pool_max_conns, pool_min_conns, pool_max_conn_lifetime and pool_max_conn_idle_time, which work too, and a variable here wins over them. A value that is not a whole number or a positive duration, or a minimum above the maximum, refuses to start: a typo that fell back to the default would look like a pool that had been sized, and would be found under load.

Every instance of serve opens up to the maximum, plus the one connection it starts with and the background workers' own pool (SIGNARI_DB_WORKER_MAX_CONNS). The sum across instances, the console and anything else that connects must stay under PostgreSQL's max_connections, or the last instance to grow its pool is refused connections in the middle of a sign-in. The signari_db_pool_connections_max gauge reports the maximum the pool is running with, and signari_db_pool_connections_acquired sitting at it while latency climbs is the pool running out.

Behind a reverse proxy

SIGNARI_TRUSTED_PROXIESComma-separated addresses or Classless Inter-Domain Routing (CIDR) prefixes of the proxies in front of the engine: the addresses the ingress controller connects from, not the whole pod network (see below)
SIGNARI_CLIENT_IP_SOURCEsocket (default), x-forwarded-for or forwarded (the RFC 7239 header)
SIGNARI_PROXY_PROTOCOLhttp, ldap or both, comma-separated: the listeners behind a TCP balancer that sends a PROXY protocol v2 header. Needs SIGNARI_TRUSTED_PROXIES (see below)

Every per-address decision keys on the client address: the sign-in and client-secret failure budgets, the captcha, and access-policy network rules. Behind a proxy the socket address belongs to the proxy, so with neither variable set every client shares one bucket. Twenty wrong passwords from anyone then lock everyone out for five minutes, and two hundred wrong client secrets lock out every confidential client.

An IPv6 client is budgeted by its /64, not its full address, and so is the captcha counter. A host can use any address in its subnet, and privacy addresses rotate by themselves. A budget keyed by the /128 would be reset by stepping to the next address, so it would limit nothing. Network rules and logs see the full address.

When a request arrives from one of the trusted proxies, the client is the rightmost address in the forwarding chain that is not itself a trusted proxy. The entries to the left of it were written by the client and are ignored. A request from any other address is answered by its socket, whatever headers it carries. A hop that is not an address ends the walk and the proxy's address is used.

A Forwarded header with a quoted string that never closes is not read at all, and the client address is unknown. Unknown means the shared unknown budget, and it fails every network rule. Such a header could only have come from a client. A client that sends for=1.2.3.4;by=" leaves the quote open, so the hop its proxy appends to the same line ends up inside the quote. Reading the header anyway would let the client choose its own address. Using the proxy's address instead would give the client whatever a network rule allows the proxy's range.

The engine refuses to start on a configuration that protects nothing: a prefix that covers every address (0.0.0.0/0, ::/0), a header source with no trusted proxy, or trusted proxies with no header to read. When forwarding headers arrive from a private or loopback address and no proxy is trusted, it logs one warning saying so.

This serves behind two proxies that each add the address they saw to X-Forwarded-For:

ShellSIGNARI_TRUSTED_PROXIES=10.42.0.17,10.42.1.23 SIGNARI_CLIENT_IP_SOURCE=x-forwarded-for signari serve

Name the addresses your proxy connects from and nothing wider. A trusted address is believed about who the client is. Trusting a whole pod network (10.42.0.0/16 on k3s) therefore lets every pod in the cluster set X-Forwarded-For, spend another client's budget and pass a network rule. If the proxy has no stable address, give it one, or let a NetworkPolicy admit only the proxy to the engine's port before you trust a range.

Behind a TCP balancer

A balancer that forwards TCP rather than HTTP has no header to write, so every connection to the LDAP listener, or to an HTTP listener behind it, carries the balancer's address, and every bind and sign-in shares one budget. PROXY protocol version 2 is how such a balancer says who the client was. Name the balancer and the listeners it sits in front of:

ShellSIGNARI_TRUSTED_PROXIES=10.0.0.5 SIGNARI_PROXY_PROTOCOL=ldap,http signari serve

On those listeners, a connection from a trusted address must begin with a v2 header. Without one it is dropped, as the specification requires: the receiver "MUST not try to guess whether the protocol header is present or not" (HAProxy's proxy-protocol.txt, §2). A LOCAL header, which a balancer sends for its own health checks, is served as the balancer. A connection from any other address is served as itself, and its first bytes are not read as a header. So a client that writes a PROXY header of its own reaches the LDAP or HTTP parser with it, and is refused there. Only version 2, the binary form, is read.

With PROXY protocol on, trusted proxies and SIGNARI_CLIENT_IP_SOURCE=socket is a valid combination, since the socket address is then the client's. An HTTP proxy in front of a PROXY-speaking balancer can still add X-Forwarded-For, and the header is believed only from the addresses you trusted, as above.

Mail

Without a host and a from-address, recovery links and email codes are written to the log instead of sent, with a warning on every send.

SIGNARI_SMTP_HOSTRequired to send anything
SIGNARI_MAIL_FROMRequired. The envelope sender, for any organisation without its own
SIGNARI_SMTP_PORTDefault 587
SIGNARI_SMTP_USERNAME, SIGNARI_SMTP_PASSWORDFor an authenticated relay
SIGNARI_MAIL_FROM_NAMEDisplay name

Every message is translated, and every message is plain text

The seven messages this engine sends (sign-in code, address confirmation, password-reset request, password changed, passkey added, passkey removed, recovery codes replaced) are message-catalogue keys under mail.* and sms.*, so they translate with everything else and can be overridden per deployment through the locales/ directory under SIGNARI_THEME_DIR, like any other string.

There is no HTML. HTML mail about an account teaches people that a legitimate message contains a styled button they are expected to click, which is the form a phishing message takes. Signari does not ship HTML templates for that reason.

Account-security notices are written in the account holder's language, taken from core.users.locale, never from the request. Those notices exist to reach the account holder when someone else triggered the action, and in that case the request carries the attacker's Accept-Language. Rendering "your password was changed" from the request could send it in a language the account holder does not read, while the deployment records that they were told.

The address-confirmation mail is the one interactive message and uses the request's language, because the person at the form is the person who will read it. A sign-in code uses the account holder's, because it is delivered to the address on the account: if the person at the form is not the holder, that email tells the holder that someone else has their password.

A person with no recorded preference falls back to the deployment default.

SMS second factor

See SMS, including why it is the weakest factor offered here.

SIGNARI_SMS_GATEWAYtwilio, webhook, or verify-webhook for a service that makes, sends and checks codes itself (SMS codes). A misspelling is fatal at startup rather than falling back to another gateway
SIGNARI_SMS_FROMSending number, or a Twilio messaging service SID
SIGNARI_SMS_TWILIO_SID, SIGNARI_SMS_TWILIO_TOKENTwilio credentials
SIGNARI_SMS_WEBHOOK_URL, SIGNARI_SMS_WEBHOOK_AUTHFor any other provider. Must be https: the body carries a live code
SIGNARI_SMS_VERIFY_URL, SIGNARI_SMS_VERIFY_AUTHFor verify-webhook: the service's URL and the Authorization header sent to it. Must be https: a check carries a live code. The contract is in SMS codes. Account notices then go by email only
SIGNARI_SMS_ALLOWED_PREFIXESComma-separated E.164 prefixes of the countries you serve, such as +1,+44. A number outside the list cannot be enrolled and is sent nothing. Unset allows every country; signari doctor and the startup log both say so
SIGNARI_SMS_NUMBER_DAILY_LIMITMessages one number may be sent per 24 hours, default 10. Codes and account notices each get this many
SIGNARI_SMS_ORG_DAILY_LIMITMessages one organisation may send per 24 hours, default 1000. Codes and account notices each get this many. Raise it for a large organisation that uses SMS sign-in daily

Codes (sign-in and enrolment) and account notices draw on separate allowances. Anybody can request a password reset for anybody, and each request texts a notice. With one shared allowance, enough requests would stop a person receiving sign-in codes, and enough across an organisation would stop everyone in it. Notices are capped too, by their own ceiling, so the most a deployment can be billed is twice each limit.

Text messages are the one factor where an attacker can spend your money. A number on a high-cost range earns whoever leases that range a share of every message sent to it. Enrolling such a number, or challenging it again and again, bills the deployment; this is known as SMS pumping or toll fraud. Every message therefore goes through one gate, whatever sends it: enrolment, the sign-in challenge or an account notice. The gate checks the country list, then the per-number and per-organisation ceilings. A refused message is not sent and is recorded as an sms.refused audit event. signari_sms_total counts messages by outcome (sent, failed, refused_country, refused_number_budget, refused_org_budget). A malformed value in any of these settings stops the engine from starting.

Second-factor guessing

SIGNARI_MFA_FAILURE_LIMITConsecutive wrong codes before an authenticator app, or an account's set of recovery codes, is switched off rather than paused. Default and maximum 100, the ceiling NIST SP 800-63B §3.2.2 sets; minimum 10. Anything else is fatal at startup

Three limits sit at the code step, and only the last is this setting:

  • A pause. Five wrong authenticator codes lock it for five minutes, and each further failure locks it again.
  • A rate. Ten wrong codes per account per fifteen minutes, and the sign-in form's own per-address budget (twenty per five minutes), answer 429 with Retry-After. The account limit covers every kind of code, so an account whose second factor is not an authenticator app is bounded too.
  • A ceiling. At the limit the factor is disabled: its codes are refused, right or wrong, until the person re-enrols (an authenticator app) or generates a new set (recovery codes) after signing in another way, or an administrator removes it with DELETE /admin/users/{userID}/factors/totp or …/factors/recovery. The account holder is told on every channel they have, and the audit trail records mfa.factor_disabled. A disabled factor still counts as the account's second factor, so switching it off never leaves a password that signs in alone.

A wrong code is counted against the factor it could have been: six digits against the authenticator app, twenty recovery-code characters against the recovery codes. Only somebody who already entered the password reaches this step, so unlike a password counter these cannot be used to lock out a stranger.

Signed audit heads

VariableDefaultMeaning
SIGNARI_AUDIT_HEAD_INTERVAL1hHow often the node running the janitor signs the audit chain's head: the newest entry's id and hash, as a JWS under the instance's active signing key (typ signari-audit-head+jwt), recorded in the trail as audit.head_signed. At least 1m. A head is signed within a minute of the first start, and only when entries were written since the last

The chain on its own is unkeyed: anyone who can write the table could rewrite an entry and recompute every hash after it. A head cannot be recomputed without the signing key, which is sealed under the root key and never stored in the database. Every reader of the chain checks each head against the entry it covers. Heads also leave the database: the audit stream carries them like any other entry, and an export prints the newest. Keep one, and signari audit verify -head @<file> holds the chain against it even if every head in the database was removed. signari doctor warns when no head is newer than twice the interval.

Audit streaming

Forwarding the audit trail to a logically separate system (ASVS V16.4.3). Off unless a destination is set; see Audit streaming.

VariableMeaning
SIGNARI_AUDIT_WEBHOOK_URLPOST events as NDJSON to a SIEM endpoint. Refused if it resolves into the private network
SIGNARI_AUDIT_WEBHOOK_TOKENOptional bearer token sent as Authorization to the webhook
SIGNARI_AUDIT_SYSLOG_ADDRhost:port of a syslog collector (TCP). Ignored if a webhook URL is also set
SIGNARI_AUDIT_SYSLOG_TLS1 to wrap the syslog connection in TLS
SIGNARI_AUDIT_SYSLOG_HOSTNAMEHostname stamped into each RFC 5424 line (default signari)
SIGNARI_AUTHZ_DECISION_LOGThe share of authorization evaluations recorded, from 0 to 1, as authz.decision events. Absent, none are. Anything else stops the start. See recording decisions

Authenticator models (FIDO metadata)

Off unless a source is set. When set, the catalogue does two things:

  • Names models. A passkey's AAGUID resolves to a device model ("YubiKey 5 NFC" rather than the nickname a person typed) on the passkey-added and passkey-removed notices.
  • Anchors attestation. A registration that conveys a certificate-chain attestation for a model the catalogue lists is checked against that model's roots, and a model the FIDO Alliance has marked revoked or compromised is refused. A model the catalogue does not list is still accepted.

signari webauthn policy -aaguids depends on the second. An AAGUID is the authenticator's own claim; only a chain anchored in the catalogue vouches for it. Packed self-attestation does not, and neither does a chain to a root the catalogue does not list. Without a catalogue an approved-model allow-list cannot verify any registration, so every registration under one is refused.

The chain for a listed model must reach one of that model's roots, whatever names its certificates carry. If it doesn't, the registration is refused. This covers a self-signed certificate, and also a certificate issued by a made-up CA that has the same common name. Either one is an authenticator claiming to be a model it cannot prove it is. Chains are read from the attestation statement's x5c, which covers the packed, TPM, Android key, Apple and U2F formats. A SafetyNet or compound attestation vouches for nothing here, and is not refused for that.

The BLOB must be signed by the FIDO production root, wherever it comes from; an unsigned or wrongly signed one is refused. The startup log says loaded the FIDO metadata catalogue with a count when it worked.

VariableMeaning
SIGNARI_FIDO_MDS_PATHPath to a mounted copy of the FIDO Metadata Service BLOB. Best for air-gapped or pinned deployments. Wins over the URL if both are set
SIGNARI_FIDO_MDS_URLFetch the BLOB from this URL (e.g. an internal mirror) instead of a file
SIGNARI_FIDO_MDS_FETCH1 fetches from the official FIDO endpoint. An explicit opt-in, because otherwise the engine would reach out to fidoalliance.org unasked

RADIUS and EAP-TLS

See EAP-TLS.

SIGNARI_RADIUS_ADDRListen address. Absent, no RADIUS listener starts
SIGNARI_RADIUS_ORG_IDRequired when the database holds more than one organisation
SIGNARI_EAP_TLS_CERT, SIGNARI_EAP_TLS_KEYThe certificate supplicants verify
SIGNARI_EAP_CLIENT_CAAuthorities issuing supplicant certificates. All three or none: a partial configuration is refused, unless SIGNARI_EAP_TUNNELS is set, when the certificate alone runs the tunnel and EAP-TLS stays off
SIGNARI_EAP_IDENTITY_FROMcn, email or upn. Use upn against Active Directory
SIGNARI_EAP_TUNNELSttls, peap or ttls,peap: EAP-TTLS with PAP inside, PEAP with EAP-GTC inside, with the certificate above. The person's password goes inside a TLS tunnel to this server and is checked as a PAP request's is. Off unless set. See EAP-TTLS and PEAP

Remote access (RDP, VNC, SSH in the browser)

See Remote access.

SIGNARI_GUACD_ADDRguacd's TCP listener, typically 127.0.0.1:4822. Absent, remote access answers 503
SIGNARI_GUACD_TLS1 reaches guacd over TLS, checking its certificate against the address's host. For a guacd on another machine, because the protocol carries a target's credentials
SIGNARI_GUACD_CAA PEM file of what guacd's certificate is checked against, instead of the system's roots. Refused at startup when SIGNARI_GUACD_TLS is not 1, rather than ignored

LDAP (applications binding to this engine)

SIGNARI_LDAP_ADDRListen address
SIGNARI_LDAP_BASE_DNBase DN served
SIGNARI_LDAP_INSECURE1 permits the LDAP listener to accept binds without TLS. Without it, a listener given no -tls-cert refuses to start, because every simple bind carries a password. Only reasonable bound to loopback behind a terminator you control. The LDAP outpost has SIGNARI_OUTPOST_LDAP_INSECURE for the same decision
SIGNARI_LDAP_ORG_IDRequired with more than one organisation
SIGNARI_LDAP_USER_ATTRAttribute carrying the username
SIGNARI_LDAP_ANONYMOUS_SEARCHPermit anonymous search. Off by default
SIGNARI_LDAP_SEARCH_GROUPGroup whose members may search the whole directory. Empty means nobody: everyone else who binds gets back only their own entry. Read by the engine's LDAP listener. An LDAP outpost ignores it and logs that it did: its group is recorded on its registration (signari outpost search-group) and enforced by the core. See other LDAP decisions and what an outpost token is worth
SIGNARI_LDAP_POSIX1 publishes people as posixAccount and groups as posixGroup, for hosts that read their accounts from the directory. Read by the engine's LDAP listener and an LDAP outpost. See POSIX accounts
SIGNARI_LDAP_POSIX_HOMEA person's home directory, {username} replaced. Default /home/{username}
SIGNARI_LDAP_POSIX_SHELLEverybody's shell, the loginShell the directory publishes. Default /bin/bash
SIGNARI_LDAP_WRITE_GROUPGroup whose members may Add, Modify, Delete and Modify DN. Empty means nobody, and the directory stays read-only. Members can create accounts, set any password, and delete entries. See LDAP

DPoP

VariableMeaning
SIGNARI_DPOP_NONCE1 makes every Demonstrating Proof of Possession (DPoP) proof carry a nonce this engine issued. Needs the root key. See server nonces

Device posture

See device posture.

SIGNARI_DEVICE_CADevice certificate authority. Strong evidence
SIGNARI_DEVICE_TRUSTED_PROXIESCIDRs whose posture headers are believed. Mandatory for headers to be read at all; 0.0.0.0/0 is refused
SIGNARI_DEVICE_MANAGED_HEADERHeader asserting the device is managed
SIGNARI_DEVICE_COMPLIANT_HEADERHeader asserting it is also healthy

SIGNARI_DEVICE_COMPLIANT_HEADER feeds the policy condition device_compliant. Without it, a rule that uses that condition can never be satisfied.

CAPTCHA

See CAPTCHA.

SIGNARI_CAPTCHA_MODEoff, adaptive or always
SIGNARI_CAPTCHA_PROVIDERWhich service: turnstile, hcaptcha, recaptcha, or siteverify for one you run
SIGNARI_CAPTCHA_SITE_KEY, SIGNARI_CAPTCHA_SECRETCredentials
SIGNARI_CAPTCHA_VERIFY_URLWith siteverify: the https address that verifies an answer. Reached through the outbound guard, so a private address also needs SIGNARI_OUTBOUND_ALLOW_PRIVATE
SIGNARI_CAPTCHA_WIDGET_URLWith siteverify: the https address of the widget's script, whose origin the sign-in page's content security policy admits
SIGNARI_CAPTCHA_WIDGET_CLASSWith siteverify: the class of the element the script fills
SIGNARI_CAPTCHA_RESPONSE_FIELDWith siteverify: the form field the widget puts its answer in
SIGNARI_CAPTCHA_AFTER_FAILURESFailures before adaptive mode challenges
SIGNARI_CAPTCHA_FAIL_CLOSEDRefuse sign-in when the provider is unreachable. Off by default: a provider outage should not become an authentication outage

Risk and trust

SIGNARI_GEOIP_DBMaxMind database for impossible-travel checks. Not bundled and not downloaded: fetching a binary file at startup would add a supply chain to the authentication path
SIGNARI_GEOIP_STATICA fixed mapping, for testing
SIGNARI_GEOIP_ASN_DBAn IP-to-autonomous system number (ASN) database in MaxMind's format (GeoLite2-ASN, GeoIP2-ISP, DB-IP's IP-to-ASN Lite) for a policy's from_asns and not_from_asns. Read once at startup, not bundled and not downloaded, like SIGNARI_GEOIP_DB. A file that cannot be opened, or is not an ASN or ISP database, is logged at startup and named by signari doctor, and maps no address to an ASN; it does not stop the process
SIGNARI_GEOIP_ASN_STATICRanges mapped by hand, 203.0.113.0/24=64500;2001:db8::/32=64501, first match in the order written. Takes precedence over SIGNARI_GEOIP_ASN_DB
SIGNARI_CA_BUNDLEA PEM file of certificate authorities added to the system roots for every outbound HTTPS call: delivery, transmitter and issuer keys, jwks_uri, federation, discovery, directory sync, an outpost's calls to its core. Read once at startup, and a file that cannot be read or holds no certificate stops the process. Trusting an authority opens no address: an internal destination is still named in SIGNARI_OUTBOUND_ALLOW_PRIVATE
SIGNARI_ALLOW_PRIVATE_DELIVERYPermit sign-out and event delivery to private, loopback and link-local addresses. Off by default. A backchannel_logout_uri is chosen by the client, so without the check a registered client can have this engine POST a signed logout_token into your internal network on every sign-out. Set 1 only if your applications are internal. Even then no cloud metadata endpoint is reached, in any form that carries one (see Internal destinations). Trusting an internal CA (SIGNARI_CA_BUNDLE) is a different decision and does not imply this one.
SIGNARI_SCIM_CA_BUNDLEAuthorities added for SCIM targets specifically, on top of SIGNARI_CA_BUNDLE. With that unset it also covers delivery
SIGNARI_OUTBOUND_ALLOW_PRIVATEComma-separated addresses or prefixes, such as 10.20.0.0/16,192.168.7.9, that outbound requests may reach although they are private. Empty by default. See Internal destinations below
SIGNARI_ADMIN_TOKENBearer token for the Admin API. To serve, the break-glass token it accepts; to signari api and a command run with -admin-url, the token it presents (or -token-file), never taken as a flag's value
SIGNARI_ADMIN_URLThe Admin API's address for signari api, such as https://admin.example.com:8443: https, or http to loopback only, since the token would otherwise cross a network in the clear. It trusts SIGNARI_CA_BUNDLE. Setting it moves no other command off the database: those that have an endpoint mode use it only when given -admin-url

Internal destinations

Every request the engine makes to a destination that comes from configuration goes through one dialler, which checks the address at connect time, after the name has been resolved. That includes webhooks, providers, an upstream identity provider's token endpoint and keys, a jwt-bearer issuer's keys, an SSF source's keys, SCIM targets, the old provider behind delegated sign-in, the SMS gateway, Duo's API host and the FIDO metadata mirror. Private, loopback, link-local and the special-purpose ranges are refused, and so is a redirect into them.

When one of those is inside your network, name it in SIGNARI_OUTBOUND_ALLOW_PRIVATE. That widens what may be reached by exactly what you list, for every one of the paths above, and the refusal message names the setting. Two values are refused at startup, because each would switch the check off under another name:

  • a prefix of length zero (0.0.0.0/0, ::/0, ::ffff:0:0/96);
  • anything covering a cloud metadata endpoint, which no destination needs and which is the first thing a forged request asks for. The endpoints are 169.254.169.254 and its IPv6 twin fd00:ec2::254, the container credentials range 169.254.170.0/24, and 100.100.100.200. So fd00::/8, 100.64.0.0/10 and 169.254.0.0/16 are refused, and narrower ranges beside the endpoints are not. The IPv6 forms that carry an endpoint are refused too: 64:ff9b::/96 (NAT64), 2002::/16 (6to4) and the IPv4-compatible form. Listing any of them would reopen a metadata service through a translator. So are NAT64's local-use prefix 64:ff9b:1::/48 and Teredo 2001::/32, because the IPv4 address behind them cannot be read off the address, and so nothing can tell whether it is one of the endpoints.

signari idp add (discovery) and signari idp add-issuer (the issuer's keys) apply the same list, so an internal issuer fails when you add it rather than at the first sign-in.

An SMS webhook on loopback (SIGNARI_SMS_WEBHOOK_URL=http://127.0.0.1:…) is reachable without the list: you wrote that exact address down. The allowance covers loopback only, and a redirect from it is still checked.

SIGNARI_ALLOW_PRIVATE_DELIVERY is a wider switch for sign-out and event delivery. It opens every private range for those paths. The metadata endpoints and the two translators above stay refused. If your applications are internal, prefer listing their addresses here.

Appearance

SIGNARI_THEME_DIRA directory of .html files replacing the built-in sign-in pages. Read once, at startup, because a directory being edited can hold a half-written file, and these are the pages people sign in through. A page here that fails validation is refused individually: that page falls back to the built-in one and a warning is logged, so a mistyped filename cannot lock every person out of every application. Validate before deploying with signari theme check, which exits non-zero. See Theming

Duo

SIGNARI_DUO_BASE_URLOverrides Duo's API host. Testing only

Client secrets

A client secret Signari generates is 256 bits from the system random source, so it is hashed with SHA-256 and compared in constant time, not with Argon2.

Argon2 exists to make brute-forcing low-entropy human-chosen passwords expensive. Against 256 bits there is no dictionary to run and no table to build: brute force means 2^256 attempts, however fast the hash is. Argon2 there adds a large cost and no security.

Measured, on the client_credentials grant:

Argon2idEntropy-appropriate
p5033.49 ms0.84 ms
p9940.25 ms1.97 ms
Throughput (16-way)174 req/s3402 req/s

19.6× the throughput, with no loss of security, because the secret is protected by its entropy, not by the cost of hashing it.

A secret whose entropy is not established, such as one imported verbatim from another provider (which could be hunter2), keeps Argon2. Verification dispatches on the stored format, so existing hashes keep working and are never weakened.

People's passwords keep Argon2id, unchanged. They are exactly the low-entropy case it was designed for.

Password policy

One gate every new password passes through: sign-up, recovery, the Admin API and the CLI. See Password policy.

SIGNARI_PASSWORD_MIN_LENGTHFloor, counted in characters not bytes (default 15, the floor for a password used on its own)
SIGNARI_PASSWORD_MIN_SCOREGuess-strength floor, 0–4 (default 3). It makes no network call and discloses nothing, so it is on by default: a default that accepted Password123! would let weak passwords through
SIGNARI_PASSWORD_HISTORYRefuse reuse of the last N passwords. 0 (default) disables it
SIGNARI_PASSWORD_BREACH_CHECK1 to consult Have I Been Pwned. Off by default, so that upgrading the binary does not start outbound calls you did not ask for
SIGNARI_PASSWORD_BREACH_LISTPath to a local SHA-1 corpus, for deployments that cannot call out at all
SIGNARI_PASSWORD_BREACH_REQUIRED1 to refuse when the corpus is unreachable. Default lets it through and logs a warning
SIGNARI_PASSWORD_BREACH_RECHECK_DAYSRe-consult the corpus at sign-in, at most this often per credential. A password that was clean when chosen and is breached now is flagged for change

Every password hash in the process draws on one memory budget of 512 MiB: the sign-in form, LDAP binds, RADIUS, outposts, signup and the Admin API. Each evaluation takes what its stored parameters need. Our own Argon2id takes 19 MiB. An imported Argon2id or scrypt hash takes what it declares, so a few expensive imports queue behind each other rather than exhausting memory. An imported hash that needs more than the whole budget cannot be verified, and its owner has to reset the password. signari_password_hashes_in_flight against signari_password_hash_slots shows how close the hasher is to saturation. An imported scrypt hash may ask for at most 256 MiB.

The hash's cost, and a pepper

SIGNARI_ARGON2_MEMORY_MIBMemory per new password hash, 19 (the default, the OWASP minimum) to 256 MiB
SIGNARI_ARGON2_ITERATIONSPasses, 2 (default) to 16
SIGNARI_ARGON2_PARALLELISMLanes, 1 (default) to 16
SIGNARI_PASSWORD_PEPPERSOptional secrets mixed into every new password hash, id:base64 separated by commas, the first the current one; each at least 32 random bytes, the id 1 to 16 lower-case letters or digits

signari passwords calibrate [-target 250ms] measures this host and says what to set. A value outside its range stops serve from starting, as does a malformed pepper, since hashing with anything other than what was set would give a weaker store than the one configured. A password hashed under a lower cost, or not with the current pepper, is rehashed at its next sign-in, so raising the cost reaches everybody who signs in.

A pepper is kept out of the database as the root key is, so a stolen database alone cannot be guessed against. Each hash names its pepper (k=<id> among its parameters). To rotate, put a new one first and keep the old one after it: every password moves to the new one at its next sign-in, and signari doctor counts the hashes still naming each. Removing a pepper a hash still names makes that password unverifiable, and its owner has to reset it.

Chrome Enterprise device trust

A third device posture source, feeding the same device_managed and device_compliant a policy already speaks. See Chrome Enterprise device trust.

SIGNARI_CHROME_CREDENTIALSGoogle service account JSON with the Verified Access scope. Absent, this source is off
SIGNARI_CHROME_CUSTOMER_IDRequired. Your Workspace customer id. Without it a device managed by any customer counts as managed
SIGNARI_CHROME_IMPERSONATEAdministrator the service account acts as, if delegation requires one
SIGNARI_CHROME_HEADERWhere the browser puts its signed challenge response (default X-Verified-Access-Challenge-Response)
SIGNARI_CHROME_REQUIRE_FIREWALL1 adds Google's osFirewall signal to the compliance verdict. Off by default: disk encryption and screen lock are near-universal on managed fleets, the host firewall is not, and requiring it unasked locks out estates that deliberately run without one. An absent signal counts as not satisfied, like every other signal

Kerberos (SPNEGO)

See Kerberos. signari kerberos check proves a keytab before anybody signs in with it.

SIGNARI_KERBEROS_KEYTABService keytab, for a host with no Kerberos realm of its own from signari kerberos add-realm. With neither, /login/kerberos is a 404
SIGNARI_KERBEROS_CONFThe krb5 configuration that names a Kerberos realm's Key Distribution Centers (KDCs), for checking a password against one. Absent, /etc/krb5.conf
SIGNARI_KERBEROS_REALMThe Kerberos realm, upper case by convention. Principals from any other Kerberos realm are refused
SIGNARI_KERBEROS_SPNService principal, e.g. HTTP/auth.example.com. Named, a ticket to any other service in the keytab is refused
SIGNARI_KERBEROS_STRIP_REALM1 to map alice@EXAMPLE.COM to alice rather than alice@example.com

Outposts

Set on the OUTPOST, not the core. See Outposts.

SIGNARI_OUTPOST_TOKENToken from signari outpost create. An alternative to -outpost-token, so it does not appear in the process list

Outpost kinds: ldap, radius, proxy, and desktop, the last for a credential provider or PAM module, which may verify a second factor as well as a password. See desktop and workstation sign-in.

Metrics, and the label rule

SIGNARI_METRICS_ADDR exposes GET /metrics in the Prometheus text format (version 0.0.4):

SeriesWhat it says
signari_http_requests_total{route,method,status}responses by route pattern, method and status class
signari_http_request_duration_seconds{route}latency by route pattern
signari_signins_total{outcome}, signari_auth_failures_total{mechanism}sign-ins, and failed authentications by mechanism
signari_tokens_issued_total{grant}, signari_sms_total{outcome}tokens by grant type; text messages by outcome
signari_csp_violations_total{directive}what browsers reported a page's policy refusing, at POST /csp-report. Nothing from a report is logged or kept, as it can name a URL carrying a code. Anybody can post one, so a rise is a reason to look and not a proof
signari_provider_calls_total{hook,outcome}extension-provider calls: answered, timeout, unreachable, bad_status, bad_answer, and for a failure failed_open or failed_closed
signari_outbox_pending, signari_outbox_oldest_pending_secondssign-out notices and security events still being retried, and how long the oldest has waited
signari_outbox_parkednotices that failed every attempt and will not be retried; kept so an administrator can see which application missed a sign-out
signari_audit_stream_lag_eventsaudit events the configured stream has not yet accepted (only when streaming is on)
signari_janitor_last_pass_timestamp_secondswhen this node last finished a janitor pass. Only the node holding the janitor's lock runs one, so alert on the newest across nodes
signari_signing_key_active_age_secondsage of the oldest active signing key
signari_db_pool_connections_*, signari_db_worker_pool_connections_*the request pool and the workers' pool
signari_password_hashes_in_flight, signari_password_hash_slots, signari_key_refresh_failureshasher saturation; consecutive failed key refreshes
signari_build_info{version,go_version,schema}always 1; the release, toolchain and schema
go_goroutines, go_heap_objects_bytes, go_memory_total_bytes, go_gc_cycles_total, process_start_time_secondsthe Go runtime

The backlog series query the database at scrape time, with a two-second deadline, and read NaN when it cannot be reached.

The monitoring kit has alert rules and a Grafana dashboard built on these series.

The HTTP series covers the Admin API as well as the protocol listener, under its own /admin/… route patterns.

Sign-ins and authentication failures are counted from the audit trail, so every sign-in path that records one (the form, LDAP, RADIUS, an outpost, Kerberos, a passkey) is counted. Tokens are counted where the token endpoint answers 200. Client-authentication failures are counted where a client's secret, certificate or assertion is checked. TestEveryDeclaredMetricIsIncremented fails on a series that nothing outside a test increments.

No label ever carries an identifier: not a person's id, subject, email, username, client id, session id, token or IP address. This is enforced structurally rather than by convention: every labelled metric declares the complete set of values each label may take, and a value outside that set is recorded as other. A bug that passes a subject id where an outcome was meant produces {outcome="other"} and never the id.

It is enforced this way because a metric leaves the systems Signari controls. It is scraped into a time-series database, retained for months and copied into dashboards, none of which POST /admin/subjects/{id}/erase can reach, so an identifier in a label cannot be removed. One series per person can also exhaust a Prometheus server's memory and take the monitoring down.

The HTTP counter is labelled by the route pattern, /admin/users/{userID}, never the request path, because a path containing a uuid is an identifier. An unmatched request reports route="other" rather than what was probed for, so a scanner cannot choose the label set.

There is deliberately no per-client, per-person or per-organisation series. This endpoint answers "is the deployment healthy", never "what is this organisation doing". The audit trail, which is queryable, access-controlled and erasable, answers the second question.

FIPS 140-3

No configuration; it is a build and runtime mode. See FIPS 140-3 for what works under it and what cannot.

Test-only

Read by tests, never by a running engine. Listed so the sweep does not report them as undocumented and so nobody sets them in production expecting an effect.

SIGNARI_TEST_DSNDatabase for the test suite
SIGNARI_DESTRUCTIVE_TEST_DSNA disposable database for tests that deliberately break the audit chain. See testing the chain
SIGNARI_DNS_CHECK, SIGNARI_DNS_DOMAINGate the live DNS deliverability test
SIGNARI_SMS_TWILIO_BASE_URLPoints the Twilio client at a local server
SIGNARI_TEST_PKCS11_MODULEThe SoftHSM module for the tests built with -tags pkcs11, where it is not in one of the places SoftHSM installs it
SIGNARI_TEST_VAULT_ADDR, SIGNARI_TEST_VAULT_TOKENA Vault or OpenBao server, and a token that may mount and unmount, for the transit tests. Each test mounts a transit engine of its own and removes it. Unset, they skip
SIGNARI_REQUIRE_INTEROPSet, a test that checks the engine against another implementation (the jose library through interop/verify.mjs, MIT Kerberos's KDC) fails when that implementation is missing, rather than skipping. CI sets it, having installed them, so the checks cannot stop running unnoticed
SIGNARI_ALLOW_SKIPPED_DB_TESTSSet to 1 to run the suite without a database. Most tests then skip, and the run proves little. The flag makes that an explicit choice rather than the result of an unset SIGNARI_TEST_DSN
SIGNARI_PAGE_PREVIEW_DIRDirectory to write a rendered copy of every sign-in page into, for looking at. Four variants each (your system setting, light, dark, and one carrying brand colours), plus an index.html contact sheet per variant. SIGNARI_PAGE_PREVIEW_DIR=/tmp/pages go test ./internal/pages/ -run Preview. Use it when changing a page or writing a theme: validation proves the cross-site request forgery (CSRF) token survived, not that the button is still visible