Project
About Signari
On this page
A self-hosted identity provider. One binary and one PostgreSQL database serve OpenID Connect, OAuth 2.0, SAML 2.0, LDAP, RADIUS and SCIM, with a web console beside it.
Status: v0.2.1. It runs, it is tested, and it is neither certified nor independently audited yet. The OpenID Foundation's conformance plans run whole on a GitHub runner every week (
.github/workflows/conformance.yml) and the suite has a runbook here (exposing a deployment for conformance), but certification has not been obtained. Read the maintainer's own OWASP ASVS 5.0 review and the FIPS 140-3 notes before you run it in production.
Two pieces, one database
engine/: Go. The protocol server, the signari command-line tool, and the
sign-in pages, which are server-rendered HTML with no JavaScript framework.
admin/: Laravel and Filament. The console.
They share one PostgreSQL database, and the database's own permissions keep them
apart. The engine owns schema core; the console has no privileges on it at
all and reads through versioned core_v1 views, where row-level security
returns only the rows of the organisation a request has chosen. The engine's own
role, signari_engine, is the one those policies let see every organisation.
Every console write goes over the engine's Admin API.
What it speaks
OAuth 2.0 / OIDC: authorization code with PKCE, refresh with rotation, client credentials, device grant (RFC 8628), CIBA, token exchange (RFC 8693), JWT bearer (RFC 7523), PAR (RFC 9126), DPoP (RFC 9449), rich authorization requests (RFC 9396), mutual-TLS (RFC 8705), dynamic registration (RFC 7591), introspection, revocation, and three logout mechanisms.
Beyond OIDC: SAML 2.0 in both directions, WS-Federation, LDAP as a server and as a source, RADIUS with EAP-TLS, Kerberos/SPNEGO, SCIM in both directions, OID4VCI credential issuance, OpenID Federation, UMA 2.0, AuthZEN, and Shared Signals/CAEP.
How each part is tested
Not everything above has been checked the same way. In order of how independent the check is:
| Checked by | What |
|---|---|
| The OpenID Foundation's conformance suite, every plan run whole each week (results) | OpenID Connect sign-in (the Basic, Config and Form Post plans); RP-initiated, front-channel and back-channel logout; FAPI 2.0, with PAR, DPoP, mutual TLS and signed requests; OID4VCI issuance and OID4VP presentation, whose plans are the suite's alphas |
| Five client libraries in Chrome, whenever the engine changes | The authorization code flow with PKCE, and single sign-on, through Go's standard library, openid-client, Authlib, Spring Security and jumbojett's OpenIDConnectClient, the quickstarts in examples/ |
| Another implementation, in every CI run | SAML signatures and encryption, and WS-Federation's tokens, by xmlsec1; the LDAP server, by OpenLDAP's ldapsearch and ldapwhoami; the engine's discovery document and signed tokens, by the jose library; Kerberos, with a ticket from MIT Kerberos's own KDC. No ticket from Active Directory has been tried |
| Another implementation, run by hand | The SAML identity provider's artifact binding, with Shibboleth SP 3.4.1; RADIUS with EAP-TLS, with wpa_supplicant's eapol_test 2.10; LDAP as a source, with OpenLDAP's slapd |
| This repository's own tests | Refresh token rotation, client credentials, the device grant, CIBA, token exchange, JWT bearer, introspection, revocation, dynamic registration, SCIM in both directions, OpenID Federation, UMA 2.0, AuthZEN and Shared Signals/CAEP |
Design
Sign-in flows, access policy and configuration are files. They diff in a pull
request, they carry their own tests, and signari flow test and
signari policy test run those tests in CI with no database. signari plan shows
what an apply would change before it changes it, and a setting missing from a file
is not deleted unless you ask for that.
Revocations are never cached. Whether an application is disabled, a person deactivated, or a session or token revoked is read from the database on every request, so a revocation takes effect at once (CWE-613, insufficient session expiration). Signari has no Redis for that reason.
It refuses to start when something is wrong. A missing root key, a schema the
binary was not built for, a signing key it cannot unwrap, or an issuer that would
publish metadata it cannot honour each stops startup with a message that says what
to fix. signari doctor reports the rest.
Quick start
On a Linux server with PostgreSQL 16 or newer:
Shellcurl -fsSL https://signari.dev/install | sh
The script downloads the release and installs it only if it matches the
release's SHA-256 sums and, when cosign is installed, its Sigstore signature.
Then signari setup asks what it cannot work out for itself: the address people
will reach Signari at, the first administrator's email, and which PostgreSQL to
use. It prints its plan before it changes anything, and ends with a one-time link
for that administrator and where it put the root key. To give the answers up
front and be asked nothing:
Shellcurl -fsSL https://signari.dev/install | sh -s -- --yes --issuer https://login.example.com --email you@example.com
To read the script first, download it with
curl -fsSL https://signari.dev/install -o install.sh,
and sh install.sh --dry-run prints every command it would run. Its second line
is # signari-install-script, so a page that lacks that line is not the script.
The same script is scripts/install.sh in this repository.
Running either again is safe: a step already done is skipped, and
signari setup -check says what is set up and what is missing. The engine connects
as signari_engine, with a password setup generates, and never as a superuser.
With Docker
Each release ships a binary for Linux on amd64 alone. Elsewhere, or with Docker to hand, the compose stack runs the engine, its database and an application to sign in to:
Shellgit clone https://github.com/Binary-ly/signari && cd signari/deploycat > .env <<EOFSIGNARI_ROOT_KEY=$(head -c 32 /dev/urandom | base64)SIGNARI_FIRST_EMAIL=you@example.comSIGNARI_TLS_CERT=/tls/engine.crtSIGNARI_TLS_KEY=/tls/engine.keyEOFdocker compose --profile first-run --profile demo up -ddocker compose logs bootstrap # the one-time link
Keep .env: every later start needs the same root key. Open the link, set a
password, and sign in at http://localhost:8097/login. The same profile runs the
Express, Next.js, Django, Spring Boot and Laravel quickstarts on ports 8091 to 8095;
each guide's "In compose" section says which. The demo applications use host
networking, which Docker Desktop has from version 4.34 once "Enable host
networking" is turned on under Settings, Resources, Network. The certificate under
deploy/tls is for development, so your browser warns about it once: accept it
for localhost, and do not add its CA to your system's trusted authorities.
Your first application walks through all of it. A data volume
made before the engine served as signari_engine needs that role's password set once,
as the script that makes the role, on GitHub says.
From source
Shellgit clone https://github.com/Binary-ly/signari && cd signari/enginego build -o signari ./cmd/signari./signari setup
The root key seals every stored secret and is not kept in the database it protects. Lose it and the sealed data (signing keys, bind passwords, RADIUS secrets) cannot be recovered, so copy it off the machine once setup has made it. See the configuration reference for every setting and Backup and restore for why a database backup is not enough on its own.
For the console, see the console's guide. For Kubernetes, see the Helm chart.
Documentation
The documentation home indexes every page by task. The three you will reach for first:
| Configuration | Every environment variable |
| Command reference | Every command |
| Doctor | Whether this deployment is sound |
All three are kept complete by tests: the engine's internal/docsync package fails
the build when a command, a setting or a doctor check exists in code and not on
its page.
Contributing
Issues and pull requests are welcome. The contributing guide says what a pull request needs and how a first contribution signs the Contributor License Agreement; vulnerabilities go privately, as the security policy explains.
Licence
AGPL-3.0-only. Running Signari does not make your applications AGPL:
an application that signs people in through it over OIDC is a separate program
talking to it over a network protocol. The obligation applies to modifying Signari
itself and offering that modified version to others over a network. The two Admin
API clients in sdk/ are Apache-2.0, so automation that imports one is not bound
by AGPL either. See the licensing notice, which also covers commercial
licensing and the contribution terms that make it possible.