Skip to content

v0.2.0

Choose a tag to compare

@sulimanbenhalim sulimanbenhalim released this 25 Nov 08:36
· 119 commits to main since this release

This release is mostly about getting started: signari setup, a one-line installer, and docs for people who've never run an identity provider. It also fixes a deadlock between the operator CLI and the Admin API.

Before you upgrade

  • serve refuses a superuser now. v0.1.0's README and compose file both served as a superuser. A deployment that followed either won't start on v0.2.0 until it serves as signari_engine. docs/upgrading.md ("Serving as signari_engine") has the switch: signari setup against the existing database, or two commands by hand. -allow-rls-bypass or SIGNARI_ALLOW_RLS_BYPASS=1 starts it as before, with a warning.
  • Stop v0.1.0 before migrating. Migration 0307 changes the triggers on tables v0.1.0 writes, so the two can't run side by side. Keep the backup the upgrade guide asks for, since it's the way back.
  • Check your SIGNARI_DSN. pgx 5.13 reads connection strings the way libpq does. In a URL, a + in a query value is a literal plus, a repeated parameter takes its last value, and an IPv6 host needs brackets.
  • An LDAP directory source with a malformed -filter now fails its sync with the parser's error. go-ldap 3.4.15 refuses filters it used to repair silently, such as (&(a=b)x.

New

  • signari setup takes a Linux machine with PostgreSQL 16 or newer to a deployment its first administrator can sign in to. It asks only what it can't work out and prints its plan first. Run it again and nothing changes. -dry-run, -check and -json are there for scripts.
    • It keeps a log of each run, with every secret replaced.
    • For an https:// issuer it settles who ends TLS: a proxy in front, certificate files (Let's Encrypt's, with a renewal hook), or nobody yet.
    • -compose <dir> writes a compose project instead of setting up the machine.
  • A one-line installer. It checks the release's SHA-256, and with cosign its signature, before it installs anything. As root it makes the systemd service, then runs signari setup:
    curl -fsSL https://raw.githubusercontent.com/Binary-ly/signari/main/scripts/install.sh | sh
    It won't put an older release over a newer one unless given --allow-downgrade.
  • signari uninstall removes exactly what the installer and setup made, as their manifest lists it. The root key and the database stay unless you ask, and each is confirmed.
  • signari healthcheck, for a container's healthcheck in an image with no shell or curl.
  • New docs: an introduction, installation, a first application that ends in a real sign-in, how Signari works, the protocols explained, a glossary, and troubleshooting by the exact error message. The reference pages are rewritten in the same plain style.

Fixed

  • A CLI write and an Admin API write at the same moment no longer deadlock. The CLI took the configuration version's row after the rows it changed. The Admin API, signari apply and an SSF receiver take it before. When both hit the same client, provider or organisation, PostgreSQL ended one of them a second later: a 500 from the API, or a failed command. Every CLI write now takes the version's row first.
  • The sign-up and reset forms ask for the password policy's real minimum. They said 8 characters while the policy refused anything under 15, so a password that followed the form was refused. They now say and enforce 15, or what SIGNARI_PASSWORD_MIN_LENGTH raises it to.
  • The erasure docs were wrong about backups. v0.1.0's said an erased person's data was unreadable in backups too, but a backup taken before the erasure still holds their key, wrapped under the root key, and their account in the clear, until that backup is deleted. The docs now say so.
  • An SSF verification refused for coming too soon says in Retry-After how long its window has left, not always 30 seconds.
  • A batch's walks take their first level from the step they share, so a hundred documents in one deep folder cost that step and one walk up the folders: 46 to 162 batches a second at one client.

Security

  • pgx 5.13.0, past GHSA-j38q-h3ph-jjpq (SQL injection in simple-protocol batches) and GHSA-95fj-3fxw-g62g (require_auth and channel_binding skipped by a server that omits AuthenticationOk). Neither path was in use: the engine doesn't run queries in the simple protocol, and nothing sets require_auth.
  • go-jose 4.1.9, golang.org/x/crypto 0.59.0, x/net 0.63.0, x/sys 0.50.0, cbor 2.10.0 and maxminddb 2.9.1, past published advisories. govulncheck found none of them reachable.
  • Releases are signed. A GitHub runner rebuilds each release from its tag, and only if the binary comes out byte-identical does it sign the binary and its SBOM with cosign and record SLSA build provenance. SECURITY.md says how to check a download.
  • Not yet independently audited. Report vulnerabilities privately, as SECURITY.md describes.

Requirements

PostgreSQL 16 or newer (17 is what the compose file, the Helm chart and the test suite use), and Go 1.26.11 or later to build from source.

Everything else is in CHANGELOG.md.