Upgrading
此内容尚不支持你的语言。
An upgrade is five steps. Skip the provisioning step and you get a deployment that looks fine and is subtly broken. Skip the migration step and the server refuses to start.
-
Read the changelog. The changelog is kept per release; every entry that needs an operator action says so. Releases are also on GitHub.
-
Move to the new version. Change the pinned image tag, or pull the new git tag and rebuild:
Terminal window git fetch --tagsgit checkout v<version>bun installbun run buildThe published tags are listed on the GitHub releases page and on the container package page. Images are signed and carry an SBOM, so this is the step at which to verify the version you are adopting, since you are reading the changelog anyway.
-
Re-run the provisioning step against the same database:
Terminal window bun run db:setup # MongoDBbun run db:setup:pg # PostgreSQL -
Apply any schema migrations the release declares:
Terminal window bun run db:migrateOne command for either datastore. It reports
currentand exits when there is nothing to do, which is how most upgrades go.--planlists what would run without running it and exits non-zero when work is outstanding, so a pipeline can gate on it before the deploy instead of during it.A migration that cannot be undone is called out by name before it runs. When you see one, take a backup first.
-
Restart the server. It refuses to start against a database whose schema is not the one the release expects: behind, ahead, or holding a record for a migration whose declaration has since changed. A missed step 4 therefore stops the deploy instead of corrupting data quietly. A missed step 3 does not stop it, which is why the shipped deploy files run
db:setupas a gate of its own.
Why step 3 is not optional
Section titled “Why step 3 is not optional”db:setup is the only command that applies a release’s structural changes. It is also idempotent: it
upserts, so running it against an already-current database changes nothing. What a release can add:
- New collections (tables, on PostgreSQL), for a capability that did not exist before.
- New indexes, TTL indexes included. A collection that MongoDB auto-creates on first write has no TTL index, so documents that were meant to expire do not, and nothing complains. The script also drops stale expiry indexes for a field a release has stopped writing. On PostgreSQL there are no TTL indexes to create; the running server sweeps expired rows itself.
- Seed changes. When a release changes the admin seed,
db:setupis what applies it: a new reserved client, a new field on the administrators’ project, a team the ownership model now expects. The reservedadmin-mcpagent client arrived this way: an existing install has it only oncedb:setuphas run again. - Expiry of people’s data. A person’s activity is kept 90 days and then removed. On MongoDB the
removal is the TTL index
db:setupcreates; reads never show an expired row either way. Recording starts when you upgrade, so earlier activity cannot be shown (what FoxAuth records about people).
db:setup exits non-zero when a constraint it declares is not in force, so make it a gate instead
of a fire-and-forget. The shipped fly.toml runs it as release_command and Fly aborts the deploy
on failure; the Compose files run it as a setup service the server depends_on with
service_completed_successfully; on Kubernetes it is a Job you wait for.
Why step 4 is a separate step
Section titled “Why step 4 is a separate step”db:setup adds things: a collection, an index, a seeded document. Its one removal is an expiry index
nothing writes to any more. It never reshapes stored data, because adding is the only kind of change
safe to repeat against a database in any state. Reshaping data that already exists is a
different job. It has to run once, in a declared order, and be recorded so the next deploy knows it
happened. db:migrate does that job, on either datastore, which is why the two are not one
command.
The record db:migrate keeps tells three states apart, and each one stops a deploy instead of letting
it proceed on a guess:
- A database behind this release has outstanding migrations. Run them.
- A database ahead of it holds a record for a migration this release does not declare, which means the binary is older than the database, usually after a rollback past a migration.
- A database is diverged when a migration it already applied no longer matches the one declared under that name. A released migration edited after the fact is the cause; the fix is a new migration, and the released one stays as it was.
Only one process migrates at a time. A run takes a short renewable lease, so two replicas rolling at once do not both apply the same step, and a crashed run leaves a lease that expires rather than a database nobody may touch.
What a restart carries, and what it does not
Section titled “What a restart carries, and what it does not”- Server settings are already in force. A change saved in the console takes effect in the instance that saved it, so an upgrade neither applies nor re-applies it: the stored settings are read again at startup. An upgrade is still a good moment to re-read the settings reference for anything the release added. A setting that cannot be applied to a running server says so on its card and in the console, and there are none at present.
- Signing keys persist in the database: every issuer’s keys, the instance’s included, are records in
bucketKeys. An upgrade neither rotates nor invalidates them: tokens issued before it still verify, and every/jwksserves the same key set it did. Keys are not environment configuration. Their private parts are encrypted with the keyring, though, so the upgraded server needs the same keyring as before. The one exception is the release that gave projects keys of their own, below; 0.8.0’s migration moved the instance’s keys intobucketKeyswithout changing them. - SMTP settings are read live from their own store on every send, so they are unaffected by a restart in either direction. The mail password among them is encrypted with the keyring too.
- Tokens, sessions and grants survive, since they live in the database. Users are not signed out by an upgrade, with one release-specific exception below.
Encryption at rest: the keyring
Section titled “Encryption at rest: the keyring”The server encrypts the secrets it has to read back before it stores them. We call such a value sealed. The key that seals them sits in a keyring: a small file or variable that you hold, outside the database. Someone with a copy of the database but not the keyring cannot read these secrets.
What is sealed
Section titled “What is sealed”- application (client) secrets;
- sign-in provider client secrets, and Apple signing keys;
- the SMTP password;
- private signing keys, the instance’s and every project’s;
- authenticator (TOTP) secrets, including enrolments that are not finished yet;
- the DPoP nonce secret;
- the key that hashes caller addresses in the error log.
Each value is encrypted with AES-256-GCM. It is also bound to its record and its field, so a sealed value copied into another record does not open there. MongoDB and PostgreSQL store sealed values in the same way.
One secret stays unencrypted on purpose: the pairwise identifier salt. It decides the sub that each
application sees for a person. If it were sealed and the key were lost, every application’s sub would
change for ever. So the salt is not sealed.
What a keyring looks like and where it goes
Section titled “What a keyring looks like and where it goes”A keyring is a JSON document:
{ "v": 1, "write": "<kid>", "keys": { "<kid>": "<base64url, 32 bytes>" } }keys holds every key the server may need to read a value, each under a key id (kid). write names the
key that new values are sealed with.
The server reads the keyring from one of two places:
- the environment variable
KEYRING, holding the JSON itself; - a keyring file at
KEYRING_FILE. The default iskeyring/foxauth.keyringunder the working directory, which is/app/keyring/foxauth.keyringin the Docker image.
Use one of the two. With both, the server refuses to start. Each deploy page says which one fits that platform: Docker Compose, Fly.io, Kubernetes, and Run from source for a server you run yourself.
The keyring is a deployment secret, like the database connection string. Never store it in the database. Keep a copy apart from your database backups as well. The secrets in a backup cannot be read without the keyring, and a backup stored next to its keyring protects nothing.
The server never makes a keyring by itself at startup. A keyring is made in one of three ways: by
first-run setup, by a super administrator in the console, or by you with bun run keyring new.
Upgrading an existing install
Section titled “Upgrading an existing install”Nothing breaks on the upgrade. Without a keyring, the server works as before and stores secrets unencrypted. The console’s Keys page then shows a warning in its Encryption at rest card. There are two ways to start using a keyring.
Generate it in the console. On the Keys page, press Generate keyring in the Encryption at rest card. This needs a super administrator. The console shows the keyring once, with Copy and Download buttons. You continue only after ticking that you have saved it apart from your database backups. What happens next depends on the keyring directory:
- If the directory exists, for example because a volume is mounted there, the server writes the keyring file into it and uses it at once. Existing secrets are sealed straight away.
- If it does not exist, the keyring is not in use yet. Set it as the
KEYRINGsecret of your deployment and restart.
Supply your own. Run bun run keyring new, put its output in KEYRING or in the keyring file, and
deploy.
When a restart brings a keyring into use, the server seals the existing secrets about 10 minutes after it starts. The wait lets a blue-green or rolling deploy finish first. The previous release reads a sealed value as if it were plain text, so an application secret sealed while it still serves would stop matching there.
The card shows how many values are sealed under each key and how many are still unencrypted.
Changing the keyring from the command line
Section titled “Changing the keyring from the command line”bun run keyring makes and changes a keyring without touching the database. It reads the current
keyring from KEYRING, else from the keyring file, else from standard input, and prints the result.
| Command | What it does |
|---|---|
bun run keyring new |
Prints a new keyring with one key. |
bun run keyring add |
Adds a new key. Nothing is sealed with it yet. |
bun run keyring write <kid> |
Makes that key the write key. |
bun run keyring remove <kid> |
Removes a key. The write key cannot be removed. |
bun run keyring show |
Lists the key ids and their fingerprints, with no key material. |
Rotating the key
Section titled “Rotating the key”A rotation is two changes and two deploys:
-
Run
bun run keyring add, and deploy the new keyring to every instance. Each instance can now read values under the new key, but none writes with it yet. -
Run
bun run keyring write <kid>with the new key’s id, and deploy again. New values are sealed with the new key. About 10 minutes after each start, the server seals old values again under the new key.
Remove the old key with bun run keyring remove <kid> only when both of these are true:
- the Encryption at rest card shows no values under that key;
- no backup you keep was taken while the key was in use. Restoring such a backup needs the old key.
Two steps matter because an instance that has not received the new key cannot open a value sealed with it. Deploying the key everywhere first means no instance ever meets a value it cannot read.
The server refuses to start when a keyring gives a known key id different key material, which usually means a typo. It refuses before it writes anything.
If a key is lost
Section titled “If a key is lost”A lost key does not stop the server. It keeps running, and each check that needs a secret it cannot open fails closed:
- an application whose secret cannot be opened is refused with
invalid_client; - an authenticator that cannot be opened is refused;
- mail is treated as not configured;
- a sign-in provider is treated as not configured.
The Encryption at rest card lists every such secret with its repair:
| Secret that cannot be opened | Repair |
|---|---|
| An application secret | Rotate the application’s secret. |
| A sign-in provider secret or key | Enter the provider’s secret or key again. |
| The mail password | Enter the mail password again. |
| A person’s authenticator | Reset that person’s authenticator. |
| A project’s signing key | Generate a new key for the project. |
If you find the lost key later, putting it back into the keyring under its old id repairs everything at once.
The console’s own sign-in is signed with the instance’s root signing keys. If the keyring cannot open those, nobody can sign in to the console. Run this with the keyring the server uses:
bun run admin:replace-root-keysIt revokes each root key that cannot be opened. For each algorithm, a key that can still be opened takes
over signing, or the command makes a new key, sealed with the current keyring. Tokens signed by the
revoked keys stop verifying. Relying parties fetch the new keys from /jwks.
One upgrade signs your end users in again
Section titled “One upgrade signs your end users in again”Upgrading to the release that made projects addressable, and only that one, ends every end-user sign-in once.
A sign-in is held in a browser cookie. The cookie is now named after the project it belongs to
(_session_default, _session_acme), so that somebody can be signed in to two projects at once
without either sign-in disturbing the other. Cookies written before the upgrade carry the old name,
which names no project. They are not read, and the server expires them on the first request that presents
one, so a browser stops sending a cookie that no longer means anything.
What your end users see: the sign-in screen, once, the next time they visit. Nothing is lost: accounts, grants, consent and refresh tokens are untouched, and a refresh token keeps working without anybody signing in at all. There is nothing to do on your side and no order to do it in; the sign-out is listed here so the support question is expected rather than alarming.
The console stays at /admin. It did not have to move to free that word for a project address,
because the administrators’ project is served at the root and never puts its name in a URL.
One upgrade gives each project keys of its own
Section titled “One upgrade gives each project keys of its own”Upgrading to the release that gave addressable projects their own signing keys and resource
namespaces changes three things an integration can see. The instance’s own issuer, its metadata and
its /jwks are unchanged; everything below concerns projects with a path or a hostname of their own.
- A project signs with its own key from its first use. Before, every project signed with the instance
keys and its discovery pointed
jwks_uriat the instance’s/jwks. Now itsjwks_uriis beneath its own issuer (https://auth.example.com/acme/jwks, or its hostname’s/jwks) and holds only its own keys. A resource server that re-reads the project’s metadata picks up the newjwks_uriby itself; one configured with the instance’s/jwksby hand has to be pointed at the project’s. - Tokens a project issued before the upgrade stop verifying at its resource servers. They were signed with the instance keys, which the project no longer publishes. The switch is immediate, with no overlap, because an overlap would keep one tenant’s tokens verifiable at another’s. Access and ID tokens are short-lived and refresh tokens are unaffected, so clients recover on their next refresh; plan the upgrade for a quiet moment if long-lived access tokens are in use.
- The release carries its first schema migration, and it cannot be undone. It re-keys declared
protected resources so that an identifier is unique per issuer rather than across the instance.
db:migrate --plannames it; take a backup beforedb:migrate, which step 4 above runs. From then on, declaring a resource in a project of one’s own needs nothing from the resource, and at the instance’s root issuer only a super administrator declares a resource.
One upgrade turns roles into groups and moves the instance’s keys
Section titled “One upgrade turns roles into groups and moves the instance’s keys”Upgrading to 0.8.0 carries two schema migrations, and neither can be undone. Do the steps in this order:
-
Take a backup. There is no way back from either migration except a restore.
-
Run
db:setup(ordb:setup:pg). The release adds storage areas that the migrations and the new features write into (groups and their memberships, provisioning connections, the deprovisioning tally), anddb:migrateexpects them to exist. -
Run
db:migrate --plan, thendb:migrate. The plan names both migrations below. The server refuses to start against a database that has not run them, so a skipped step stops the deploy rather than serving from a half-converted database.
2026-09-30-root-keys-lifecycle moves the instance’s signing keys into the store a project’s keys
already use, so that the instance’s keys rotate without a restart too. For each algorithm, the key that
signs afterwards is the key the old server was signing with; on PostgreSQL, which keeps no insertion
order, that is the key with the lowest kid. The migration prints which key it chose for each algorithm,
so check that output against what your relying parties expect. Every other key becomes published only:
it is still served at /jwks and still verifies, but it does not sign. A migrated key can be promoted
once the 60-second publication window has passed. See Rotate signing keys.
2026-10-08-roles-to-groups removes roles. Every role a project declares, or an end user holds, becomes
a group with exactly the same holders as members. Role names that differ only in letter case are
merged into one group, blank names are skipped, and a name some user held but the project never declared
is kept as a group. The migration reports each of these as a count. On the administrator side, every
holder of super_admin, active or deactivated, becomes a member of the Super administrators team.
project_admin disappears without replacement, because it never granted anything.
What an integration sees after 0.8.0:
rolesis gone from the admin API and from MCP. A script or agent that setroleson an administrator, a project or an end user is now refused, because the field is unknown. Super administrator standing is granted and withdrawn by operations of its own,admin_super_grantandadmin_super_withdraw, and end users are grouped with thebucket_group_*tools. Relying parties that read roles from a claim read thegroupsclaim instead.- Refresh tokens are served only while
offline_accessis a supported scope. The token endpoint now accepts exactly the grant types discovery advertises, so withoffline_accessabsent from thescopessetting, a refresh, including one using a token issued before the upgrade, is refused withunsupported_grant_type.refreshToken.enabled, which changed nothing anyone could observe, is removed. - ID tokens from a password sign-in now carry
"amr": ["pwd"]. Every ID token from a sign-in states how the user authenticated:["pwd"], or["pwd", "otp", "mfa"]with a one-time code; a federated sign-in carries none. A test or relying party that treated the mere presence ofamras “used a second factor” now gets that wrong. Look formfaorotpin the array instead. jwks_deleteis gone, and so is deleting a key. Keys are retired instead, and a retire, of an instance key or a project key, is refused unless its body names the key:{ "confirm": "<kid>" }. The console makes the operator type thekid.
Then 0.9.0
Section titled “Then 0.9.0”0.9.0 declares no migration. It adds one storage area, UpstreamSession, which
back-channel logout from upstream providers needs, so run
db:setup (or db:setup:pg) and restart.
One fix in 0.9.0 concerns upgrades to 0.7.0 and 0.8.0. The Compose files shipped before 0.9.0 ran
only db:setup in their setup service, so pulling 0.7.0 or 0.8.0 over an existing database left a
server that refused to start. The shipped docker-compose.yml and docker-compose.postgres.yml now run
db:migrate after it. If you keep your own copy of an older file, add the step to its setup command.
If a Compose deployment has refused to start since it moved to 0.7.0 or 0.8.0, the missing db:migrate
is the cause. Take the backup those releases asked for, then run db:migrate once.
Then 0.10.0
Section titled “Then 0.10.0”0.10.0 carries one schema migration, and it cannot be undone. A personal team used to be able to gain
members; from this release it has exactly one, its owner. The migration
2026-10-09-personal-groups-single-member removes everyone else from each personal team and writes one
audit entry per team. Before you upgrade, list the personal teams with more than one member
(group_list with kind: personal). Move what they hold into a regular team, or note who loses access.
Then take a backup and run db:setup (or db:setup:pg). It adds the activityMarks and
activityFigures areas that count active users, and a new index on the audit trail. db:migrate --plan
names the migration, and db:migrate runs it.
What else an operator or an integration sees after 0.10.0:
- The administrators’ settings are project settings now.
GETandPATCH /admin/api/admins/settingsand the MCP toolsadmin_settings_readandadmin_settings_updateare removed. Read and change the administrators’ project withbucket_getandbucket_update, as any other project. - A setting stored with the wrong type stops startup. The settings API never writes one, so this
only concerns a value edited into the database by hand, such as a flag stored as the string
"false". The error names the key. A malformedrichAuthorizationRequests.typesstops startup too, even while RAR is off, because the consent screen reads it.
Then 0.11.0
Section titled “Then 0.11.0”0.11.0 carries one schema migration, and it cannot be undone. A SCIM static token used to live until it
was replaced or revoked; from this release it expires (RFC 7644 §7.4). The migration
2026-10-12-static-token-expiry gives every static token that has none an expiry a year after its issue,
and never sooner than 90 days after the upgrade, so no directory stops syncing that day. Note the dates
it sets and plan the replacements: a directory that still holds an expired token is refused.
Then take a backup and run db:setup (or db:setup:pg). It adds the provisioningRefusals area, which
records the removals a held connection refused, and new indexes: prefix search over users’ emails and
usernames, the audit trail’s project filters, and a connection’s previous static token. db:migrate --plan
names the migration, and db:migrate runs it.
What else an operator or an integration sees after 0.11.0:
- Administrators should enrol their authenticator again. Before this release the administrator list and the answers to creating and updating an administrator carried every enrolled administrator’s TOTP secret, readable by any super administrator or an agent acting for one.
- The users list is paged by the server.
GET /admin/api/buckets/:id/usersandbucket_user_listanswer{ users, totalResults }in email order, a page at a time, instead of an array of everyone. - More changes ask to be confirmed. Setting or clearing the bucket of one of the old projects (removed
since), tightening a project’s sign-in (passwords off, verification or an authenticator required, sign-up
opened on a reserved project) and handing a group to a directory answer 409 with what they do. They
apply only when the request is repeated with
confirm: trueand the sameexpect. A script that did any of these in one request must now send the second. - Deleting a project schedules it.
DELETE /admin/api/buckets/:idswitches the project off and destroys it 30 days later;POST /admin/api/buckets/:id/purgedestroys a scheduled project at once, andbucket_restorebrings it back. Its address stays taken until it is destroyed. - New projects are closed to sign-up unless the request asks for it, and requiring a verified address is refused on every project until mail delivery is configured.
- A user’s profile wins over a stored claim of the same name. An application that read a
given_namefrom a user’s claims document while the profile held another now receives the profile’s.
Then 0.12.0
Section titled “Then 0.12.0”0.12.0 carries no schema migration. Take a backup and run db:setup (or db:setup:pg): it adds the
ClientLogo area, which holds the logo an administrator uploads for an application.
What else an operator or an integration sees after 0.12.0:
- The consent form is bound to the account it was shown for. It carries a hidden
accountId, and a post for any other account is refused. A script that fills in the consent form itself must send it. - The consent page is reworded and rebuilt. It is headed by the project’s new
displayName(or its address), names the account by email, and groups what an application asks for into what it will see, what it will do and what nobody described. A test or a script that reads the page’s text must be updated. - A refused permission can be granted again. A permission someone left out is offered again when the
application sends
prompt=consent; before, a refusal recorded on a grant was final. - End-user pages speak three languages. They are shown in English, Russian or Simplified Chinese, from the
person’s own choice, the application’s
ui_locales, the account’s stored locale and the browser, and they answer withContent-LanguageandVary: Accept-Language, Cookie. Protocol answers do not change. Both discovery documents publishui_locales_supported. - Every project has a connected-apps page at
/account/appson its own address, where people remove the access they gave. A removal is audited asself-service.
Then 1.0.0
Section titled “Then 1.0.0”1.0.0 is the first stable release: from 1.0.0 on, an incompatible change to the HTTP surface, the admin API
or the MCP tools comes only in a major release. 1.0.0 renames what an administrator or an agent reads and types. A bucket is now a project,
an administrator group a team (a personal group a personal team), and a bucket group a group of
the project’s end users. The sections above already use the new words; the paths and tool names they quote
are those of their release. Storage, the protocol and issued tokens do not change: issuer addresses,
discovery, /jwks, tokens, SCIM and end-user pages are what they were.
It also removes the old projects, the containers that listed a bucket’s applications, before it
gives their name to buckets; the changelog describes that change and its migrations. It
carries one migration of its own for the rename, and it cannot be undone:
2026-10-17-projects-reserved-hostnames moves the stored value of the setting buckets.reservedHostnames
to its new key, projects.reservedHostnames, and changes nothing else. Take a backup.
db:migrate --plan names the migrations, and db:migrate runs them.
What an integration sees, with no aliases kept for the old names:
- Admin API paths.
/admin/api/buckets…is/admin/api/projects…, a project’s groups are at/admin/api/projects/:id/groups…, and/admin/api/groups…is/admin/api/teams…. Every sub-path keeps its suffix, and an old path answers 404. A script written for the old/admin/api/projectsroutes does not work against the new ones. - Fields.
ownerGroupIdisownerTeamId, an application’s or API’sbucketIdisprojectId, andgroupIdisteamIdwhen creating or moving a project, switching scope (PUT /admin/api/scope) and accepting an invitation./admin/api/meanswersactiveTeamId, and the audit filterbucketisproject. Error messages say project, team and group. - MCP tools.
bucket_*,bucket_user_*,bucket_group_*andbucket_key_*areproject_*,project_user_*,project_group_*andproject_key_*, andgroup_*isteam_*. The count, each tool’s consequence class and its confirmation are unchanged. An agent that kept the old list gets “unknown tool” and has to list the tools again. - Console addresses. The console lives at
/admin/projects/…and/admin/teams/…, and a project’s groups at/admin/projects/:id/groups. Old addresses redirect, so bookmarks and the links in held-deprovisioning emails already sent still open their page. - The audit trail. Entries are shown as
project.*,team.*andgroup.*, those written before the upgrade included, and a filter by a new name finds them; the stored entries are not changed. Entries about the old projects are shown asretiredproject.*and do not match a filter for today’s project actions.
The same release adds a third form of project address, a subdomain of the instance’s own host
(https://acme.auth.example.com); Project addresses describes it. What
an operator or an integration sees:
- Nothing changes until you turn it on. The new setting
projects.addressFormsstarts atpathon every instance, so teams are offered exactly what they had. Set up the wildcard DNS record and certificate first, then switch it tosubdomainorboth. db:setupadds a unique index on project slugs. It fails if two projects already share a slug. Before upgrading, find any such pair and give one of them a new address; nothing renames a slug for you, because a slug is part of an issuer.GET /admin/api/meanswerscan.addressFormsinstead ofcan.createHost. It lists the forms the caller may give a project; a super administrator getspath,subdomainandhost. No alias is kept, so a script that readcan.createHostmust readcan.addressFormsand look forhost.- New addresses are audited in full. A new
project.address.changeentry records the old and the new issuer, so a path and a subdomain with the same slug are told apart. Entries written before the upgrade are unchanged.
The same release adds plans: a named set of limits on each project, for a public instance where anyone may register as an administrator. What an operator or an integration sees:
- Nothing is limited until you turn it on. The new setting
plans.enabledstarts off on every instance, so teams can create exactly what they could before. - Every existing project is put on Free. The migration
2026-10-18-projects-record-planrecords the Free plan on every project outside the System team that records none, and reports how many. It cannot be undone, but it changes nothing else, and it can safely run twice.db:migrate --plannames it, anddb:migrateruns it. - New answers, no removed ones. A project’s summary gains a
planblock,GET /admin/api/megainscan.nameSlug,can.projectsandcan.teams, and the MCP surface gains fourplan_*tools andproject_plan_set. While plans are on, a creation over a limit is refused with409andcode: 'plan_limit'.
The same release tightens what one team, or one stranger, can do to the others on a shared instance. Run
db:setup (or db:setup:pg): it adds the TeamInvitationThrottle area, which counts team invitations. The
release carries one migration, 2026-10-19-admin-signup-requires-verification. What an operator or an
integration sees:
- Administrators’ sign-up needs email verification. The administrators’ project holds the console’s own accounts. It can no longer be saved with sign-up open and email verification off, because then anyone could register an administrator account under a colleague’s address. The migration closes administrators’ sign-up where it was open without verification, and its report says whether it did. To reopen it, turn sign-up and verification on together, in one change, on the Sign-in tab of the Administrators page. The migration can be undone, and it can safely run twice.
- An invitation can take over an unconfirmed account. While administrators must verify their address, an invitation to an address whose administrator account was never confirmed asks the invitee to choose a password. That password replaces the account’s, its second factor and linked identity providers are removed, and all its sessions end. A confirmed account joins the team as before. See Accepting an invitation.
- Only a super administrator adds an existing administrator to a team directly. A team owner who calls
POST /admin/api/teams/:id/membersorteam_member_addgets403, and invites the person instead. - An owner invitation is always sent. Under plans, whether the invitee may become an owner is checked when they accept it. A refused acceptance leaves the invitation usable.
- Team invitations are limited, for super administrators too: one per address and team every 10 minutes and at
most 5 a day, at most 100 a day per inviter across all teams, and at most 50 open invitations per team. A refusal
says how long to wait, and carries
retryAfterin seconds where waiting helps. - Signing keys are limited per key set, the instance’s and each project’s: at most 12 keys held and at most 20
made in a day, revoked keys included. A refusal is
409withreason: "key_limit". See How many keys. - Stored values have upper limits. Project, application and identity-provider names are up to 100 characters.
An application holds up to 50 redirect URIs and 50 post-logout redirect URIs, each up to 2000 characters, and up
to 50 browser origins, each up to 300 characters. An identity provider holds up to 50 scopes and up to 100
allowed email domains. Only new values are checked: a value already stored keeps working. A request body over
1 MiB is refused with
413, on every endpoint. - An application’s
jwks_uriandbackchannel_logout_urimust usehttpswhen they are set or changed. An application that already stores anhttpvalue keeps working, and its other fields can still be edited. - More words are refused as a new project path: every name on the subdomain form’s built-in list, and
account,healthandready. An existing project with such a path keeps it. See Names a path cannot take. - The console’s own sign-in applications work only at the instance’s root address. A sign-in request for one of them at a project’s address is refused.
email_verifiedistrueonly for an address that was proven. A person who signs up, or whom an administrator creates, now starts unverified in every project. Before, a project that did not require verification recorded them as verified, and applications were toldemail_verified: true. Sign-in does not change. Applications may notice new people arriving withemail_verified: false. Accounts created before the upgrade keep their recorded value, because nothing records why an account is verified. Turning verification on for a project asks everyone who is not verified, and only them.
Then 1.0.1
Section titled “Then 1.0.1”1.0.1 carries no schema migration and no new storage area. It fixes two things an operator sees:
- A new instance releases
emailandemail_verifiedunder theemailscope. Before, the shipped claims map had noemailscope, so no application learned whom it signed in. An instance that saved its claims setting keeps what it saved, because the stored map replaces the default whole: add"email": ["email", "email_verified"]under Settings → Claims there. db:setupno longer asks you to readdress the instance’s own projects. On a fresh database it reported the administrators’ and default projects as using reserved addresses. Their names never become a path, so there was nothing to do.
Then 1.1.0
Section titled “Then 1.1.0”1.1.0 carries no schema migration, no new storage area and no new setting, so there is nothing to run beyond the usual steps. What an operator sees:
- Provider buttons fit any number of providers. Past six, five stay on the sign-in page and the rest fold under More sign-in options; Google, Microsoft, Apple and GitHub are never folded. Check the Sign-in tab’s preview of a project with many providers, and act on any warning about a duplicate or confusingly named provider.
- The console says why a provider is missing from the sign-in page. While
federation.enabledis off, the providers list, the provider’s page and the sign-in preview say so. - Mail can be tested from its settings. Settings → Integrations → Email (SMTP) sends a test message to your own address and shows the mail server’s reply if it refuses. A refused message is now logged, and sends time out instead of holding a request.
Then 1.2.0
Section titled “Then 1.2.0”1.2.0 carries no schema migration and no new setting. db:setup, which the usual steps already run, provisions one
new storage area, ClientUsage, behind an application’s “last sign-in”. Check one thing before upgrading:
- A client without credentials no longer gets machine tokens. An application registered with token endpoint
auth
noneand theclient_credentialsgrant was given access tokens on its client_id alone, which is public. From 1.2.0 it is answeredunauthorized_client, and so is the same client at CIBA’s backchannel endpoint. Look for such clients first, and give each a secret or a key, or it stops getting tokens.
What an operator sees afterwards:
- New application starts from a situation, and each application has a page of its own with what it takes to connect it: client ID, the secret once, the issuer and endpoints, its addresses and who can sign in. The edit window is gone; its settings are on the page’s Settings tab.
- Sign-in pages name where they lead: the project’s display name, else its host, and the application’s own name and logo when the project stands behind it. Give each project a Name shown to users if it has none.
- Emails name a project the same way, never by its console-only name.
Then 1.3.0
Section titled “Then 1.3.0”1.3.0 carries no schema migration and no new setting that is on by default. db:setup, which the usual steps
already run, provisions two new storage areas for enterprise-managed authorization. Check these before upgrading:
- A client is served only by its own project’s endpoints. An application of a project with an address of its
own is now unknown at every other address: another project’s or the root’s token, introspection, revocation and
pushed-request endpoints answer
invalid_client. A code or refresh token is redeemed only at the address that issued it. Client credentials at a project’s address serve only that project’s applications. If a client is configured with the root’s token endpoint while it signs in at a project’s address, point it at the project’s own endpoints, which that project’s discovery document lists. - New plain-http redirect addresses must be loopback. A new application, or an edit that adds a redirect
address, may use
httponly onlocalhost,127.0.0.1or[::1]. Addresses already stored keep working, and such an application can still be edited. - Agent access entries are compared as written. An entry under Agent access now matches a client identifier only when the two are the same string. If an entry was added with a different spelling of the host or port than the agent presents, add it again exactly as the agent presents it.
- A client metadata document is held to draft -02. If you accept URLs as client identifiers, a document is now read from one request that answers 200, never through a redirect, and a document that publishes a client secret is refused.
What an operator sees afterwards:
- Enterprise-managed authorization, off until switched on: a project can accept identity assertions from a
sign-in provider it trusts (
jwtBearer.enabled) and issue them for outside authorization servers it connects (tokenExchange.enabled). - Applications in the Administrators project: a super administrator can register a sign-in application there so an internal tool signs in the instance’s administrators.
- The registration settings explain themselves: accepting a URL as a client identifier is described as the path MCP recommends, and dynamic registration as the one it deprecates.
Then 1.4.0
Section titled “Then 1.4.0”1.4.0 carries two schema migrations, which the usual db:migrate step applies, and db:setup provisions the new
storage areas for connected services. The first migration cannot be undone, so take a backup first. Check these
before upgrading:
- How the server learns a caller’s address changed.
rateLimit.trustedProxyis replaced byclientAddress.source. The migration choosesflyfor an instance in use anddirectwhere the old setting was off. On Fly.io there is nothing to do. Anywhere else, open Settings → Sign-in & abuse after the upgrade: the card there shows the address the server sees for you and warns when the choice does not fit. See Behind a reverse proxy. - Two reports to FoxTrust are on by default. A daily anonymous usage report and an hourly report of the addresses that attack the instance. Each has its own switch under Settings → Integrations, and every field either carries is listed under Usage reporting and Attack reporting. If you do not want them sent, turn them off as soon as the new version is up: the first attack report can leave within five minutes.
- RSA keys shorter than 2048 bits are refused, in an application’s key set and among the server’s own keys. Replace any such key first.
- One address may ask for at most 10 emails an hour: password resets, sign-ups and verification resends,
across every project (
mail.requestsPerCallerPerHour). Raise it if many people sign up from one office address.
What an operator sees afterwards:
- Encryption at rest. Nothing changes until a keyring is in use. The Keys page warns while there is none; Upgrading an existing install says how to start. Back the keyring up apart from the database. Docker Compose users take the new compose file, which adds the keyring volume.
- Connected services, a new tab on each project: people connect their accounts at the services you declare, and agents you list obtain their tokens there by token exchange, with the person’s consent. See Connected services. Declaring a service needs a keyring in use.
- Every ID token carries
auth_time,acrandsession_expiry, whether or not the request asked. - The IPSIE SL1 profile switch (
ipsieSl1.enabled, off), with a readiness card that lists what stands in the way. See Turn on the IPSIE SL1 profile. - Every response asks search engines not to index it (
X-Robots-Tag: noindex, nofollow).
Then 1.5.0
Section titled “Then 1.5.0”1.5.0 carries no schema migration, no new storage area and no new setting that is on by default. There is nothing to check before upgrading.
What an operator sees afterwards:
- Connected accounts from sign-in. A connected service can be linked to one of the project’s sign-in providers that uses the same client id, so signing in through that provider also connects the person’s account there. See Connected services.
- The “What do you need?” guide in every project’s console, and on the site at /guide/.
- Applications that skip consent sign in again two weeks after the first time, the console included. Before,
the sign-in outlived the grant it remembered and was refused with
access_denied, which the console showed as422 Property 'code' is missing. A refused console sign-in now shows its own reason.
Then 1.6.0
Section titled “Then 1.6.0”1.6.0 carries one schema migration, which the usual db:migrate step applies, and db:setup provisions the new
storage areas for apps behind your proxy and for the password-guessing counts. The migration changes no data, but it
cannot be undone: once it is recorded, an older release refuses to start against the database, so take a backup
first. No new setting is on by default. Check these before upgrading:
- Rolling back below 1.6.0 is not possible without restoring that backup. During a rolling deploy, a process still on the older release answers errors for apps and APIs with conditions until it is replaced.
- A DPoP proof without a usable
htuis refused withinvalid_dpop_proof. Before, it was read as no proof and the client got an unbound token. A client that sends such a proof must send a correct one.
What an operator sees afterwards:
- Apps behind your proxy. A project’s Applications tab can put sign-in in front of a web app that Caddy, Traefik or nginx serves. See Put sign-in in front of a web app.
- APIs checked at your proxy. An API can leave token checks to your proxy, with the scopes each MCP tool needs. See Protect an MCP server at your proxy.
- Conditions at your proxy: address ranges, opening hours, an attribute, groups for an API and a fresh sign-in.
See Add conditions at your proxy. Access tokens now carry
auth_time,acrandamr. - FoxTrust’s list of password-guessing addresses, off until a super administrator turns it on under Settings → Integrations (attack reporting must be on). Each project then counts sign-ins from listed addresses by default and can choose to refuse them. See Refuse password guessing from known addresses.
- Sign-in answers in the same time whether or not an account exists for the address typed.
Then 1.7.0
Section titled “Then 1.7.0”1.7.0 carries two schema migrations, which the usual db:migrate step applies, and db:setup provisions the new
storage areas for codes from an authenticator app. The migrations change no data, but they cannot be undone: once
they are recorded, an older release refuses to start against the database, so take a backup first. Check these
before upgrading:
- Rolling back below 1.7.0 is not possible without restoring that backup. During a rolling deploy, a process still on the older release does not ask for a code, so turn the new requirements on once every process runs 1.7.0.
- A person who holds a code is asked for it at every password sign-in, in any project, including people who set one up while their project required it and the project later stopped requiring it.
- People can set up a code themselves on a new account page,
/account/security. This is on by default in every project with password sign-in once mail is set up, the administrators’ project aside; a project can turn it off on its Sign-in tab.
What an operator sees afterwards:
- Two-step verification on a person’s own account, after a sign-in with their password and a link mailed to them. Every change is mailed. See Let people turn on two-step verification.
- An application that requires a code. One switch on the application page; turning it on first shows how many people it turns away. Refresh tokens from sign-ins without a code stop working while it is on. See Require a code in one app.
- A code on one path behind your proxy, as part of the “Ask to sign in again” condition. See Add conditions at your proxy.
- An expired sign-in shows a plain page in the person’s language instead of
interaction session not found.
Then 2.0.0
Section titled “Then 2.0.0”2.0.0 carries six schema migrations, which the usual db:migrate step applies, and db:setup (or db:setup:pg)
provisions the new storage area for people’s activity and two new indexes. The migrations change no data, but they
cannot be undone: once they are recorded, an older release refuses to start against the database, so take a backup
first. Check these before upgrading:
- A client assertion must name the issuer alone in
aud. This change is why the release is a major one. A client that authenticates withprivate_key_jwtorclient_secret_jwtand puts the token endpoint’s URL, another endpoint’s URL or several values inaudis now refused withinvalid_client, as RFC 10070 requires. Fix the client. Until then a super administrator can turn offclientAuth.issuerOnlyAudience, which reopens the audience-injection attack the RFC closes. An instance that already storedfalsekeeps it. - Every project keeps people’s full sign-in addresses for 90 days. Each sign-in, each failed sign-in where the
account was found and each refusal behind your proxy is recorded for the person. It is kept through a lock and
deleted with the person and with the project. Tell your users, or turn it off with
personActivity.enabled. - Those addresses go to FoxTrust’s API by default, to look up the network owner and place. They are sent in batches, about a minute after each event, with nothing else about the person. FoxTrust keeps none of them and acts as your processor (RedFox Software, terms at https://foxtrust.dev/terms). Turn it off under Settings → Integrations with Look up network owner and location at FoxTrust. The first key needs usage reporting on and arrives about a week after the upgrade.
- Keep your keyring. The instance key FoxTrust knows this server by is sealed with it, and a lost one cannot be replaced without FoxTrust’s support.
- Monthly active people rise in projects behind a proxy. A request your proxy lets a person through now counts as activity, so a plan’s monthly-active cap may be reached sooner.
- Rolling back below 2.0.0 is not possible without restoring that backup. During a rolling deploy, an older process answers an error for an app or an API with the new conditions until it is replaced, so add them once every process runs 2.0.0.
What an operator sees afterwards:
- An Activity tab for each person: sign-ins, failed sign-ins, refusals and requests to sign in again behind your proxy, the apps and APIs they used each day, and the network owner and place of each address. The list of people gains “Last active”, and an app’s or an API’s Access tab lists whom it refused in the last 24 hours.
- Recent sign-ins on a person’s own account page,
/account/sign-ins, with “Sign out everywhere”. - An API’s own page with Connect, Access and Settings tabs. An API can require a code or a recent sign-in, and one MCP tool can have conditions of its own. See Protect an MCP server at your proxy.
- Network facts from FoxTrust, off until a super administrator turns them on under Settings → Integrations. “From where” can then keep Tor, commercial VPNs, hosting or some countries out of a path or an API. See Add conditions at your proxy.
Then 2.0.1
Section titled “Then 2.0.1”2.0.1 has no migration and nothing to set up. It fixes one sign-in: Claude Code, which identifies itself with a client
metadata document listing http://localhost/callback without a port, was refused with a redirect_uri mismatch when it
came back on the port it binds at sign-in. It now signs in to an MCP server behind FoxAuth.
Then 2.1.0
Section titled “Then 2.1.0”2.1.0 adds one storage area, which db:setup (or db:setup:pg) provisions, and two fence migrations, which
db:migrate applies. They change no data. Once they are recorded, an older release refuses to start against the
database, because it would stop recording administrators’ sign-ins and stop sending the new emails without saying so.
- Administrators’ sign-ins are kept from the upgrade on. Nothing from before it exists. While address lookup is on, their addresses are sent to FoxTrust’s API for the network owner and place, as people’s are.
- Administrators are emailed about a sign-in from a new network or browser by default. It needs mail set up and people’s activity recording on. For a project’s people it stays off until an administrator turns on “Email people about sign-ins from a new network or browser” in the project’s Sign-in tab.
Then 2.2.0
Section titled “Then 2.2.0”2.2.0 adds eight storage areas, which db:setup (or db:setup:pg) provisions, and five migrations, which db:migrate
applies. One migration adds phishing_resistant (phr, or urn:foxauth:acr:phr if phr is already in use) to a
stored acrValues setting if one was saved; the other four are fence migrations that change no data. Once they are
recorded, an older release refuses to start against the database.
- Passkeys are off by default for every project, including Administrators. No existing sign-in changes until an administrator turns Passkeys on in a project’s Sign-in tab. See Let people sign in with a passkey.
- Existing two-step requirements now accept a full passkey. Apps, APIs and proxy paths that previously required a
code from an authenticator app now accept a full passkey too, and the console calls them “two-step sign-in”. Apps,
APIs, proxy paths and the administrators’ console can also require a passkey directly (
phr). - Previously mailed “This wasn’t me” links stop working after the upgrade. Those links moved to their own storage
area (
NotMeLink) so a sign-out everywhere no longer kills the owner’s way back. Links mailed after the upgrade work as expected.
Check readiness and the issuer after the restart
Section titled “Check readiness and the issuer after the restart”curl -sf https://auth.example.com/readycurl -s https://auth.example.com/.well-known/openid-configuration | jq -r .issuer/ready rather than /health on purpose: /health answers for the process alone and would pass
against a server that came up unable to reach its database. The issuer check is the one worth
automating. The shipped deploy workflow does this, because the advertised issuer is the
value a deploy can get wrong without anything else noticing.
Then open /admin and sign in. Signing in exercises the seed, the console client, the
administrators’ project and the authorization code flow at once, so if it works, the upgrade landed.
Super administrators should also glance at Faults. Only defects are recorded there,
never routine client rejections, so anything new after an upgrade is probably worth reading.