Repository navigation
zeroauthy v1.0.0-rc.2
Pre-releaseThe second release candidate. Since rc.1: Forms and Flows with a visual
builder, ACUL and the remaining Universal Login modes, passkeys and WebAuthn,
token exchange, Token Vault, CIBA,
dynamic client registration, the My Account and My Organization APIs,
SAML, WS-Federation, SCIM, AD/LDAP, network ACLs, per-tenant master keys
with key rotation and customer-provided keys, a Linux sandbox for tenant
code, and the console in 29 more languages (beta).
Before upgrading, read upgrading. This version
migrates the database (up to migration 0063) and seals new secrets in a new
envelope format under per-tenant master keys: rolling back past it means
restoring the pre-upgrade backup. On Linux, Actions and custom database
runners refuse to start when the sandbox cannot be applied, unless
ZEROAUTHY_RUNNER__UNSANDBOXED=1.
Fixed
- Actions and custom database scripts on Linux could not resolve hostnames:
the runner sandbox (Plan 45a) refusedsendmmsg, which glibc's DNS client
uses, so everyfetchto a named host failed withEAI_AGAIN. Found by
the live Stripe check.
Added
-
Forms and Flows Phase 2 (Plan 38e): a structured visual builder in the
console for forms (an outline of steps, components and nodes with
keyboard reordering, schema-generated property panels, a read-only
diagram) and flows (an action list with a condition editor), keeping
every member it does not edit; a "Stripe customer" post-login Action
template that gives each user a Stripe customer, stores
app_metadata.stripe_customer_idand adds it to the tokens; and a guide
to doing vendor steps with the HTTP step until each is built on request.
See Forms and Flows and
Stripe customers. -
ACUL and the remaining Universal Login modes (Plan 44): advanced rendering
of Universal Login screens with your own UI built on Auth0's ACUL SDK
(/api/v2/prompts/.../renderingroutes, a host page exposing
window.universal_login_context, SRI-required head tags, a strict CSP,
SDK form posts bound to the transaction cookie and origin), a console
rendering editor, Deploy CLIscreenRenderers, social button layout,
secondary-action slots,transaction.custom_domainin templates,
passkey-first identifier login and phone factors on MFA enrollment
tickets. Clientclient_metadatais now stored. Migration 0063. See
ACUL and branding. -
Release leftovers (Plan 46): the console in 29 more languages, all marked beta until a fluent speaker reviews them (French, German, Spanish, Italian, Brazilian Portuguese, Dutch, Polish, Swedish, Japanese, Simplified Chinese, Korean, Turkish, Ukrainian, Czech, Danish, Finnish, Norwegian Bokmål, Romanian, Hungarian, Indonesian, Vietnamese, Greek, Bulgarian, Croatian, Slovak, Slovenian, Catalan, Thai and Hindi), loaded on demand; docs links that follow the server's release (
<meta name="zeroauthy-version">), with the version and changelog link on Home; and an Android TV device-flow sample (examples/android-tv). See i18n and device flow. -
Security hardening (Plan 45a): sealed values now use envelope v2 under a
per-tenant master key (migration 0062; v1 stays readable andzeroauthy keys rewrapconverts it); server master key rotation with
security.previous_master_keys_file, online startup rewrap andzeroauthy keys status|rewrap; Auth0's/api/v2/keys/encryptionroutes for rekey and
customer-provided root keys (CKM_RSA_AES_KEY_WRAPimport) with a console
page; a Linux Landlock, seccomp and rlimit sandbox for the Actions and
custom database runners (refuses to start without it unless
runner.unsandboxed), one shared runner prelude, and retirement of a
runner process whose log or mask budget is spent; HSTS on TLS zeroauthy
terminates (server.hstsbehind a proxy); a startup warning or refusal
(storage.require_tls) for database connections without TLS; and scrubbed,
capped, rate-limited storage plugin stderr. See
encryption keys, Actions
and upgrading. -
Infrastructure hardening (Plan 45c): durable, replica-shared certificate
retry schedules (1 minute to 6 hours, ACMERetry-Afterhonoured);
DNS-01 through Cloudflare, Route 53 and RFC 2136 (TSIG) besides
DigitalOcean, with CNAME delegation of_acme-challenge; custom public
signing keys published on marked custom domains; a per-tenant CORS
origin cache (exact, about 2000× faster with many clients); a sweep of
orphaned upstream token records; Try and Action test runs limited to 10
per minute per caller and tenant; enforced exponential backoff for MFA
SMS and voice sends; serialized Actions deploy, bind and delete on
MySQL; and an axe accessibility audit of every console route.
Migrations 0059–0061. See custom domains,
signing keys and
attack protection. -
Management API gaps (Plan 38d): users' effective roles and permissions
(direct and through groups, always equal to what a token carries),
revoke-access, device credentials (public keys and refresh-token
entries, with users' own current-user tokens), risk assessment settings
with connection-bound known devices andclear, a client's enabled
connections, the remaining retired Rules and Hooks routes, and every
documented list parameter on the routes zeroauthy serves (/clientsq
and checkpoints,/rolesand/custom-domainscheckpoints,/logs
searchandsort, …). Console: effective access on the user page,
Revoke all access, Risk assessment settings. Storage plugins need
device_credentials.v1; migration 0058. See
Management API. -
Network ACLs (Plan 38c):
/api/v2/network-aclswith first-match
enforcement on every tenant request (block, allow, redirect and
monitoring rules on client and connecting IPs, hostnames, user agents
and trusted JA3/JA4 headers), unique priorities, at most 10 per tenant,
changes on every replica within 10 s,acls_summarylogs, the console
page with a local test panel, seednetwork_aclsand the Deploy CLI
networkACLsround trip. Geo, ASN and Auth0-managed lists are stored and
never match. Storage plugins neednetwork_acls.v1; migration 0057. See
Network ACLs. -
Forms and Flows, Phase 1 (Plan 38b): the forms, flows, executions and
Flows Vault connection Management APIs in Auth0's JSON (validated against
the frozen OpenAPI schemas; vault setups sealed and write-only), hosted
forms with steps, flow and router nodes,api.prompt.renderin post-login
and password-reset-post-challenge withevent.prompt, the{{ }}
expression helpers and the core flow actions (FLOW, JSON, XML, JWT, OTP,
EMAIL, HTTP and AUTH0). Vendor integrations are stored but not run.
Console editors, seed and Deploy CLI round trips. Storage plugins need
forms_flows.v1; migration 0056. See Forms and Flows. -
Token Vault (Plan 43): users connect accounts at Google, Microsoft,
GitHub, OIDC/Okta, generic OAuth 2.0 and the OAuth 2.0 social providers
through the My Account connected-accounts routes, and first-party
applications exchange a refresh or access token for the provider's access
token (federated-connection-access-tokengrant, refreshed when it
expires within 60 s). Disconnecting, user deletion and connection deletion
revoke the provider token best effort.GET /api/v2/users/{id}/connected-accounts, the console's user tab and
application grant, seedconnected_accounts, and theseta/fetalog
events. Storage plugins needtoken_vault.v1. See
Token Vault. -
Actions III (Plan 40): session and refresh-token effects, browser account
linking, external authentication methods, local risk and event signals,
per-client/userinfocustom claims, signup fields/custom database IDs and
organization context for custom database scripts. Persisted Action console
output now follows the 256-character aggregate limit. See Actions. -
Tier 2 social providers (Plan 39d): Baidu, Bitly, d Account, Dwolla,
Evernote (and sandbox, OAuth 1.0a), Exact Online, Planning Center,
SoundCloud, 37signals, Untappd, VK, Weibo, WordPress.com and Yandex.
Fitbit and Instagram connections are stored and exported but sign-in is
refused, because those providers retired the APIs. See
social connections. -
Remaining social providers, Tier 1 (Plan 39b): Facebook, LinkedIn, X
(Twitter, OAuth 2.0 or 1.0a), Amazon, PayPal (and sandbox), Salesforce
(and sandbox and community), Yahoo, LINE, Dropbox, Box, Bitbucket and
Shopify, each from a provider descriptor with Auth0's option flags; the
genericoauth1strategy; native Google ID-token and Facebook
session-info token exchanges. Storage plugins needsocial.v1. See
social connections. -
CIBA with the email channel (Plan 41c):
POST /bc-authorizelets a
first-party confidential application ask a user to approve a sign-in;
the user approves through the emailedasync_approvallink at
/bc-verifyand the application polls/oauth/tokenwith
urn:openid:params:grant-type:ciba. Clients gain
async_approval_notification_channels. Migration 0053 adds the request
store (storage plugins needciba.v1). See CIBA. -
Dynamic Client Registration and Client ID Metadata Documents (Plan 41b):
open RFC 7591 registration at/oidc/registercreates third-partytpc_
applications; an HTTPS metadata document URL can be aclient_id, with
POST /api/v2/clients/cimd/previewand/registerfor administrators
and the seed'scimd_clients; client grants acceptdefault_for: third_party_clients. Migration 0052 adds the client fields and the
external client ID index (storage plugins needcimd.v1). See
Dynamic Client Registration. -
My Organization API (Phase A):
/my-org/v1lets organization
administrators manage their organization's details, members, member
roles and invitations, scoped by the token's organization. Activation
creates the system APIhttps://{canonical host}/my-org/;
administrators' permissions come from organization roles; applications
carrymy_organization_configuration; roles carry
my_organization_visible. Migration 0050 adds its storage (storage
plugins needmy_org.v1). See
My Organization API. -
My Organization API Phase B: organization administrators claim domains
and verify them through DNS, create and manage their organization's
enterprise identity providers (connections linked to the organization),
link verified domains for home realm discovery, and set up SCIM
provisioning with tokens. The system API gains 18 scopes (added at
startup to activated APIs). Migration 0051 adds domain claims. Domain
verification usesserver.custom_domains.dns_resolver. See
My Organization API. -
My Account API:
/me/v1lets signed-in users list, enroll, verify,
rename and delete their own passkeys, WebAuthn keys, TOTP, email and phone
factors, recovery codes and passwords, and list the factors the tenant
offers. Activation creates the system APIhttps://{canonical host}/me/
(console, Management API or seedmy_account_api); applications get
access through user client grants; each host has its own audience. See
My Account API. -
WS-Federation: the WS-Fed Web App add-on (
addons.wsfed, with realms in
the newclient_aliases) makes zeroauthy a WS-Fed identity provider with
signed SAML 1.1 tokens, federation metadata and sign-out, andadfs
enterprise connections sign users in through ADFS or any WS-Fed identity
provider. Migration 0045 addsclient_aliases(unique per tenant) and
form_template; storage plugins need thewsfed.v1capability. Console,
seed and Deploy CLI support accompany it. See
WS-Federation. -
SAML 2.0: the SAML2 Web App add-on (
addons.samlp) makes zeroauthy a
SAML identity provider, withapi.samlResponsein post-login Actions, and
samlpenterprise connections sign users in through upstream SAML
identity providers. Both directions support the Redirect and POST bindings
and signed single logout. Migration 0044 adds client add-ons, session SAML
participants and the assertion replay table; storage plugins need the
saml.v1capability. Console, seed and Deploy CLI support accompany it.
See SAML. -
OIDC claims requests, phone/address/profile claims, requested MFA step-up,
per-client ID token algorithms, back-channel logout with durable delivery,
and enterprise upstream global revocation. Console, seed and Deploy CLI
support accompany the settings. See logout.
Global revocation tolerates an upstream clock up to 60 seconds ahead and
accepts a one-elementaudarray. -
Refresh Tokens II: strict rotation overlap and conversion, multi-resource
and session-bound online tokens, downstream DPoP, grant/session revocation,
token/session metadata and device history, and client-credentials quotas.
Console, seed and Deploy CLI support accompany the new Management routes.
See refresh tokens and upgrade notes. -
Enterprise OIDC and Okta login: front-channel form post, explicit endpoints,
PKCE modes, claim mapping and userinfo, signed client assertions, encrypted
ID tokens, upstream PAR, public connection keys and home realm discovery.
Migration 0041 preserves existing back-channel connections and stores sealed
connection keys. See enterprise connections. -
GitHub social connection (
github): OAuth app sign-in with S256 PKCE, the
Auth0 scope flags, a numericgithub|<id>identity and a verified primary
email required whenemailis on. GitHub Enterprise, device flow and token
refresh are not supported. See the guide. -
Sign in with Apple web login and native iOS authorization-code exchange,
operator-owned signing keys, private-relay profiles and first-login names.
Console, seed and Deploy CLI support include stored native-social switches;
Google and Facebook native exchanges remain deferred to Plan 39b. Migration
0037 adds native-social client persistence. See the guide.
Changed
- Hosted login now completes MFA before showing consent. Accepting an invitation,
assigning membership, creating a session and recording the login commit with
authorization. Abandoning a fresh login at either prompt leaves those changes
unapplied. Post-login Actions retain their position. - Management clients listing a user's organizations need
read:organizations.
Listing organization members requiresread:organization_members, plus
read:organization_member_roleswhen including roles. User search on v2/v3
ignores the legacyconnectionparameter. See upgrading. - Console Management calls for custom-host tenants and passwordless test sends
use the system host. The admin CSP derives its connection sources from server
configuration. - User updates can clear eight nullable profile attributes and request phone
verification. Verification jobs and tickets accept an organization for a
member. Email-provider reads expose configured public credential members and
support field projection. - New signup codes last 900 seconds. Send limits distinguish connection and
purpose. Brute-force protection records the first refused attempt in each
settled block. PostgreSQL and MySQL lock the affected counters in key order. - The MFA sweep removes stale unconfirmed authenticators. User lists batch MFA
lookups and authorization codes capture MFA evidence at issue time. - The tenant JWKS (
/.well-known/jwks.json) no longer includesalgon the
signing keys, for every tenant and for keys created earlier. One key signs
both RS256 and PS256 tokens, and jose-based verifiers such as
express-oauth2-jwt-bearerrefused PS256 tokens against a key marked
RS256. Verifiers that select keys bykidare unaffected (D-0063, C19).
Run it with Docker
docker run -d --name zeroauthy -p 8443:8443 -v zeroauthy-data:/data \
-e ZEROAUTHY_SERVER__LISTEN=:8443 \
-e ZEROAUTHY_SERVER__SYSTEM_HOST=localhost:8443 \
-e ZEROAUTHY_SERVER__TLS_SELF_SIGNED=true \
-e ZEROAUTHY_SERVER__TLS_SELF_SIGNED_CA_FILE=/data/ca.pem \
-e ZEROAUTHY_SECURITY__MASTER_KEY="$(openssl rand -base64 32)" \
-e ZEROAUTHY_BOOTSTRAP__ADMIN_EMAIL=you@example.com \
ghcr.io/occupysaas/zeroauthy:1.0.0-rc.2Images are multi-arch (linux/amd64, linux/arm64). Every setting is a
ZEROAUTHY_* environment variable (__ separates levels:
ZEROAUTHY_STORAGE__DSN sets storage.dsn); the full list with defaults is
in the configuration reference.
| Variable | Needed | Purpose |
|---|---|---|
ZEROAUTHY_SERVER__SYSTEM_HOST |
yes | Host (and port) of the admin console and system API |
ZEROAUTHY_SECURITY__MASTER_KEY or ZEROAUTHY_SECURITY__MASTER_KEY_FILE |
yes | 32-byte base64 key that seals stored secrets. Back it up: it cannot be rotated, and a database backup is useless without it |
ZEROAUTHY_STORAGE__DSN |
no | Defaults to SQLite in /data; memory:// for throwaway test runs; postgres://… or mysql://… |
ZEROAUTHY_SERVER__TLS_CERT_FILE / ZEROAUTHY_SERVER__TLS_KEY_FILE |
for production | Your certificate. SDKs require HTTPS |
ZEROAUTHY_SERVER__TLS_SELF_SIGNED |
for tests | Generates a local CA and certificate at startup; …_CA_FILE writes the CA for your test runner to trust |
ZEROAUTHY_SEED |
no | Path to a seed file that creates tenants, applications, APIs and users on start |
ZEROAUTHY_BOOTSTRAP__ADMIN_EMAIL |
first start | Creates the first console operator and logs where the setup link was written |
Testing your app against an Auth0-compatible server. zeroauthy can stand
in for Auth0 in local and CI end-to-end tests with real logins: start the
image with a seed file and memory:// storage, point your SDK's domain at
it, and throw it away after the run. See the
testing guide.
Start here: quickstart ·
deployment ·
upgrading ·
compatibility.
Verify downloads with sha256sum -c SHA256SUMS and
gh attestation verify <file> --repo occupysaas/zeroauthy.