Black Swan Group

Products in service

Blackswan Auth and Kit

In serviceIn service · Live since October 2026 · Verified 2026-10-31

Blackswan Auth is one sign-in portal per domain. The reverse proxy asks it about every request, and applications receive a verified identity and feature set in headers instead of running a login. Passkeys come first, with a password and authenticator-app code as fallback, and access is denied by default until a user is granted an app. Blackswan Kit is the set of Rust crates and web components that make every application consume that identity, the local model server, and the event trail the same way.

Problem

Every self-hosted application wants its own login, its own password reset, and its own copy of the code that decides who may do what. Multiply that by nine applications and the weakest one sets the security of the whole domain.

Thesis

Security-critical code should be written once, tested once, and placed in front of every application, not copied into each one.

Intended user

The studio's own applications today, and any small operator running several self-hosted services behind one reverse proxy.

What it does

  • Passkeys first

    Face ID, Touch ID, and hardware security keys, with conditional UI, a password plus TOTP fallback, and per-app sign-in requirements: any method, a passkey or a code, or a passkey only.

  • Deny by default

    Grants are per user and per app. Access requests you approve, invite links you hand out, single-use email reset, an audit log, and rate limiting are built in.

  • Entitlements on every request

    Feature flags with rules (group, user, country, percent rollout) and variants are evaluated at the edge and passed to applications as headers, so a feature can ship dark and turn on per person.

  • Survives its own outage

    A small edge component next to the proxy honors a 15-minute signed pass, so signed-in users stay in their apps while the portal itself is down. Built and exercised in the end-to-end test; deployment pending.

  • A vault for users' own keys

    Users may bring their own AI provider key. It is stored write-only, sealed with authenticated encryption bound to its row, fetched per call, and metered and capped by the portal.

  • Kit: the shared platform

    An auth gate that believes identity headers only with the proxy's secret, one inference client for the local model server and paid providers with privacy tiers and daily caps, a hash-linked event chain byte-compatible with the Python original, camera capture with barcodes and OCR, and per-user settings. The core crates build for WebAssembly.

Architecture

The portal is an Axum service with PostgreSQL. Caddy's forward authentication consults it on every request and adds the user, groups, and features to the request headers; applications trust those headers only when accompanied by a shared proxy secret.

Passkeys bind to the apex domain rather than the portal host, so the native app wrappers for Finances, Photo, Commerce, and Term can sign in with the same credentials. The association file that makes this work is served from this site.

The full end-to-end suite runs a real Caddy, a headless browser with a virtual authenticator, and a simulated portal outage. Fixes from a security review (bounded hashing, ceremony-flood protection, HSTS) are in place.

Kit is consumed by git tag. Breaking changes are versioned and each product moves deliberately; the finance app's own gate tests were ported into the shared crate when it took over.

  • Rust
  • Axum 0.8
  • webauthn-rs
  • PostgreSQL
  • Caddy forward_auth
  • XChaCha20-Poly1305
  • Ed25519
  • Amazon SES

Evidence

  • Portal in front of Term, Finances, Commerce, Photo, Home, and SportsLive
  • Passkeys with conditional UI; password plus authenticator-app code as fallbackImplemented
  • Per-user, per-app grants, access requests, invite links, email reset, audit log, rate limitingImplemented
  • Entitlements: feature flags with rules and variants, evaluated on every requestImplemented
  • Edge failover from a signed, 15-minute pass while the portal is downWorking prototype
  • Kit crates: auth gate, inference client, hash-linked event chain, capture, settingsImplemented
  • API tokens for non-browser clientsPlanned

Open questions

  • Whether the portal should support more than one identity provider or tailnet identity for a product shipped to other people.
  • How API tokens for non-browser clients should be scoped and rotated without weakening the passkey-only posture.

Next milestone

Deploy the edge failover alongside the proxy, then add API tokens so command-line and automated clients can authenticate without a browser.

Work with us

Black Swan Group is interested in operators of small self-hosted fleets who want to compare notes on passkey-first single sign-on at the edge.