Repository navigation
refactor(console)!: remove per-guild sign-in clients - #197
Merged
Merged
Conversation
Removes the per-guild OAuth sign-in clients: the guild_oauth_client table,
the ?guild= branch of /api/auth/login, the /api/guilds/{id}/oauth-client
routes and console_state.guild_id.
Sign-in through the installation's Outline client is unchanged.
Migration 0014 drops guild_oauth_client and console_state.guild_id. Its
downgrade recreates both empty and restores no rows.
BREAKING CHANGE: the guild_oauth_client table and console_state.guild_id
are dropped by an irreversible migration; take a database backup before
upgrading. Sign-in through the installation's Outline client is unchanged.
TheMeinerLP
force-pushed
the
refactor/remove-guild-sign-in-clients
branch
from
November 8, 2026 11:52
f54ef90 to
129d5d8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sturnus serves one team on one Discord server, but the console still carried a way to separate tenants inside one installation. A guild could register its own Outline OAuth client under a slug, and its members signed in through
/api/auth/login?guild=…. Nobody uses this, and it made every change to authentication think about a second path.The login flow had to decide, on every request, whether it was using this deployment's client or a guild's. Its
?guild=branch also had to answer every unknown slug with the same 404, so that a list of names could not be used to find out which organisations are present. The table behind it held OAuth client secrets, wrapped by the master key, and no one rotated them because no one knew they existed.This change removes the per-guild path. Login has one client again, the installation's Outline client, and a
guildparameter on the link is ignored. The table and theguild_idcolumn in the console state are dropped by migration 0014. That migration cannot be undone, so take a database backup before upgrading. The downgrade recreates the empty shapes only.The sharding removal is a separate pull request. This change follows the OpenSpec change
remove-multi-guild-machinery.Checks
ruff check,ruff format --check,mypy --strict: cleanpytest: 2605 passed, 0 failedguild_oauth_clientrow, and downgrade to empty shapes.BEGIN_COMMIT_OVERRIDE
refactor(console)!: remove per-guild sign-in clients
BREAKING CHANGE: an irreversible migration drops the guild_oauth_client table and console_state.guild_id; take a database backup before upgrading. Sign-in through the installation's Outline client is unchanged.
END_COMMIT_OVERRIDE