Get started
Docs menu

Project

Exposing a deployment for OIDF conformance

On this page

Introduction

The OpenID Foundation (OIDF) runs a conformance suite, which tests whether an OpenID Connect (OIDC) provider follows the specifications. The suite is hosted, at https://certification.openid.net, so it must reach Signari over public HTTPS.

This runbook gives two ways to expose a deployment for a run, and the cheap one is enough. Both use a Cloudflare tunnel, which carries public traffic to a port on your own machine.

Note

Run the preflight in tools/conformance-preflight against the public address before you start the suite. Its README lists the steps to certification.

Cloudflare quick tunnel (no account, no server, ~30 seconds)

Start a quick tunnel to the port the engine will listen on. It prints a public address:

Shellcloudflared tunnel --url http://127.0.0.1:9411#   -> https://<random-words>.trycloudflare.com

Then start the engine with that EXACT string as the issuer:

Shellsignari instance create -dsn "$SIGNARI_DSN" -issuer "https://<random>.trycloudflare.com"SIGNARI_ISSUER="https://<random>.trycloudflare.com" signari serve -addr 127.0.0.1:9411

The issuer must equal the public URL byte for byte. Applications, which the specifications call "relying parties", compare iss as an exact string, and so does the conformance suite. A trailing slash, http instead of https, or a stale hostname fails every check. The error names the token, not the configuration.

A working setup looks like this:

Textissuer                : https://<random>.trycloudflare.comjwks_uri              : https://<random>.trycloudflare.com/oauth2/jwksJWKS over public TLS  : 200

What a quick tunnel is not

  • Ephemeral. The hostname ends with the process. That is fine for a conformance run, but not for an address anyone needs to find later.
  • Not a place to leave a development instance. The address is hard to guess, but not private, and a development database has test accounts with known passwords. Start it for the run, and stop it after.

Named tunnel on your own domain (stable, still no server)

A named tunnel gives a stable address on a domain you control. The first command is interactive, so run it yourself:

Shellcloudflared tunnel login            # interactive: run this yourselfcloudflared tunnel create signaricloudflared tunnel route dns signari id-test.signari.devcloudflared tunnel run --url http://127.0.0.1:9411 signari

This gives a stable hostname and a real certificate, with no virtual private server (VPS). It suits a demo instance that must keep working.

When you need a VPS

You do not need one for conformance. You need one for anything that must keep running without the laptop: a persistent demo, real people, the hosted tier.

Read the backup and restore runbook, docs/runbook-backup-restore.md, before putting real accounts on one. Note too that the engine belongs on its own host, not beside anything that runs arbitrary code.

Changed Signari v0.2