Docs Version v0.2
Docs menu

Running in production

signari command reference

Changed 60 min readv0.2

On this page

Introduction

This page lists every command the signari binary dispatches, with the flags each one takes. A test (TestEveryCommandIsDocumented) keeps it complete, so a new command cannot ship without an entry here.

Most commands need SIGNARI_DSN. Anything touching sealed material also needs SIGNARI_ROOT_KEY. See every environment variable.

How every command behaves

A command that edits configuration is cancelled after 60 seconds, so one stuck behind a lock fails instead of hanging a deploy script. A command whose work grows with the data has no limit: serve, setup, the three migrate commands that apply, export audit, audit checkpoint, audit verify, audit archive, both import commands, dir sync, scim sync, kerberos sync, keys rewrap-root, janitor once and restore finalize. proxy check has five minutes, and scim authorize, which waits for somebody to sign in, eleven. -timeout replaces any of these, and -timeout 0 removes the limit.

A command that names something by a slug, a name or an address also takes -org. Those are unique within one organisation at most. Without -org, the name must belong to exactly one organisation in the deployment, or the command refuses and asks which. A single-organisation deployment never needs it. This covers the System for Cross-domain Identity Management (SCIM) target, directory source and Remote Authentication Dial-In User Service (RADIUS) client commands, user locale and duo enroll.

Each command takes its own flags, and -dsn and -timeout: a flag it does not read is refused rather than ignored, and so is a word after the flags, where parsing stops. signari help <command> and signari <command> -h show what one command takes. A command exits 0 when it worked, 1 when it failed, 2 when it was used wrongly (no such command, a flag it does not take, one it needs left out), signari setup -check exits 2 when something is not set up, and signari plan exits 3 when the deployment differs from the file.

user create, group create, admin-token create, admin-token list, admin-token revoke, role list and role revoke also run with no database: given -admin-url, they make their change through the Admin API as the token in SIGNARI_ADMIN_TOKEN or -token-file, so it is recorded under that token and refused what the token may not do, from a machine that holds no database credentials. -org is then required, there being no only organisation to assume, and admin-token create -groups, which names groups, is refused in favour of signari api with their ids. Every other change is one signari api request away.

A listing that takes -o json prints its rows as a JSON array of objects, for a script to read instead of the columns, and version -o json one object; its text is unchanged without it. signari help <command> shows whether a command takes it. A secret is never in either.

First run

