TrustNet
Open standards · open components

Identity infrastructure built from proven parts

TrustNet composes open-source Ory, a Go domain core, and HashiCorp Vault into one OIDC provider, so teams inherit audited components instead of building identity from scratch.

Ory Hydra Ory Kratos Go HashiCorp Vault PostgreSQL RabbitMQ Redis React OpenID Connect
Technology

Nothing exotic. Everything auditable.

Every layer is a component you can inspect, operate, and replace.

Identity & protocol

Ory Hydra

OIDC

OAuth2 / OpenID Connect provider

Headless authorize, token, userinfo, and JWKS endpoints. Login and consent are delegated to TrustNet, never reimplemented in an RP.

OIDCPKCErevocation

Ory Kratos

accounts

Accounts and credentials

Passkeys, MFA, recovery, and verifiable contacts. The account is the one real login; personas are its projections.

passkeysMFArecovery

OpenID Connect

standard

Interoperable discovery

Any OIDC library works — NextAuth, Passport, Spring Security, or Go OIDC — with pairwise subjects and claim-by-claim consent.

discoverypairwise subno SDK
Application core

Go

core

persona-api and consumers

One module, two binaries. Personas, the attribute pool, PPID derivation, and consent orchestration live in typed domain packages.

single moduletypedstdlib

React SPA

SPA

First-party Auth & Consent + Dashboard

One first-party front end with two areas: the Auth & Consent flow and the persona dashboard. No third-party assets or trackers.

first-party originaccessibleno trackers
Data & messaging

PostgreSQL

database

Three segregated databases

Separate databases for hydra, kratos, and personas. No shared schemas, and the consent/audit tables are append-only.

segregatedtransactionalappend-only audit

RabbitMQ

events

Durable event backbone

Auth events, disclosure reads, and kill-switch webhooks move as durable, deduplicated messages that survive restarts.

durableat-least-oncededuped

Redis

cache

Rate limits and read batches

Sliding-window rate limits, session coordination, and short-lived aggregation for disclosure-read batches.

rate limitsdedupeshort-lived
Security & edge

HashiCorp Vault

secrets

Transit encryption and key custody

The PPID salt, envelope-encryption keys, and audit/webhook signing keys live in Vault and never enter code or config.

Transitenvelope encryptionsigning keys

Caddy

edge

Static delivery and reverse proxy

Serves this static site and proxies the first-party origin, with automatic TLS certificates and a small, auditable config.

automatic TLSreverse proxy

Cloudflare

edge

Edge cache and perimeter

Caches the public static surface at the edge and adds DDoS mitigation and WAF rules in front of the origin.

cacheedgeWAF
Architecture

Deterministic dataflow across isolated trust domains

Every perimeter boundary enforces explicit cryptographic contracts and least-privilege transport.

Boundary · external request to ingress
Client browser user agent / relying party
HTTPS / TLS 1.3 →
React SPA first-party origin
internal JSON-RPC →
persona-api Go domain logic
internal mTLS →
Ory Hydra & Kratos identity / OIDC engine
Boundary · state & key isolation tier
HashiCorp Vault Transit secrets engine
PostgreSQL 3× segregated schemas
RabbitMQ durable event bus
Redis rate limits & cache
Architecture guarantee. The client browser never receives or stores the PPID salt. The Vault Transit engine is network-isolated and reachable only by persona-api and consumers through restricted service tokens.
Engineering principles

Why this stack

Built around non-negotiable security postures and verified standards.

Standards over lock-in

Ory is open source and the wire protocol is plain OpenID Connect, so integration is library-agnostic. No proprietary SDKs pollute client dependencies or lock your team in.

RFC 6749 · OIDC Core · RFC 8414

Secrets never live in code

Envelope encryption and signing keys are held strictly in Vault Transit; runtime configuration references key identifiers, never raw cryptographic material.

Zero key material on disk

Append-only audit

Consent, attribute access, and revocation events flow asynchronously through RabbitMQ into a tamper-evident, append-only PostgreSQL audit trail built for compliance review.

Cryptographic integrity proofs
Integration

Plug into your existing stack in under ten minutes

Standard RFC discovery. No proprietary npm packages. Zero code bloat.

One provider. Standard OIDC.

Any relying party simply registers TrustNet as a standard OIDC identity provider and immediately receives pairwise pseudonymous subjects (PPID) with scoped, explicitly consented claims.

  • Automatic endpoint autodiscovery via /.well-known/openid-configuration
  • No custom SDK to install or maintain
  • Drop-in support for NextAuth.js, Passport.js, Spring Security, and Go OIDC
  • Deterministic pairwise subjects prevent cross-service correlation
Read the integration spec
OpenID configuration endpoint
GET https://id.trustnet.app/.well-known/openid-configuration
HTTP/2 200 OK · content-type: application/json

{
  "issuer": "https://id.trustnet.app",
  "authorization_endpoint": "https://id.trustnet.app/oauth2/auth",
  "token_endpoint": "https://id.trustnet.app/oauth2/token",
  "userinfo_endpoint": "https://id.trustnet.app/userinfo",
  "jwks_uri": "https://id.trustnet.app/.well-known/jwks.json",
  "subject_types_supported": ["pairwise"],
  "id_token_signing_alg_values_supported": ["RS256"]
}
Discovery document — RFC 8414 compliant. No SDK required.

Bring identity in without bringing the liability

Built to satisfy your security review and Data Protection Officer out of the box, with zero lock-in.