Running in production
Deployment artefacts
On this page
Introduction
Signari is one program, but a real deployment needs more around it. It needs a way to run on Kubernetes, images for the console, and a stack to try it on one computer. This page lists each of those "artefacts", what it deploys, and how it was tested.
Each is configured where its platform expects. The Helm chart takes Helm values,
the Kubernetes operator in operator/ takes a resource, and the Docker Compose
stack takes environment variables and profiles.
Helm chart
deploy/helm/signari deploys the engine on Kubernetes. It holds:
- The Deployment.
- A pre-upgrade migration Job: a Helm hook running
migrate allonce, never on engine boot. N replicas migrating on startup race, and rollback becomes ambiguous. - A Service.
- An optional Ingress, HorizontalPodAutoscaler (HPA) and PodDisruptionBudget.
It refuses to render without an issuer and a stable root key. Otherwise it would deploy an engine that cannot start, or one whose signing keys reset on restart. A second hook makes the instance the engine serves.
It was validated with helm lint and helm template, and installed on kind in
November 2026. That run found that no pod could start, because the image named
its USER. It also found that the engine never became ready, because nothing made
its instance. Both are fixed. Continuous integration (CI) now installs and
upgrades the chart on kind whenever the chart or the engine changes
(.github/workflows/helm.yml). See deploy/helm/signari/README.md.
The chart deploys the image each release publishes, ghcr.io/binary-ly/signari
at the chart's appVersion. That image holds the release binary itself, and it is
signed, with its software bill of materials (SBOM) and build
provenance attested to its digest. The chart's own
page says how to check it, and how to deploy it by digest.
The chart deploys the engine, not PostgreSQL. A production identity provider's database wants backup, high availability (HA) and tuning that belong to your data platform, not to an application's chart. You bring the database, and give the chart a data source name (DSN).
The console's images
admin/Dockerfile builds the console as two images: Laravel under php-fpm (the
default target), and nginx in front of it (--target web). Both run as an
unprivileged system account.
.env never goes into either, because it holds a developer's admin token and
database password, and an image is pushed to a registry. The console reads its
settings from the environment it is started in.
Under compose, the console starts on request. Start it, make its token, start it again with that token, and make a break-glass account:
ShellCONSOLE_APP_KEY=base64:$(head -c 32 /dev/urandom | base64) \SIGNARI_ADMIN_ADDR=:8081 SIGNARI_ADMIN_INSECURE=1 \ docker compose --profile console up -ddocker compose exec engine /signari admin-token create -name console -org <org-uuid> \ -scopes users:write,clients:write,config:read# set SIGNARI_ADMIN_TOKEN to what it printed, and run the up againdocker compose exec console php artisan signari:operator-create you@example.com --break-glass
It is at http://localhost:8098/admin. It connects as signari_admin.
deploy/postgres-init/ makes that role with a password, on an empty volume,
before migration 0001 would make it without one. For a volume made before that,
set the password with ALTER ROLE signari_admin PASSWORD '…'.
On an empty volume, the console's own signari:verify-boundary passes every check
from inside its container:
- connected as
signari_admin; coredenied for reads and writes;core_v1empty with no organisation context, and not otherwise;- no leak past a transaction.
All 23 screens render in Chrome through its nginx, with nothing refused by its policy and no request to another origin.
The chart has the console too, off unless console.enabled. It runs:
- one pod with both containers;
- a migration Job after the engine's;
signari_adminas its database role;- its own pod name, since on the engine's it would sit behind the engine's Service.
It refuses to render without its URL, its database host, its key and password,
and an Admin API to write through. It was validated with helm lint and
helm template (TestTheHelmChartRendersTheConsole), and installed on kind in
November 2026.
The pod came up 2/2, with php-fpm as uid 82 and nginx as 101. Its boundary and read-model commands passed every check from inside it. Its token read the Admin API through the address the chart derives. The chart's README has the rest of that run.
Kubernetes operator
operator/ keeps an organisation's configuration file applied (see its own
guide). It is a Kubernetes operator. A SignariConfig
resource holds the file that signari apply reads. The operator plans it
through the Admin API, and applies it with the planned version as If-Match.
Every resyncSeconds it plans again, so a change made from the console or the
command-line interface (CLI) is put back. What an apply mints goes into a Secret
the resource owns. Every refusal comes back from the engine, named, in the
resource's Ready condition.
That is the only reconciliation it does. A Deployment cannot express it, and a
CronJob of signari apply would apply on a schedule rather than on a change, with
nowhere to say what it refused.
Everything else stays where it is. Migrations stay in the Helm hook, and key rotation
and the janitor stay as signari CLI verbs run as CronJobs. operator/ is a Go
module of its own, like the Terraform provider, so the engine takes no Kubernetes
dependency. It never touches the database.
Client libraries
Signari is a conformant OpenID Connect (OIDC) and OAuth2 provider, so applications do not need a vendor software development kit (SDK) to sign people in.
Any certified OIDC library for applications works against it unchanged:
openid-client(Node);authlib/oauthlib(Python);coreos/go-oidc(Go);- Spring Security and
pac4j(JVM); AppAuth(mobile).
The discovery document and the JSON Web Key Set (JWKS) are what those libraries consume, and both are served.
A Signari-branded SDK for signing in would mostly wrap those libraries, and a wrapper can bring back bugs the library has already fixed.
A first-party library does help with the Admin API: registering clients, people and providers. That is specific to Signari and not covered by any OIDC library. The Admin API clients, in Go and TypeScript, cover it.
A first run with something to sign in to
The compose stack has two profiles for a first run:
- The
first-runprofile runsbootstraponce the schema is in. - The
demoprofile addsexamples/go-quickstartas an application athttp://localhost:8097/login. It adds the Express, Next.js, Django, Spring Boot and Laravel quickstarts beside it, on ports 8091 to 8095. Each guide's "In compose" says where.
The demo-client service applies their public clients, demo and
demo-<framework>, from deploy/demo/client.yaml. It applies them to the
organisation bootstrap made.
apply takes the only organisation there is when neither -org nor the file
names one. So the file names none, and applied again it plans nothing. Together,
from an empty volume to a signed-in person takes no SQL. The commands are in the
repository's quick start.
The demos run on the host's network, so that they reach the engine at the issuer's
own address, the one the browser uses. They trust the development certificate
authority (CA) under deploy/tls, which signs the engine's certificate for
localhost.
That CA carries keyUsage, as Request for Comments (RFC) 5280 requires of a CA
certificate. Python 3.13 and later refuse one without it.
With first-run on, the engine starts after bootstrap has finished, because it
cannot start before bootstrap has made its signing keys. Without the profile,
the engine does not wait for it.
From an empty volume, one up, the link and a password are enough: the demo
answers "Signed in as" the first person, with nothing
typed into a database.
Also present
Two older artefacts remain the basis the chart builds on:
deploy/docker-compose.yml, the development stack and the conformance-suite target;engine/Dockerfile, a distroless, non-root, static image, optionally validated under the Federal Information Processing Standards (FIPS).
Base images are pinned by digest
Every FROM in engine/Dockerfile, operator/Dockerfile, admin/Dockerfile and
the quickstarts' examples/*/Dockerfile names its base by tag and digest. An
example is golang:1.26.11@sha256:9579…. The digest is what gets pulled, and the
tag says what it is.
A tag is whatever its registry says today. So a build from a bare tag can differ
from the build that was checked, without anyone changing a line here.
TestEveryBaseImageIsPinnedByDigest fails on a FROM without a digest.
The cost is that a patched base arrives only when someone moves the pin. To move one, read the digest of the index the tag names now, and put it in place of the old one:
Shelldocker buildx imagetools inspect --format '{{json .Manifest}}' golang:1.26.11 | jq -r .digest
That is the multi-platform index, so the pin holds for every architecture the
image is built for. The console image also installs packages with apk as it
builds, and those are not pinned. Its base is fixed, but the image is not one that
rebuilds byte for byte.
Changed Signari v0.2