signari setupTake a machine with PostgreSQL 16 or newer to a deployment somebody can sign in to, in one command: the database, migration 0001 as a superuser, a generated password for signari_engine, the migrations after 0001 as signari_engine, the root key, the instance with its signing keys, an organisation and a one-time link, good for 72 hours, for the first administrator, and an env file serve starts from. It asks, at a terminal, only what it cannot work out: the address people will reach Signari at, which becomes the issuer (offered as https:// and the host's name when it has one that resolves, else http://localhost:8080); the first administrator's email; whether to use the PostgreSQL it found on this machine (a socket in /var/run/postgresql or /tmp, reached as the postgres system account when root, or 127.0.0.1:5432), or a URL for a PostgreSQL superuser; and whether to go ahead with the plan it prints. With no terminal, or with -yes, -json or CI set, it asks nothing, takes the same defaults, and a needed answer with none is an error naming its flag. -issuer, -email; -superuser-dsn or -superuser-dsn-file, used once and written nowhere, refused when the flag carries a password, which PGPASSWORD or the file holds instead; -database (default signari); -addr, where serve will listen (default 127.0.0.1:8080, written as SIGNARI_ADDR); -root-key-file and -env-file (default /etc/signari/root.key and /etc/signari/signari.env for root, else root.key and signari.env under $XDG_CONFIG_HOME/signari, or ~/.config/signari). A setting the env file names with no value, such as a blanked SIGNARI_DSN=, is missing, and setup writes that line again with the value. The env file is 0600 and holds SIGNARI_DSN as signari_engine, SIGNARI_ROOT_KEY_FILE, SIGNARI_ISSUER and SIGNARI_ADDR; the root key is 32 random bytes in a 0600 file, never overwritten and printed only with -print-root-key. For an https:// issuer it also settles who ends Transport Layer Security (TLS), -tls. With proxy, a proxy in front ends it, and the engine stays on 127.0.0.1 and believes X-Forwarded-For from -trusted-proxies alone (default 127.0.0.1,::1), written as SIGNARI_TRUSTED_PROXIES and SIGNARI_CLIENT_IP_SOURCE=x-forwarded-for. It is the answer offered when something already listens on port 443 or 80 (read from /proc/net/tcp and /proc/net/tcp6), and when nothing suggests another. With files, Signari serves HTTPS itself, on the issuer's port (:443 unless the issuer names one), from -tls-cert and -tls-key, written as SIGNARI_TLS_CERT and SIGNARI_TLS_KEY; it is offered when Let's Encrypt has a certificate for the issuer's host under /etc/letsencrypt/live. With none, nothing is written, and TLS is left to be added. A certificate is refused unless its PEM parses, its key is its own, a name in it covers the issuer's host and it is valid now, and one that expires within 14 days is taken with a warning. Let's Encrypt's private key is root's alone, so setup, run as root, copies the pair to /etc/signari/tls/, owned by the service's account, and installs a certbot deploy hook, /etc/letsencrypt/renewal-hooks/deploy/signari, that copies each renewal and restarts the service, because serve reads its certificate only when it starts. A port below 1024, under the installer's unit, gets CAP_NET_BIND_SERVICE from a drop-in, /etc/systemd/system/signari.service.d/signari-setup-bind.conf. -check also checks the certificate the env file names. As root, a file setup makes belongs to the service's account, named by its directory: the installer makes /etc/signari root:signari 0750, so the service reads its key and env file and can replace neither, and a file root makes there is the signari account's, given to it on the open file before anything is written. Every check runs before anything is written: the database server's version, that the role is a superuser, that pg_hba.conf lets signari_engine sign in over TCP (and, if not, the line to add and where), that a root key opens the signing keys already there, and that a password the role already has is not one another database's deployment depends on. Each step is skipped when it is done, so a second run changes nothing and says so; on a failure, what the run made is taken back, except the database, which is never dropped, and the root key once anything may be sealed under it. Once the first administrator has set a password with the link, run it again and it makes them the organisation's org-owner, only while the organisation has none. The first administrator is the address -email gives, else the one the organisation's first invitation was for, which bootstrap made with the organisation: never the holder of a later invitation, who waits for an owner to grant them a role. -dry-run prints the plan and changes nothing; -json prints one JSON line for a script, with the link, and the progress on standard error; -check reads the env file and says what is set up and what is missing, through signari_engine alone, exiting 0 when all of it is there, 2 when anything is missing and 1 when it cannot tell. -dsn is refused: it names the engine's own connection, which setup makes. Every run except a dry run and -check appends to a log, -log-file (default /var/log/signari/setup.log for root, else setup.log under $XDG_STATE_HOME/signari, or ~/.local/state/signari), kept 0600: a header with the time, the release, who ran it and where, and the flags given, with any password in a URL replaced; then one line for each step, with its outcome (done, skip, wait or fail), when it began, how long it took and what it did or found. No secret is written to it: the engine's generated password, the superuser's password and PGPASSWORD, the root key, and the token in the first administrator's link are each replaced with …. A failed run prints the log's last 15 lines and its path. scripts/install.sh, which https://signari.dev/install serves, runs it after installing a release that has it (v0.1.0 does not), refuses a release older than the one installed unless given --allow-downgrade, says to restart a running service after it replaces the binary (as setup's summary does, systemctl restart signari, whenever the service is running), and keeps its own install.log beside setup's. -compose <dir> writes a compose project there instead of setting up this machine: compose.yaml (PostgreSQL 17, a one-shot setup service that is this command run against the project's PostgreSQL on every start, and the engine, each with a healthcheck, the database in the volume <project>_pgdata), .env (0600: the project's settings and a generated password for PostgreSQL's superuser, which the setup service alone uses), the engine's env file signari.env (0600: SIGNARI_DSN as signari_engine with a password of its own) and root.key (0600, mounted read-only), each written only when it is missing, so a second run keeps every secret. -addr is where the engine's port is published (default 127.0.0.1:8080), -image the engine image it runs (default signari:<release>, which install.sh --docker builds), and -tls is proxy, trusting Docker's address pools (172.16.0.0/12,192.168.0.0/16) unless -trusted-proxies says otherwise, or none; the flags that name what the project fixes (-superuser-dsn, -database, -root-key-file, -env-file, -tls-cert, -tls-key) are refused. -check -compose <dir> checks the project's files and then runs -check inside the project, where its PostgreSQL is reachable. Both record what they make, as they make it, in a manifest, /var/lib/signari/install.manifest for root (a directory root alone may write) and install.manifest beside the log otherwise, which signari uninstall reads
signari uninstallRemove what the installer and signari setup made on this machine, exactly as their manifest lists it, and nothing else: the service, stopped and disabled, and its unit; the certificate's copies, the certbot hook and the unit's drop-in; the env file; the logs; the binary; the signari system account; and each directory they made, once it is empty. It prints the plan first. -dry-run stops there; -yes removes it without asking, which a run with no terminal needs; -json prints one JSON line with each item's state (removed, kept, gone or failed) and the progress on standard error. The root key stays unless -delete-root-key is given, and the database setup made stays unless -drop-database is, which drops it on a superuser's connection (-superuser-dsn or -superuser-dsn-file, or the PostgreSQL on this machine, found before anything is removed), with the roles migration 0001 made, once no other database uses them. Each is confirmed: at a terminal by typing the key's path or the database's name, and otherwise by -confirm with the code a first run prints, which names the key by its content. Deleting the root key while keeping the database leaves every sealed secret unreadable, so it is confirmed instead with the sentence the command prints, delete the root key and leave <database> unreadable. The database is dropped before the key is deleted, and a key whose database could not be dropped is kept. What stays is still listed, for a later run. -compose <dir> removes a compose project by the manifest in that directory: docker compose down for the project, then its files, keeping the database's volume and the .env and signari.env that hold its passwords unless -drop-database is given, which removes the volume too. Exits 0 when everything it set out to remove is gone, 2 when it needs -yes or -confirm, and 1 when something could not be removed
signari healthcheckExit 0 when the engine on this machine answers GET /readyz with 200, and 1 otherwise: a container's healthcheck, in an image with no shell and no curl. It asks the port of -addr, else SIGNARI_ADDR, on loopback, over HTTPS when -tls-cert or SIGNARI_TLS_CERT names a certificate, which it trusts alone; it follows no redirect

Schema

signari migrate bootstrapApply 0001: roles, schemas, grants. Needs a superuser data source name (DSN)
signari migrate upApply 0002+ as signari_engine. The ordinary upgrade step. Two runs at once take turns: the second waits for the first, then finds nothing to apply. -lock-timeout (10s by default; 0 for none) fails a statement that waits longer for a lock, so a migration queued behind a long transaction does not hold every query on the table, and it can be run again; -statement-timeout bounds each statement (none by default). A migration whose first line is -- signari:no-transaction runs outside a transaction, so it can build an index CONCURRENTLY without blocking writes; it may hold only CREATE INDEX CONCURRENTLY IF NOT EXISTS and DROP INDEX CONCURRENTLY IF EXISTS, and an index a failed build left invalid is dropped so the next run builds it. Against a database ahead of the binary it applies nothing and says so; whether the binary may serve it is verify's answer. See Upgrading and rolling back
signari migrate allBootstrap then up, in one invocation, for containers
signari migrate statusApplied version, pending migrations, live fingerprint, whether it matches what the ledger recorded for the latest migration, and the oldest binary that may serve the database
signari migrate fingerprintPrint only the schema fingerprint, for pinning a release build. See Pinning a build to its schema
signari verifyRun the startup schema gate and exit: the version, which may be ahead of the binary when every migration since was declared compatible with the one before, then the fingerprint, organisation boundary included, against the build's pin or, unpinned, the ledger. Use in a deploy pipeline. See Pinning a build to its schema and Upgrading and rolling back

The engine refuses to start when the database version and the binary disagree, naming migrate up. A binary running against a schema it was not built for can corrupt data instead of failing with an error.

Running it

signari serveThe engine. -addr, else SIGNARI_ADDR, else :8080; -tls-cert, -tls-key. Refuses to start when its database connection, or with the Admin API on its SIGNARI_READ_DSN replica's, signs in as, acts as or may SET ROLE to a superuser or a role with BYPASSRLS, which would hand a compromised engine powers over the database server it never needs: serve as signari_engine, which signari setup arranges (Serving as signari_engine says how for an existing database). -allow-rls-bypass, or SIGNARI_ALLOW_RLS_BYPASS=1, starts it anyway and logs a warning saying so
signari doctorCheck a deployment's configuration and report what is wrong, including the audit chain, organisation tables without forced row-level security, janitor backlog, the largest tables, the PostgreSQL version and the schema against its ledger. Exits non-zero on a critical finding. -json prints the report as JSON for a script: signari doctor -json | jq '.findings[] | select(.severity == "critical")'
signari versionThe release, commit, Go toolchain, FIPS module, the schema version this binary expects and the fingerprint it is pinned to (none when unpinned). Needs no database. scripts/build-release.sh reads the pinned line before it tags. See Pinning a build to its schema
signari janitor onceRun one janitor pass by hand: expiry, sweeping, parking
signari plan / signari applyDeclarative configuration from a file. apply -prune to delete what the file omits. plan exits 3 when the deployment differs from the file, so a pipeline can tell drift from failure. The organisation is -org, else the file's org:, else the only one the database holds, refused when it holds none or several; unlike user create, neither makes one
signari helpEvery command, or signari help <group> the commands of one group and signari help <command> what one does and the flags it takes. Needs no database
signari apisignari api <METHOD> <path> [-data JSON|@file|-] [-if-match N]: one request to any Admin API route, as the token in SIGNARI_ADMIN_TOKEN or -token-file at -admin-url or SIGNARI_ADMIN_URL, e.g. signari api GET /admin/me or signari api PATCH /admin/organizations/<id>/settings -data '{"session_limit": 5}' -if-match 412. Prints the answer; a refusal exits 1 with the API's error. Needs no database: the change is the API's, recorded under that token and refused what its scopes and roles do not allow. See the Admin API
signari completionbash or zsh: a completion script for the commands, each group's verbs and each command's flags, e.g. source <(signari completion zsh). Needs no database

Instances, organisations and people

signari bootstrap-issuer <url> -email <first person> [-slug default] [-name Default]: a first run. An instance with its signing keys, an organisation, and a one-time link, good for 72 hours, for the first person to set up their account. Safe on every start: what exists is left alone, a link nobody has used is replaced by a new one, and once the organisation has anybody in it nothing is printed
signari instance createAn issuer and its first signing keys
signari instance add-alias-alias https://old.example.com [-retire-after 2026-12-31]: a legacy issuer this instance also claims while applications move across, for the instance SIGNARI_ISSUER names. Accepted by userinfo, introspection and the other token checks from the next request, until its retirement. See migrating
signari instance retire-alias-alias <url> [-retire-after <when>]: stop accepting an alias, now unless told when. Clients pinned to it get the instance's own issuer from then on
signari instance aliasesThe instance's aliases, their retirement, and how many clients are pinned to each
signari instance session-limitHow many sessions one person may hold at once, and whether the limit denies the new sign-in or ends the oldest session. 0 is unlimited and is the default
signari instance remember-device-org <id> -days 30: offer a "remember this device" box after a second factor. A browser that ticked it skips the sign-in flow's mfa stage for that many days, 1 to 90, unless the application requires multi-factor (acr_values=2, or client set-acr); such a session is single-factor. 0, the default, offers no box and stops every remembered device counting at its next sign-in. People list and forget theirs at /account/devices, and signing out everywhere forgets them all. Audited
signari instance org-status-org <id> -status suspended|active: suspend an organisation, refused at every entry point from the next request, or reactivate it. Nothing is ended, so a session or grant with time left resumes on reactivation. What is refused is listed under PATCH /admin/organizations/{orgID} in the Admin API. Audited admin.organization_suspended / admin.organization_reactivated
signari instance org-delete-org <id> says what deleting the organisation would remove and prints a code; -org <id> -confirm <code> deletes it, refused unless it was suspended first (org-status) and the code was read since nothing changed. Every person is erased as erase subject does (key shredded, sessions ended, applications told), then its clients and the organisation go, in one transaction. The audit trail is kept, since it is append-only and names people by id only. Audited admin.organization_deleted. Not offered by the Admin API: it is done with the database in front of you
signari instance org-budgets-org <id> [-tokens-per-minute N] [-sign-ins-per-minute N]: show an organisation's budgets, or set them: tokens its clients may be issued and sign-ins its pages may take, a minute, counted for it alone across every instance. A flag left out keeps that budget, 0 restores the deployment's default (6000 tokens, 1200 sign-ins). The same as PUT /admin/organizations/{orgID}/budgets
signari instance new-device-notice-org <id> -notice on|off: whether a sign-in from a new device is mailed (and texted, where a number is verified) to the person. A device is a browser on a system, read from the User-Agent without versions, and it is new when none of the person's sessions of the last 90 days came from it. A person's first sign-in in that time, and one on a device they chose to remember, are not told. On by default. Audited org.new_device_notice_set
signari instance reauth-window-org <id> -window 10m: how recently a session must have been signed in for its holder to change the account from /account: the password, the sign-in methods, the recovery codes, the sessions and the connected applications. An older session is sent to sign in again and brought back to the page. 1m to 24h, default 10m. An impersonation session changes none of them, whatever its age. Audited
signari instance session-lifetime-org <id> [-lifetime 12h] [-idle 30m] [-offline 720h] [-persistent on|off]: -persistent on makes the sign-in page offer "stay signed in on this device". A session signed in with it ticked gets a cookie that survives the browser closing, for what the session has left of its lifetime; nothing else about the session changes, so its idle limit and a sign-out end it as before. Off by default. The choice travels with a passkey or a provider's sign-in as well as the password form, and the second-factor page's "remember this device" is a different setting. A sign-in page that cannot tell which organisation it belongs to (a bare /login on a deployment with several) does not offer it. how long a session lasts from sign-in (5m to 720h, default 12h), and how long it lasts unused (5m up to the lifetime; 0 for no limit, the default). -offline is how long a grant of offline_access lasts from when it is given, whether or not the person stays signed in (1h to 8760h, default 720h; 0 ends each with its session). An offline grant survives a sign-out or its session expiring, and ends when every session the person has is ended (a password changed or reset, a factor reset, deactivation, "sign out everywhere") or when they remove the application. The person sees until when at /account/connected. A grant given in an impersonation is never offline. Using it means the browser presenting its cookie, or an application refreshing a token under it, and the use is written at most once a minute. A session never outlives the lifetime it was signed in with, however much it is used, and the database refuses a deadline past it. A shorter lifetime or an idle limit applies to live sessions at once; a longer lifetime lengthens none already signed in. Either flag left out keeps the current value. Audited
signari instance password-binds-org <id> -binds refuse_when_mfa or allow. Whether Lightweight Directory Access Protocol (LDAP) binds, RADIUS PAP and outposts may sign in with a password alone somebody the sign-in flow would ask for a second factor. A code can always follow the password, password;123456, and RADIUS asks for one with an Access-Challenge. Organisations created since migration 0128 refuse; older ones allow until changed, and signari doctor names each one with a listener or outpost. Audited, and bumps the configuration version. See LDAP
signari instance related-origins-issuer <url> -related-origins https://example.co.uk,https://shop.example: further origins a passkey made under the instance's RP ID may be used from, such as a country or brand domain, or an application on another host (WebAuthn Level 3 related origin requests). Each is an https origin in lower case, with no path; empty clears them. The engine accepts a ceremony from each, and a browser allows it only when https://<rp_id>/.well-known/webauthn lists it. The engine serves that document when the RP ID is its own host; otherwise the command prints it to host there. An application on a related origin can also derive its own keys from the passkey with the WebAuthn PRF extension, at its own origin
signari instance webauthnThe WebAuthn Relying Party ID passkeys are bound to. Passkeys are unavailable until this is set. A credential made under example.com works on login.example.com; one made under login.example.com does not work on example.com, and changing the value invalidates every credential already enrolled
signari user createA person with a password, in the organisation -org names. Subject to the password policy. Without -org it uses the only organisation there is and refuses when there are several
signari user localeThe language this person's security notices are written in, as a BCP 47 tag, and their pages once they next sign in. Empty returns them to the deployment default. The person sets the same thing from their account page
signari user remove-factor-email <address or username> [-org <id>] -factor totp|email_otp|sms_otp|duo|webauthn|recovery [-factor-id <id>]: remove a sign-in method from somebody whose phone or key is lost, as the Admin API's DELETE /admin/users/{userID}/factors/{kind} does. Every session they hold ends, and they are told by email and a verified number, delivered by Signari's outbox. A passkey is named by its id, since a person may hold several; recovery alone removes the whole set. Their next sign-in enrols a new method where a flow requires one. Audited admin.factor_removed
signari user passkey-link-email <address or username> [-org <id>] [-link-expires <duration>]: email somebody a link that registers one passkey with no session, for a new starter with no password or somebody whose only way in is lost. It works once, for a day unless -link-expires says otherwise (1m to 168h), and replaces any earlier link they had not used. The token is minted as serve's outbox sends the email and only its hash is kept, so it is never printed: whoever runs this cannot use it. Refused for an account that is not active or has no address. The Admin API's POST /admin/users/{userID}/passkey-link does the same. Audited admin.passkey_link_issued
signari user approve-email <address or username> [-org <id>]: let a self-sign-up waiting for approval (signup enable -require-approval) sign in, and have the engine tell them so. Refused for an account that is not pending. The Admin API's PATCH /admin/users/{userID} with active: true does the same. Audited admin.user_approved
signari user unlock-email <address or username> [-org <id>]: clear what wrong guesses charged to this person, the sign-in delay and the per-account and second-factor budgets, for somebody sent to wait who cannot. The next wrong password is charged as before; the per-address budgets are left. The Admin API's DELETE /admin/users/{userID}/throttle does the same. Audited
signari instance sms-numbers-org <id> -sms-numbers stored|hashed: whether the organisation keeps each person's SMS number, or only a keyed hash of it under the person's own key. Hashed, the person types their number on the code page to be texted a code, and is texted no account notices; a number already stored is replaced by its hash at the person's next sign-in. Back to stored applies to numbers enrolled from then on, since a hash cannot be read back. See SMS codes. Audited
signari instance totp-policy-org <id> [-totp-algorithm SHA1] [-totp-digits 6] [-totp-period 30s]: what new authenticator apps are enrolled with: SHA1, SHA256 or SHA512; 6 or 8 digits; 30s or 60s. Each run writes all three, and a credential keeps what it was enrolled with, so a change never breaks a phone that already works. Not every authenticator app computes SHA256 or SHA512, or shows 8 digits or 60s codes; one that does not shows codes that never match. SHA256 is what lets a deployment under fips140=only enrol authenticator apps at all (FIPS 140-3). Audited
signari user assign-otp-email <address or username> [-org <id>] -seed-file <path> -code <now> [-hotp -next-code <after> | -yubico] [-totp-algorithm] [-totp-digits] [-totp-period]: make a hardware OATH token the person's authenticator, replacing the one they have, from the seed its vendor shipped. The file holds the seed as base32, or hex after hex:, so it never appears in a process list or shell history. -code is what the token shows now. A counter-based token (-hotp) gives two consecutive codes, found among its first 1000 presses, which also set where its counter stands; at sign-in it accepts the next ten presses. A seed whose codes do not match is refused, rather than stored to refuse the person at their next sign-in. -yubico makes a YubiKey's Yubico OTP slot the authenticator instead. The file then holds the private ID and the AES key the slot was configured with, in hex, as two fields in either order. -code is an OTP the token types now, which proves both and gives the token's public ID. At sign-in each OTP is decrypted under that key, with no validation service asked, and accepted once: its use and session counters must be past the last accepted. A token has one holder across the instance, so it cannot be given to a second person until it is removed from the first. The person is told, by email and a verified number. Audited mfa.otp_token_assigned, with the kind, and the public ID for a Yubico token
signari instance login-throttle-org <id> [-free-attempts 3] [-max-delay 15m]: the sign-in delay. That many wrong passwords for one account are free, then each costs a wait of 1s doubling to the longest, and each failure counts for an hour. 1 to 20 and 1m to 24h; either alone leaves the other. A delay, not a lockout, since a lockout would let anyone disable an account by naming it. Audited
signari instance mail-sender-org <id> -mail-from <address> [-mail-from-name <name>] [-dkim-selector <selector>], or -org <id> -clear: the address this organisation's mail comes from, on the envelope and the From line, in place of SIGNARI_MAIL_FROM. Prints what that domain's DNS says about SPF, DKIM, DMARC and MX, with the record to publish, and refuses nothing, since a domain can be set up after the sender is named. Audited. See Mail
signari group create / group list / group member / group releaseGroups, membership, and which clients may see them. group list counts everybody in each group, through the groups inside it too, and names the groups each is inside
signari group nest-org <id> -group <name> -in <name> [-remove]: put a group inside another, so everybody in it is in that one and every group above it (see groups inside groups), or take it out. A loop is refused. Says how many people that puts in the group, and warns when it gives them impersonation they did not have
signari group impersonationGrant or revoke a group's ability to act as another person. Deliberately not in the Admin API: a groups:write token is issued for day-to-day administration, and letting one grant this would let every such token act as any person. See Support access
signari webauthn policy / webauthn showWhich authenticator models an organisation accepts, and what attestation to ask for. An allow-list admits only a registration whose attestation is a certificate chain anchored in the FIDO catalogue (see SIGNARI_FIDO_MDS_* in every environment variable), because any other AAGUID is chosen by the authenticator being filtered. Without a catalogue, every registration under an allow-list is refused. -refuse-cloned (on by default) refuses a passkey sign-in whose signature counter did not advance, the sign of a copied authenticator; -refuse-cloned=false records it and signs the person in. Synced passkeys report no counter and are unaffected. The ceremony is set here too, and each run writes the whole policy, so a flag left out returns to its default. -user-verification required (the default) refuses a passkey sign-in without a PIN or biometric. preferred admits it as a single factor, so a flow that asks for a second factor asks for one, and a key touched again is not it. -resident-key required (the default), preferred or discouraged: a credential that is not discoverable signs in only as a second factor. -attachment platform or cross-platform limits the kind of authenticator the browser offers. That is a request to the browser, and only an allow-list with attestation proves the model. -algorithms holds a registration to the listed algorithms, in order of preference, from ES256, ES384, ES512, RS256, RS384, RS512, PS256, PS384, PS512 and EdDSA. Left out, all ten are offered in that order. -ceremony-timeout (30s to 5m, default 5m) is how long the browser waits and the challenge is held. -hints passes security-key, client-device or hybrid to the browser. The Admin API's /admin/organizations/{orgID}/webauthn-policy reads and sets the same policy
signari invite create / invite listInvitations. invite create -org <uuid> [-email <addr>] [-groups <list>] [-expires 168h] [-send] prints the link once, or with -send (which needs -email) has the engine mail it instead, through the outbox, so it is never printed. The list shows each one's id
signari invite revoke-org <uuid> -invitation <id>: close an open invitation, so its link stops working at once. Audited
signari signup enable / signup disable / signup showSelf-service sign-up, and which email domains may use it. signup enable -org <id> -domains <list> [-groups <list>] [-verify-email=false]: by default a new account proves its address with a code sent to it before its first sign-in (the sign-in flow's verify_email stage), since without that a domain in the rule is only what somebody typed; -verify-email=false lets accounts in on an unproved address, and their tokens say email_verified: false. -require-approval makes each new account wait, pending and unable to sign in, until an administrator approves it
signari registration enable / registration tokenDynamic client registration (RFC 7591). -allow-confidential lets a registrant asking for a secret get one; the whole policy is written each run, so it is off unless repeated. See Dynamic client registration
signari registration revoke-org <uuid> -name <n> or -token-id <uuid>: stop a registration token before it is spent or expires. -name is refused when two live tokens share it, naming both
signari erase subjectErase a person: destroy their data-encryption key so their ciphertext is permanently unreadable in the database and in every later backup, and remove their account, which holds their address and names, after ending its sessions. A person with no key is erased too. See Erasing a subject
signari restore finalizeAfter restoring a backup and before serving it: end every session and refresh family the restore brought back, queue a Back-Channel Logout notice and a Continuous Access Evaluation Profile (CAEP) session-revoked event for each application, and record restore.finalized. -confirm repeats the database's name, because it signs everybody out. Running it again ends only what is still live. See Backup and restore

There is no signari delete.

Clients

signari client createRegister an OAuth client in the organisation -org names (or the only one there is)
signari client set-keysSwitch to private_key_jwt with a public JSON Web Key Set (JWKS). -keep-auth registers the keys and leaves how the client authenticates alone, for a client that signs requests or is encrypted to (Signed and encrypted responses)
signari client set-encryption-client-id <id> -for id_token|userinfo|authorization|introspection -alg RSA-OAEP-256|ECDH-ES [-enc <enc>]: encrypt it to a key the client registered. -enc is A128CBC-HS256 by default, or A256CBC-HS512, A128GCM or A256GCM. -alg "" stops. See Signed and encrypted responses
signari client set-tlsmTLS client authentication and certificate-bound tokens
signari client set-dpopRFC 9449 §5.2: require a Demonstrating Proof of Possession (DPoP) proof on every token request from this client
signari client set-pkce-client-id <id> [-require-pkce=false]: whether this client's authorization requests must carry a Proof Key for Code Exchange (PKCE) challenge. Every client requires one from creation; the opt-out is for an application that cannot send one, and a public client cannot take it, here, at client create -public or through the Admin API. The schema refuses one as well (clients_public_requires_pkce). Audited, and moves the configuration version
signari client set-logout-client-id <id> -post-logout-redirects a,b -frontchannel-uri https://… [-frontchannel-sid=false] [-backchannel-uri https://… -backchannel-sid=false]: where RP-Initiated Logout may return the browser, and the Front-Channel Logout URI. Those three are set together; empty clears. -backchannel-uri is where a logout_token is posted at sign-out, https with no fragment, and -backchannel-sid whether it carries the session's sid; each is left alone unless given, since dynamic registration sets them too. See registering an application's sign-out
signari client set-lifetimes-client-id <id> [-access-ttl 10m] [-refresh-ttl 720h] [-refresh-grace 10s] [-consent-ttl 2160h|never]: how long this client's tokens live, and how long a person's consent to it lasts. Access tokens from a minute to an hour, refresh tokens from five minutes to a year; each alone leaves the others. -refresh-grace, 30s at most and 0s for none (the default), lets a client that lost the answer to a refresh present the old token once more within that time and get the same answer back, rather than ending the lineage as any other reuse does. Only while the successor is unused, and only once; the successor is sealed under a key from the old token, so a read of the database opens nothing. A stolen token used inside the window goes unnoticed until the window has passed, which is why it is per client and off by default. An access token's lifetime is also how long it keeps working after it is revoked, and lowering it does not reach tokens already issued. Default 5m and 720h. A consent from an hour to ten years, or never (the default): past it, the next authorization asks the person again, for what is requested then, and nothing of the old consent comes back with their answer. Tokens already issued keep their own lifetimes
signari client name-client-id <id> -locale <BCP 47 tag> -name <name>: the client's name in that language, RFC 7591's client_name#<tag>, shown on the consent screen and every page naming the client to a person asking for that language; -remove takes that language's away. Its other names are kept, and a tag differing only in case replaces the one there. See the name in other languages
signari client set-alg-client-id <id> -alg <alg>, one of ES256, ES384, ES512, RS256, RS384, RS512, PS256, PS384, PS512 or EdDSA: what signs this client's ID and access tokens. Default ES256; EdDSA is per client only. -access-alg <alg> signs its access tokens alone, for a resource server that takes something else, and -access-alg "" goes back. -response-alg <alg> signs its authorization responses and holds it to asking for them signed, and -response-alg "" lets go of both (signed authorization responses). -userinfo-alg <alg> signs its userinfo responses, and -userinfo-alg "" goes back to JSON. -introspection-alg <alg> signs an introspection answer it asks for as a JSON Web Token (JWT), and -introspection-alg "" goes back to RS256. Refused unless the instance holds an active key of that algorithm (signari keys rotate -alg <alg> publishes one, and promotes it a day later)
signari client set-issuer-alias-client-id <id> -alias <url>: mint this client's ID and access tokens under a legacy issuer the instance claims, so the application moves with a DNS change. Only a live alias of the client's own instance; with no -alias the pin is cleared
signari client set-state-client-id <id> [-require-state=false]: refuse an authorization request with no state, for an application whose cross-site request forgery (CSRF) defence is state; =false lifts it. The client PATCH and apply take require_state
signari client set-signed-requests-client-id <id> [-require-signed=false]: refuse any authorization from this client that is not a signed Request Object, by value or pushed. See Signed authorization requests
signari client set-par-client-id <id> [-require-par=false]: refuse any authorization this client did not push first, RFC 9126's require_pushed_authorization_requests; =false lifts it. See Pushed Authorization Requests
signari client set-admin-api-client-id <id> [-admin-api=false]: let the client obtain tokens for the Admin API, the audience <issuer>/admin, which act with their holder's roles; =false refuses its tokens there from the next request. Changing such a client through the Admin API then needs privileged-users:write
signari client set-token-format-client-id <id> -token-format jwt|opaque: what this client is given as an access token. opaque is a handle saying nothing to whoever holds it, which a resource server takes to the introspection endpoint. Tokens already issued stay what they are
signari client set-subject-type-client-id <id> -subject-type public|pairwise [-sector <host>]: how this client's tokens name a person. pairwise is an identifier that means nothing outside the client's sector, so applications in different sectors cannot correlate a person. The sector defaults to the one it has, or the host of its redirect URIs when they have only one. The client stops recognising anybody it knew by the old subject
signari client set-profile-client-id <id> -security-profile none|fapi2|fapi2-message-signing: hold this client to the FAPI 2.0 Security Profile, and with the last to signed requests and responses as well. Refused until it meets the profile, naming what is missing
signari client set-login-ui-client-id <id> -url <page>: the sign-in page of its own a client's authorization requests go to, which also lets it walk a sign-in over JSON. https, or http on localhost; empty goes back to this server's page
signari client set-roles-claim-client-id <id> -claim <name>: the claim this client's ID tokens, access tokens and userinfo carry a person's roles in the application under; -claim "" carries none
signari client set-first-party-client-id <id> [-first-party=false]: skip the consent screen for this client, which is yours; =false shows it again. Every other check still applies
signari client set-acr-client-id <id> -minimum-acr 2: require multi-factor for this client whatever its request asks for; 1 accepts a single factor again; 3 requires a passkey or security key, 4 one bound to its device (above multi-factor). A session with one factor is asked for a second at the next authorization, someone with none enrolled is refused with unmet_authentication_requirements, and a device or backchannel approval or a refresh from such a session is refused. The Admin API's client PATCH (minimum_acr) and signari apply set the same. See requiring multi-factor for one application
signari client set-exchange-client-id <id> -exchange-audiences a,b: grant RFC 8693 token exchange to a confidential client, for itself and the audiences named; -may-exchange=false withdraws it. The same permission the Admin API's client PATCH (may_exchange, exchange_audiences) and signari apply (token_exchange) set
signari client set-exchange-containmentRFC 8693: only exchange subject tokens this client holds or is named in the audience of
signari client id-jag-allow / client id-jag-audiences / client id-jag-forget-client-id <id> -audience <issuer> -remote-client-id <name> [-resources a,b] [-scopes a,b] [-alg RS256|ES256]: let a client have a cross-application grant for another authorization server. See cross-application access
signari client set-hybridPermit hybrid response types
signari client set-claims-redirectsUser-Managed Access (UMA) 2.0 §3.3.2: where a requesting party may be returned after claims gathering. A separate list from redirect_uris, because the specification forbids reusing those. See UMA 2.0
signari client set-grantsWhich grant types this client may use (RFC 6749 §5.2)
signari client set-cibaClient-Initiated Backchannel Authentication (CIBA) delivery mode: poll, ping or push. Dynamic registration may only take poll: ping and push have this issuer POST to a URL the client supplies, so an administrator grants those deliberately

Verifiable credentials

signari credential defineDefine a credential this issuer mints: a Selective Disclosure JWT (SD-JWT) VC, or with -credential-format jwt_vc_json a W3C credential signed as a JWT, disclosed whole, whose -vct is its type. -require-key-attestation issues it only to a key a trusted attester vouches for, and advertises key_attestations_required; -wallet-initiated lets anybody signed in ask for it from a wallet, with no offer naming them; -revocable gives each one a place in a status list. Left out, a redefinition keeps each setting
signari credential listShow the credential configurations published
signari credential issued-org <id> [-email <address>]: what has been issued from a -revocable configuration, and how each stands
signari credential revoke-org <id>, and -credential <id> for one or -email <address> for all a person holds. It cannot be undone; a verifier sees it the next time it fetches the list (taking a credential back)
signari credential requests-org <id>: what wallets have asked for of a -deferred credential, waiting on a decision. See a credential somebody has to look at first
signari credential decide-org <id> -request <id> -decision approve|deny: answer one. The wallet learns it the next time it asks, and a decision stands
signari resource add / resource list / resource remove-org <uuid> -resource <uri> [-name <n>] [-scopes a,b]: the RFC 8707 resources this organisation's tokens may be audienced to. A resource a client asks for that is not registered is refused with invalid_target, at authorize, Pushed Authorization Requests (PAR) and device authorization and again at minting, so removing one stops refreshes for it too. With none registered, every resource is refused. See Resource indicators
signari credential trust-root-org <id> -name <n> -root-cert <ca.pem>: trust a CA for OpenID for Verifiable Credential Issuance (OID4VCI) key proofs that carry an x5c chain. One certificate, a CA, unexpired; a file holding a private key is refused. The same name replaces. With none registered, every x5c proof is refused. See OID4VCI
signari credential rootsList the CAs x5c key proofs may verify to
signari credential untrust-root-org <id> -name <n>: withdraw one; chains to it are refused from the next credential request
signari credential encryption-keyMake a new key for wallets to encrypt a credential request to, and offer encrypted credentials. Again, it rotates: the previous key still opens, the one before stops (a credential only the wallet can read)
signari credential offerMint an OID4VCI Credential Offer. -by-reference keeps it here and prints a short address, for a QR code. -authorization-code has the holder sign in to take it up, rather than handing the wallet a code. See OID4VCI

Keys and audit

signari keys list / keys rotate / keys retireSigning keys; rotation is next → active → passive → retired. keys rotate -alg <alg> also publishes the first key of an algorithm, and -rsa-bits 2048|3072|4096 sizes an RSA one. See Key rotation. keys list says where each key is held, database or pkcs11 (signing keys in a module)
signari keys rewrap-rootRotate SIGNARI_ROOT_KEY itself. Re-seals every root-wrapped secret (signing keys, per-subject DEKs, and every integration credential) in one transaction: from the current key to SIGNARI_NEW_ROOT_KEY with the deployment stopped, or, with it running, from SIGNARI_ACCEPTED_ROOT_KEY to SIGNARI_ROOT_KEY once every node seals with the latter, which it checks and refuses otherwise, naming the nodes. -dry-run performs the whole rotation and rolls back, so you can learn whether it would succeed without risking the deployment
signari audit checkpointAnchor the audit chain. See living with a chain that is already broken
signari audit verifySay whether the audit chain verifies, the whole of it or since the latest checkpoint, as an export judges it; exits non-zero and names the entry when it does not. Needs no Go toolchain. signari doctor reports the same. Every signed head in the trail is checked against the entry it covers. -head <jws> or -head @<file> also checks a head kept outside the database, from the audit stream or an export, which catches a rewrite recomputed after every head in the database was removed. -file <archive> checks an archive file instead, with no database
signari audit archive-until YYYY-MM-DD -out <file> -by <name>: write the entries before that date to a new file that verifies on its own, then remove them from the database, recording in the chain the last archived hash and the file's SHA-256, so the trail left verifies from it. Refused unless the whole chain verifies. See archiving the oldest entries
signari export auditExport the trail
signari export org-org <uuid> [-out <file>]: write the organisation's configuration (groups, clients, Security Assertion Markup Language (SAML) providers, RADIUS clients, protected hosts) as the file signari plan and signari apply read, sorted so two exports of one configuration are one file. Against the organisation it came from it plans nothing; applied to an empty deployment (apply -org <new uuid> -f <file>) it recreates it. Secrets are not in it: a confidential client applied from it has none until one is rotated, and a RADIUS client none until radius add-client sets it, so a RADIUS client's enabled is left out
signari export subject-subject-id <uuid> [-out <file>]: write everything kept about one person as JSON, with every credential's value withheld and personal attributes unsealed, so it needs SIGNARI_ROOT_KEY. The file is created readable by its owner only, and the export is audited admin.subject_exported. See Exporting a person's data
signari admin-token create / admin-token list / admin-token revokeAdmin API credentials. create -name <n> -scopes <list> [-org <uuid>] [-clients <ids>] [-groups <names>] [-attributes <names>] [-expires-in 2160h]: ninety days unless -expires-in is given, and -expires-in 0 for one that never expires. The Admin API mints, rotates and revokes them too, each only for a token no wider than the caller; see Admin API access
signari role grant / role list / role revokeAdministrative roles. grant -org <uuid> -role <org-owner|user-manager|app-manager|auditor> (-email <address> | -client-id <id>) [-group <name>]: a person or an application holds the role in that organisation, a user-manager with -group over that group's members only; this is how the first owner is made. list -org <uuid> names each binding's id; revoke -org <uuid> -binding <uuid> takes one away, refused from the holder's next request. See administrative roles

Federation in

signari idp add / idp listAn upstream OpenID Connect (OIDC) or OAuth provider. The -slug is unique across the deployment, not per organisation: it is the sign-in URL (/login/with/<slug>), which names no organisation. -kind oauth2 is a provider with no ID token, and takes -authorize-url, -token-url and -userinfo-url, -idp-scopes, and the paths -userinfo-subject, -userinfo-email, -userinfo-email-verified and -userinfo-name; see Federated sign-in providers. -trust-email-verification is for a generic oidc or oauth2 provider and refused on a named one, whose belief in email_verified is decided by what that provider is known to do. -kind saml takes -entity-id, -sso-url and -sp-cert, or -metadata with -metadata-signer or -metadata-unsigned in their place; see SAML metadata
signari idp disable / idp enable-slug <slug>: take an upstream provider out of service, or put it back. Disabled, its sign-in and link routes, its SAML assertions and its jwt-bearer assertions are refused from the next request, and its button leaves the sign-in page. Settings and every account's link to it are kept, so enabling restores them. Sessions already signed in through it are not ended. Audited, and moves the configuration version
signari idp assertionsAllow or refuse RFC 7523 assertions from a provider. See the jwt-bearer grant
signari idp link / idp unlink / idp links-slug <slug> -subject <sub> [-email <person>]: attach an upstream subject to a person in the provider's organisation, detach it, or list them. The jwt-bearer grant mints for the person an assertion's sub is linked to, and a key-publishing issuer is never a sign-in option, so this is the only way its links are made. A person is one subject at a provider, and a subject acts as one person: linking a subject that already acts as somebody else is refused rather than moved, so unlink it first. See the jwt-bearer grant
signari idp add-issuerRegister a key-publishing issuer (GitHub Actions, Kubernetes) for the jwt-bearer grant
signari idp add -kind oid4vpA wallet sign-in: this deployment as an OpenID for Verifiable Presentations (OpenID4VP) verifier. -client-id-prefix x509_san_dns|x509_hash|redirect_uri, -vct (the credential types, separated by commas), -subject-claim (the claim that identifies a person within the issuer, a name or a JSON path), -email-claim and -name-claim (optional), -wallet-url (openid4vp:// unless a wallet's https link is given), -response-mode direct_post|direct_post.jwt (the second has each answer encrypted to a key of its request's own), and under an x509 prefix -client-key-file and -client-cert-file, the key requests are signed with and its chain, leaf first. -cross-device lets the wallet be on another device too, and -dc-api asks through the browser's Digital Credentials API too (both below). -credential-format mso_mdoc asks for an ISO mdoc instead of an SD-JWT VC: it takes -doctype (such as org.iso.18013.5.1.mDL) in place of -vct, -root-cert, the issuing authority's IACA certificates, and claim paths of two parts, namespace then element, such as ["org.iso.18013.5.1","document_number"] (signing in with an ISO mdoc). Its sign-in URL is /oid4vp/<slug>/start
signari idp vp-dc-api-slug <s>: where a browser offers its Digital Credentials API, the wallet sign-in's page asks through it too; the answer comes back to that page and is held to this server's origin (wallet sign-in through the browser). -remove takes it away again
signari idp vp-iaca-slug <s> -root-cert <pem>: replace the IACA certificates a wallet sign-in that asks for an ISO mdoc believes, as an issuing authority's re-key needs; its document signer has to lead to one of them, with the same country and state (signing in with an ISO mdoc). Refused for a sign-in that asks for an SD-JWT VC
signari idp vp-cross-device-slug <s>: the wallet sign-in's page offers a code to scan with a wallet on another device as well as this one. Such an answer signs in only an account already linked to the credential, with an address, once the code emailed there is typed where the sign-in began; a signed prefix only, and mail has to be set up (the wallet on another device). -remove takes it away again
signari idp vp-issuer-slug <s> -issuer <iss> -jwks-file <file>: a wallet sign-in believes credentials from that issuer, checked with the public keys in the file, or with them replaced; -keys-from-metadata in place of the file checks them with the keys the issuer publishes in its JWT VC Issuer Metadata, read for each presentation, for an https issuer (where an issuer's keys come from); -root-cert <cas.pem> in place of either checks them with the key of the x5c certificate chain each credential carries, which has to lead to one of those CAs and name the issuer, with the CRLs that chain names read for each presentation; -remove stops believing it. One of the three, never two. Until one is named, it believes nobody
signari client set-assertion-issuersWhich issuers' assertions a client may exchange. Empty permits none. See the jwt-bearer grant
signari idp apple-secretMint the client secret Apple requires (a signed JWT that expires)
signari dir add -kind google / -kind entraDirectory sync from the two most common sources. google, entra and ldap are values of -kind, not commands of their own
signari saml add-sp / saml listSAML applications. -metadata <file or https URL> with -metadata-signer <certificate> or -metadata-unsigned, by name, reads the provider from what it publishes in place of -acs, -slo and the certificates; -entity-id chooses it from an aggregate, and -metadata-encrypt encrypts assertions to the key it offers. See SAML metadata. -artifact-acs <urls> adds endpoints that take the response by artifact (the Artifact binding), and -ecp-acs <urls> PAOS endpoints, which let a client that is not a browser sign people in (signing in without a browser), and -artifact-resolution 1=<https URL>,... where the provider resolves the artifacts it sends its requests by (requests by artifact)
signari saml refresh-sp-entity-id <id> [-metadata <file or https URL>] [-metadata-signer <certificate>] [-metadata-unsigned] [-dry-run]: read a SAML application's metadata again, from where it was read and against the signer it was checked with, and say what moved. Nothing does this but this command. Audited. See reading metadata again
signari idp refresh-saml-slug <slug> [-metadata <file or https URL>] [-metadata-signer <certificate>] [-metadata-unsigned] [-dry-run]: the same for a SAML upstream, whose key rotates
signari idp saml-key-slug <slug> [-purpose signing|encryption] [-retire <key id>]: make a key toward a SAML upstream, sealed under the root key, retire one, or with neither list them. Its certificate goes out in the upstream's metadata, and an older key stays until it is retired, so a rotation can overlap
signari idp saml-use-slug <slug> [-sign-requests=true|false] [-require-encryption=true|false]: say whether the upstream is sent signed requests and must encrypt what it sends. Refused with no live key to do it with
signari saml nameid-entity-id <id> [-attribute <name>]: take the provider's NameID from a declared attribute no person can edit, or username; no -attribute returns it to the format alone. See a NameID from an attribute
signari saml soap-logout-entity-id <id> [-url <https SOAP address>]: tell the provider of every session of it that ends, by a signed LogoutRequest from the outbox, with no browser needed; no -url stops. The address is also read from its metadata. See passing a sign-out on with no browser
signari saml wsfed-token-entity-id <id> -saml-version <2.0|1.1>: which SAML the application's WS-Federation token is in. 1.1 is for an application that reads nothing newer, and is refused to a provider with an encryption certificate. See SAML 1.1
signari saml org-endpoint-entity-id <id> [-org <uuid>] [-remove]: move a provider to its organisation's endpoints, or -remove back to the deployment's, which is refused while somebody else holds the entity ID there. The provider must be given the new metadata. Every command taking -entity-id takes -org too, and needs it for an entity ID two organisations hold. See one entity ID, several organisations
signari saml idp-initiated-entity-id <id> [-relay-state <s>] [-remove]: let a sign-in to the provider start at /saml/init/{id} and from the portal, with -relay-state going along with the response; -remove stops it. Off until set. See a sign-in that starts here
signari saml attribute-releaseWhich attribute of a person a SAML attribute carries. An explicit map, not a wildcard: a wildcard that released nothing, or everything, would look the same as one that worked
signari saml signing-entity-id <id> [-sign-assertions=false] [-sign-responses] [-assertion-lifetime 300] [-signature-alg rsa-sha256|ecdsa-sha256]: what is signed, how long an assertion lives, and with which key. A flag not given keeps its setting. A signed Response is signed after the assertion is signed and encrypted. Signing neither is refused, because the application would have nothing to check. ecdsa-sha256 signs with the active ES256 key and is refused when the provider's instance has none; give the provider /saml/metadata?sp=<id> afterwards, which then carries the ES256 certificates
signari saml group-releaseWhich groups a SAML application is told about, matching group release for OIDC clients. Group membership is authorization data, so it is an allow-list
signari scim-source add / scim-source listInbound SCIM
signari scim-source disable / scim-source enable-org <uuid> -slug <slug>: take an inbound provisioning source out of service, or put it back. Disabled, its bearer token is refused from the next request. Links, settings and the accounts it provisioned are kept. Audited
signari kerberos check / kerberos principals / kerberos syncKerberos and Simple and Protected GSS-API Negotiation Mechanism (SPNEGO), keytab checking, principal import. kerberos sync creates the Kerberos realm's people pending, a dry run unless -apply; -adopt-existing marks people already here pending too, if they have no password here and no finished migration (a Kerberos realm used for directory sync)
signari kerberos add-realm-org <uuid> -realm <REALM> -host <name> -spn <principal> -keytab <file> [-strip-realm] [-trust-realms A,B] [-create-accounts]: give an organisation a Kerberos realm of its own, chosen by the host a browser asks for a ticket to. The keytab is sealed under the root key. Refused if it holds no key for the principal. See a Kerberos realm for each organisation
signari kerberos list-realms-org <uuid> [-o json]: an organisation's Kerberos realms. A keytab never comes back
signari kerberos remove-realm-org <uuid> -realm <REALM>: forget a Kerberos realm and its keytab, on commit
signari dir add / dir syncDirectory sync from LDAP, Entra or Google. An LDAP source's -ldap-url can name replicas, separated by spaces, tried in order
signari dir test-slug <slug>: read a source as a sync would, and say where it stopped: connect, bind, search, or the identifier a flavour tracks people by. Changes nothing, works on a disabled source, and exits non-zero when the directory cannot be read
signari dir list-org <uuid>: each source's settings and what its last sync did: when it ran, how many people it created, updated and deactivated, and its last error
signari dir group-mapWhich local group a directory group grants. A sync grants nothing that is not mapped here, so a directory reporting domain admins cannot make anybody an administrator of this system by name alone
signari dir setWhether a source is enabled, in dry run, what it does with people the directory stops returning, and the deactivation ceiling: the share of an organisation one sync may deactivate before the whole plan is refused. A failed fetch looks the same as every person having left, and the ceiling stops the reconciler acting on it. -fetch-groups fetches memberships so mapped groups are reconciled, and -group-attribute names the LDAP attribute (memberOf when empty); both also on dir add. -attribute-map remote=local,... says which LDAP attributes feed declared attributes, email or name, and empty clears it; see LDAP as a source. -sync-interval <seconds> has signari serve sync the source on a schedule, and 0 stops it; see directory sync on a schedule. See groups in directory sync
signari idp domains-slug <s> [-domains corp.example,other.example]: the address domains this provider signs in, which puts a single sign-on button on the sign-in page and routes login_hint; none clears them. See sending people to their own provider
signari idp auth-slug <s> -method client_secret_post|client_secret_basic|private_key_jwt|tls_client_auth [-client-key-file <pem>] [-client-cert-file <pem>]: how this engine proves itself at the provider's token endpoint. The key is sealed under the root key and nothing shows it again; a key already held is kept when none is given. See signing in to the provider without a secret
signari idp logout-slug <s> [-url <end_session_endpoint, or a SAML upstream's SingleLogoutService>]: a sign-out here goes on to the provider a person came through; no -url stops it at this side. See signing out at the provider too
signari idp group-map-slug <s> -remote-group <name> -group <local> [-remove]: say one of the provider's groups grants a local one at each sign-in. The provider then governs that group: somebody who signs in through it and is not in the remote group leaves. A group that may impersonate is refused. See a provider's groups
signari idp group-claim-slug <s> -claim <name>: which claim the provider's groups arrive in, groups until told otherwise
signari idp forward-slug <s> [-forward prompt,login_hint,acr_values]: what a sign-in here passes on to the provider, none by default, and no -forward tells it nothing again. See telling the provider what the application asked
signari idp check-slug <s>: read an enabled provider's discovery document and signing keys, say where it stopped (discovery, endpoints or keys) and exit non-zero if it did. Public documents only, so it cannot say whether the client id or secret are right
signari idp store-tokens-slug <s> [-store-tokens=false]: keep what a provider hands over, sealed, for an application to call the provider as the person. false removes everything kept
signari idp trust-mfa-slug <s> [-upstream-amr a,b] [-upstream-acr x]: which amr or acr values in the provider's verified ID token count as multi-factor here, so a federated sign-in satisfies an mfa stage. Both lists are replaced; neither given trusts nothing. See Federated sign-in providers
signari idp verified-email-slug <s> [-trust-email-verification=true|false] [-require-verified-email=true|false], at least one: whether to believe the provider's email_verified claim, and whether a new account through it needs an address it verified and is believed about. A believed address is recorded as verified, so only believe a provider that verifies addresses itself. Belief is set for a generic OIDC provider or a SAML upstream; a named provider's comes from what that provider is known to do. An address never finds or links an account, under either setting
signari idp attribute-mapRoute a claim from an upstream provider into an attribute of the person. -overwrite decides whether a sign-in may replace a value an administrator set by hand
signari import keycloak / import authentik / import zitadelMigrate a Keycloak "realm", an installation or an organisation in: -file <export> -org <uuid>, with -dry-run for the first and the third, and for the second a preview unless -apply. Every preview is the import rolled back. -install-id <id> gives import authentik the installation ID its persistent NameIDs and passkey userHandle values were derived from; without it those are left behind and named. See Migrating from Keycloak, Migrating from authentik and Migrating from Zitadel
signari import auth0 / import okta / import entraBring the people of a hosted service in: -file <export> -org <uuid> [-via <slug>] [-dry-run]. The file is Auth0's bulk export of people as JSON, the User objects Okta's API lists, or the Download users CSV from Entra ID's administration center or Graph's user resources as JSON. None gives out passwords. Where the organisation has a migration source, people come in pending, and it checks each one's password at their first sign-in (Password migration). Otherwise a person comes across only with a link: one the export names, to a provider registered here, or, with -via, to the provider registered here that is the service itself, by their identifier there. Anyone with none of these, and anyone turned off there, is skipped and named. See Migrating from Auth0, Migrating from Okta and Migrating from Microsoft Entra ID
signari import pskc-org <id> -file tokens.pskc -assignments who.csv [-key-file key.hex] [-apply]: give the tokens in a vendor's PSKC file (RFC 6030) to the people holding them. Each line of the CSV is serial,person,code, and serial,person,code,next-code for a counter-based token, and a token is stored only once its codes prove it, as with user assign-otp. A preview unless -apply; a token that fails is reported and the rest go on. -key-file is the pre-shared key the vendor sent, in hex, for a file sealed with AES-CBC and an HMAC; a passphrase-sealed file is refused
signari import shadow-org <id> -file shadow [-domain example.com] [-apply]: an account for each /etc/shadow entry that has a password, the name as the username and name@domain as the address. A preview unless -apply, counting each hash format. yescrypt ($y$), SHA-crypt ($5$, $6$) and MD5-crypt ($1$) verify as they are and become Argon2id at the first sign-in; a locked or system entry (!, *, empty) is skipped. So is a yescrypt setting needing more than 256 MiB or not of the form libxcrypt writes, and anything else that cannot be verified here: those people need a password reset or delegated sign-in. Each skipped account is named
signari migration-source add-org <uuid> -kind ldap|oidc_password|hook|kerberos -name <n>, then -realm for a Kerberos realm, -ldap-url, -bind-dn-template and optionally -ldap-ca for a directory, or -token-endpoint, -client-id-ext, -client-secret and -migration-scope for a provider's password grant. hook takes nothing more, and needs a provider registered for password_verify. The provider a pending person's password is verified against at their first sign-in. Created disabled; a replaced one keeps its state. See Password migration
signari migration-source enable / migration-source disable-org <uuid>: start or stop sending pending people's passwords to the source
signari migration-source show / migration-source remove-org <uuid>: the source and how the cutover is going, or delete it
signari migration-source test-org <uuid> -username <name>, the password read from standard input (prompted with echo off at a terminal, never on the command line): asks the source about that account exactly as a pending person's first sign-in would, enabled or not, and names the step that stopped it, configuration, dial, tls, bind or answer, with the directory's result code for a refused bind. Exits non-zero when the source does not verify the credential. Changes nothing; audited as admin.migration_source_tested, with the outcome and never the username

Federation out

signari scim add / scim list / scim sync / scim verifyOutbound SCIM provisioning. -recreate-missing on add has a sync give somebody a new account when the one linked to them is gone from the target. -oauth-token-url, -oauth-client-id and -oauth-scope authenticate by the client credentials grant, -token then being the client secret, sent by HTTP Basic unless -oauth-client-auth client_secret_post puts it in the form for a token endpoint that takes it only there. -oauth-authorize-url has the same client take the authorization code grant instead, which scim authorize then makes. -compatibility is what the target needs that the protocol does not say it should: no-patch, no-filter, typed-members
signari scim authorizeSign in at a target registered with -oauth-authorize-url, as somebody who may administer it, and keep the refresh token that leaves; every sync then asks for an access token with it and keeps the one it is given back. It prints the address to open and waits up to ten minutes for the target to send the browser back to a loopback port it opens for that one request, or to the address -redirect names: a loopback one with its port is listened on, and any other is the address to paste back here once the browser arrives at it. The target must allow that address. A new grant or base URL forgets the authorization, so it is run again then
signari scim enable / scim disableTake a target in or out of service. Disabling keeps the configuration, the links and the remote ids, and the next sync skips it. Deleting the target would take the links with it, and leave the accounts at the target unreachable rather than only unmanaged
signari scim scopeLimit a target to the members of the groups -group lists, comma-separated; somebody in any of them is provisioned. Unscoped, a target receives every person in the organisation: right for a company directory, wrong for an application five people use
signari scim provision-group / scim deprovision-groupCreate or delete a group at the target and record that we own it. Reconciliation only ever touches groups this link names, so a group the target's own administrators maintain is left alone however similar its name
signari provision addProvisioning targets
signari ssf add-stream / ssf listShared Signals streams, for CAEP and Risk Incident Sharing and Coordination (RISC) events
signari ssf set-status-org <uuid> -client-id <c> -status enabled|paused|disabled [-reason <text>]: a paused stream holds its events and sends them when enabled again, a disabled one neither sends nor holds. The receiver is sent a stream-updated event when the stream leaves or returns to enabled. See pausing and disabling a stream
signari ssf add-source / ssf receivedAccept Shared Signals from a transmitter, and show what it sent. An issuer and -source-audience together belong to one organisation in the deployment: the receiver chooses the source by that pair, so a second organisation registering it is refused. See two organisations, one transmitter
signari ssf poll-source-org <uuid> -source-issuer <iss> -url <https-queue> [-client-id <id>], with the transmitter's credential on standard input: pull that source's events every thirty seconds (RFC 8936) rather than wait for them. With -client-id the credential goes as HTTP Basic, and with none as a bearer token. -remove stops and forgets it. See pulling events from a transmitter
signari events subscribe / events listEvent subscriptions. See how they work. A name in -events that no recorded event carries is refused, with the nearest one suggested; admin.* takes a whole family
signari events remove / events rotate / events enable / events test-org <id> -name <n>: delete a subscription; print a new signing secret, once, the old one stops verifying; switch one back on after ten failures switched it off; queue one signed signari.test delivery to it through the outbox
—Transaction Tokens are issued at the token endpoint, not by a command. See how they work

Authorization

signari authz set-model / authz show-modelThe authorization model. Setting one runs its own tests. See the authorization layer
signari authz test-model-file <path>. The same parse and the same tests, with no database, for CI
signari trust-mark issue / trust-mark revoke / trust-mark listIssue, withdraw and inspect OpenID Federation Trust Marks. See Trust Marks
signari trust-mark accept / trust-mark dropPublish, or stop publishing, a Trust Mark somebody granted this entity
signari trust-mark delegateAuthorise another entity to issue a Trust Mark type this one owns (§7.2)
signari trust-mark issuers / trust-mark ownersThe Trust Anchor's two governing claims, set from -trust-mark-file. Refused from an entity with authority_hints, since every reader ignores them from one with a Superior. A file containing {} clears them. See Trust marks
signari client-metadata allow / client-metadata rules / client-metadata forget-url-prefix <https://host/path/> -org <id> [-scopes a,b]: let client_id URLs under a prefix sign people in, each with its own document standing in for a registration. Nothing is fetched until there is a rule, and forget deletes the clients it admitted. See clients known by their URL
signari federation add-anchor / federation anchors / federation remove-anchor-entity-id <id> -org <org> -jwks-file <keys> [-trust-marks <types>]: whose word to take for an application with no registration here. Nobody is admitted with an empty list, and removing an anchor deletes the clients it admitted. See whose word to take
signari federation add-subordinate / federation subordinates / federation remove-subordinate-entity-id <id> -jwks-file <keys> [-metadata-policy-file <f>] [-max-path-length n] [-intermediate]: speak for an entity in a federation, with the keys it gave you. See speaking for other entities
signari federation enable / federation showJoin an OpenID Federation. Generates a separate Entity Statement signing key and publishes /.well-known/openid-federation. See OpenID Federation. -trust-anchor-hints, -federation-contacts and -entity-lifetime (5m to 168h) are kept when not given
signari authz delegate / authz delegations / authz undelegateRelations another organisation hands out: -org <owner> -grantee-org <uuid> -object type:id -relations a,b, -object type:* for every object of the type; authz undelegate -org <owner> -delegation <id> removes what was handed out under it too
signari authz grant / authz revokeRelations: -principal user:alice -relation owner -object document:42. grant -expires-in 72h ends it then; without, it stands until revoked, and granting again replaces the end
signari authz checkAnswer a question from the command line, with the reason: which relation, held by whom. It is the relation half of a decision, so what a session or a provider would add is named and not tried
signari authz list-org <uuid> [-principal <type:id>] [-object <type:id>]: the live relations a subject holds, or that are held on an object, or both. At least one is required
signari authz expand-org <uuid> -action <a> -object <type:id>: who may do it, group members included, and any subject that is not a person
signari uma settingsOffer, or stop offering, resource-owner intervention on refused UMA requests (§3.3.6 request_submitted). Off means a refusal is final. See UMA 2.0
signari uma requests / uma approve / uma denyRequests waiting for a resource owner. Approving grants a relation in the authorization model, so the access lives where all other access lives; approve -expires-in 720h grants it for that long

Extension providers

An administrator's own service, called to extend a decision this engine makes. See Extending the engine.

signari provider addRegister one: -hook authorize -provider-url https://… -mode fail_closed. -mode is required and has no default: it says what happens when the service cannot be reached. -name and -position put a second on a hook, and the others take -name to say which: see several providers on one hook
signari provider listWhat is registered, with its failure mode, and whether any decision point consults that hook
signari provider claimsWhich claims a token_issue, userinfo or saml_assertion provider may add, refused for a hook that adds nothing. The hook's security rests on the allow-list: without it a service returning {"admin": true} would put that claim in a token this engine signed, and a resource server could not tell it apart from one the engine decided. Protocol claims are refused by the schema
signari provider removeRemove it. With no other left on the hook, decisions are made locally only
signari provider test-org <id> -hook <hook>: call the provider with a request that names nobody, marked Signari-Hook-Test: 1, and print its decision. Exits non-zero when a real call would count as unreachable or as no answer. See the provider contract
signari provider rotate-org <id> -hook <hook>: print a new signing secret for the provider's Signari-Signature, once; the old one stops verifying at once. provider add prints the first. See Extending the engine

Outposts and remote access

signari outpost create / outpost list / outpost runcreate registers an LDAP, RADIUS, proxy, desktop or decision outpost and prints its token. list shows each one's state, STALE for a running one the core has stopped hearing from, and the release it last said it was. run runs an LDAP or RADIUS outpost, refusing a token issued for another kind; a proxy, desktop or decision token is presented by your own software rather than run here. An LDAP outpost serves LDAPS with -tls-cert and -tls-key (default :636) and refuses to start without them unless -ldap-insecure is given. A RADIUS outpost (default :1812) needs -radius-clients, a file of its devices' name network secret lines, readable by its owner alone. See LDAPS on an outpost
signari outpost disable / outpost enable-org <uuid> -name <outpost>: take an outpost out of service, or put it back. Disabled, the core refuses its token with a 403 from its next request; its settings are kept
signari outpost rotate-org <uuid> -name <outpost>: print a new token, once. The old one stops at once, so the outpost answers nobody until it is restarted with the new one
signari outpost remove-org <uuid> -name <outpost>: delete the registration and its token, for an outpost that is not coming back
signari outpost search-group-org <uuid> -name <outpost> -search-group <group>: whose members may search the whole directory through an LDAP outpost; empty clears it, and then each person sees only their own entry. Also settable at outpost create. The core enforces it, so a token used without a bind reads nothing. See what an outpost token is worth
—LDAP and RADIUS are listeners inside signari serve, not commands. Set SIGNARI_LDAP_ADDR or SIGNARI_RADIUS_ADDR; each is off unless its address is. See LDAP and RADIUS
signari radius add-client / radius list / radius enable-client / radius disable-clientRADIUS clients and their shared secrets
signari radius authorizeWhat a group's members are given at Access-Accept, by password or certificate alike, any of: -vlan, -filter-id naming a filter the device already holds, -session-timeout in seconds, -radius-class, which the device echoes in accounting, and -vendor-attributes, a comma-separated list of vendor:type=value by the numbers the device documents, such as 9:1=shell:priv-lvl=15. A VLAN id is 12 bits (RFC 3580 §3.31) and is bounded by the schema. Somebody in several authorised groups gets the highest priority, ties broken by group id so the same person lands on the same VLAN every time
signari proxy checkCheck a forward-auth deployment from outside the network, which is why it dispatches before the database is required
signari ech new-public-name <dns name> -out <file> [-config-id 0-255]: an Encrypted Client Hello key for SIGNARI_TLS_ECH_KEYS, written to a new file only, and the ECHConfigList to publish as the HTTPS record's ech=. The config id is random unless given. Needs no database
signari proxy add-host / proxy list / proxy disable-host / proxy enable-host / proxy remove-hostThe applications forward auth protects: -org <uuid> -host app.example.com (with :port when not 443). Sign-in sends a person back only to a registered host. See forward auth
signari proxy release-org <uuid> -host <h> [-groups a,b] [-signed-identity on|off]: the groups the application hears of, and whether it gets a signed statement of who it is; what is not given is kept. See forward auth
signari proxy rules-org <uuid> -host <h> [-file <rules>]: what happens on one path of the application, read from a file of effect methods path lines, first match deciding; no -file shows them. See rules for one path
signari proxy cookie-org <uuid> -host <h> -cookie <own|deployment|domain>: where the application's proxy cookie lives. own sets it on its own address, for an application on a domain the issuer does not share; a domain sets it for that parent, which the issuer must be under too. See an application on another domain
signari rac add / rac listRemote access connections
signari rac add -protocol rdp / vnc / sshThe protocol is a value of -protocol, not a command. Sessions are started from /rac in a browser
signari rac add -login <name> -password-file <path>What guacd signs in with, sealed, and read from a file so it is never on a command line; -private-key-file and -passphrase-file give an ssh connection a PEM key. What is left out the viewer asks the person opening it
signari rac disable / rac enable-slug <s>: a disabled connection is neither listed nor connectable from the next request; a session already open runs until it closes
signari rac set-parameters-slug <s> -rac-params security=nla,ignore-cert=true: replace the guacd parameters the protocol takes; empty clears them. The host, port, credentials and recording path are refused here, because the connection's own settings supply them and a credential is sealed, never a parameter. guacd refuses a name it does not take at the next connect
signari rac limits-slug <s> -max-connections <n> -max-duration 8h: how many may hold the connection at once, and how long each session may last, 0 for no limit, and what is not given is kept. rac list shows both. A new limit applies from the next connection; a session already open keeps the one it started with

Policy, prompts, branding

signari policy show / policy apply / policy test / policy graphAccess policy. policy test answers "would this have been allowed"
signari flow test / flow paths / flow apply / flow showSign-in flows. flow test refuses a file whose journeys could issue a session without proving the subject, or that names a stage or condition its journey does not run; flow paths lists every journey a flow admits; flow apply installs one for an organisation, printing every journey it admits; flow show prints the built-in flows as a file to start from. See Sign-in flows
signari passwords calibrate[-target 250ms]: time Argon2id on this host at several memory sizes and say which SIGNARI_ARGON2_MEMORY_MIB and SIGNARI_ARGON2_ITERATIONS make one password hash take about that long, preferring memory, and leaving the 512 MiB budget room for four at once. Needs no database; run it where the engine runs. See the hash's cost and a pepper
signari prompt list / prompt setInterstitial prompts: terms, notices. Editing a prompt's title, body or fields moves its version and asks everybody again at their next sign-in, keeping every earlier answer; prompt set says how many people that is, and prompt list how many have answered the current version. See Prompts during sign-in
signari prompt disable / prompt enable-org <uuid> -slug <s>: a disabled prompt is neither asked nor answerable; the answers already given are kept
signari brand set / brand show / brand remove / brand checkBranding, of an instance with -issuer <url> or of one organisation over it with -org <uuid>. brand check verifies contrast
signari message set / message list / message removeAn organisation's own words: -org <uuid>, with -locale <tag> -message-key <key> and for set -message-text <text>, plain text over the catalogue on its pages and in its mail
signari theme eject / theme check / theme listReplace the HTML of any sign-in page. theme eject -theme-dir DIR writes the built-in pages out to edit; theme check validates a directory and exits non-zero if a page would be refused. Signari would not fail to start (it would serve the built-in page and log), so a pipeline is where this is caught; theme list prints every page and whether it is built-in or yours. Needs no database. See Theming
signari i18n list / i18n status / i18n keysWhat languages the sign-in pages can be rendered in. i18n status names every message a loaded language is missing and exits non-zero if any is incomplete. A half-translated language still renders, half in each language, and nothing later catches it; i18n keys prints every message key, to write a catalogue against. Same -theme-dir flag, and needs no database. See Languages
signari duo set / duo enroll / duo showDuo as a second factor
signari external-factor add / external-factor list / external-factor removeThe services an external_factor stage may ask. external-factor add --org <id> --name <n> --url <https> --issuer <iss> --jwks <file> --amr otp,mfa registers one, or replaces what is under that name; a private or shared key, or an amr of pwd, fed, krb or user, is refused. remove is refused while the sign-in flow names it.
signari attester add / attester listTrusted Client Attesters for attestation-based client authentication. attester add --org <id> --name <n> --attester-jwks <file> registers an attester's public keys; a file containing private keys is refused, because Signari could then forge the attestations it verifies. -describe records who the attester is, shown by attester list; re-registering without it keeps the old one. Nothing authenticates with attest_jwt_client_auth until at least one attester is registered

Testing

signari logout-testProve Back-Channel Logout ends an application's session

How this page is kept complete

Tests in the engine's internal/docsync package fail the build when the pages and the command line disagree, in either direction:

  • TestEveryCommandIsDocumented: a command the signari binary dispatches that no published page mentions.
  • TestEveryDocumentedCommandExists: a command a page names that the binary does not have. An argument's value, such as the google in dir add -kind google, is not a command.
  • TestEveryDocumentedFlagExists: a flag in a documented invocation that the command line does not define.