Repository navigation
feat(control): let a workspace require Google sign-in of its members - #659
Merged
Merged
Conversation
A workspace's admins require its provider of the members in it as an address at some domains (workspaces.sign_in): such a member's sign-in made another way finds it, its projects and sessions closed, until they sign in with Google as that address. Members in it as other addresses sign in as before, and requests without a person's sign-in (service accounts, notifications) aren't held to it. An admin can't save one that would close it to them, and requiring less takes confirming it's them.
…es set --require-google
This was referenced Nov 26, 2026
This comment has been minimized.
This comment has been minimized.
… and let its primary admin lift it Sockets' rechecks and the feeds a workspace change refreshes read each socket's own sign-in, so a covered member's open tab closes with the rest. The workspace's primary admin can stop or change its requirement while it closes the workspace to them, where nobody can meet it. Stop requiring it shows whether Google is set up or not, the closed page links Google only where it is, the copy no longer says a closed Google account ends the sign-ins a person has, and --require-google clears it only on off or none.
Contributor
Author
|
On the summary's finding about live sockets: fixed in 1f4876a. |
…ign-in # Conflicts: # crates/fctl-domain/src/verify.rs # docs/adr/README.md # docs/api.md # docs/architecture.md # docs/llms.txt # docs/organizations.md # docs/security.md
This was referenced Nov 28, 2026
Merged
kalaspuff
approved these changes
Nov 29, 2026
fctl-sh Bot
added a commit
that referenced
this pull request
Nov 29, 2026
Main's workspace sign-in requirement (#659) took migration 0077 and ADR 0103, so this branch's Slack migration becomes 0078 (it never shipped) and its ADR 0104, with the links that name it. The workspace page keeps both sides' imports.
fctl-sh Bot
added a commit
that referenced
this pull request
Nov 29, 2026
…ed their account A request from Slack carried no fctl sign-in, so a workspace's own Google requirement (#659) and the instance's sign-in rules held none of it: a member who signs in with a password could link Slack and start and steer the workspace's sessions from it. A link now keeps how the browser that made it signed in (slack_accounts.auth_method and auth_domain, as tokens keep it), and its requests carry it: - a workspace's requirement closes its projects to a link made another way, and fctl asks the person in Slack to sign in with Google and link again, keeping their request or reply until they do; - the instance's rules end a link they don't let in, at its next request and as they're saved, as they end such tokens; - signing out everywhere unlinks it, so that nothing made while someone else held the account outlasts it; - an address match is no sign-in, and meets no rule.
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.
Summary
A workspace's admins can now require Google of its members at their domains: in the workspace's Settings → Access, or with
fctl workspaces set --require-google acme.com,acme.dev. Members who are in the workspace as an address at those domains open it, its projects and sessions only once they've signed in with Google as that address. A password sign-in, or a personal Google account's, finds the workspace closed, the way its two-factor requirement closes it, and the page says how to open it. Members in it as other addresses (contractors) sign in as before, and their other workspaces stay open. This is the "workspace's own requirement" item of #618, for Google, and it's what an organization on app.fctl.sh, with no instance admin of its own, uses.fctl workspaces showsays so too. An API request it refuses names the domains to sign in as.I tested the rule in Rust. A D1 test checks that a covered member's project closes to a password or personal-Google sign-in and opens to Google as their address, while a contractor isn't held. The web app has tests, and
cargo xtask checkpasses. Againstcargo xtask serve, with placeholder Google settings and Google sign-ins written to D1, a script drove the API and the CLI. Ada's password sign-in couldn't close Acme to herself (409, with the way out), while her Google sign-in as ada@acme.com could require it. Bob's password and personal-Google sign-ins then found Acme and its project closed (404, and "Acme requires its members to sign in with Google…"), and his Google sign-in as bob@acme.com opened them. Cy, a contractor in it as cy@contractor.io, wasn't held, and stopping the requirement opened Acme again.With #657 (session policies), this completes #618 for Google: once both merge, #618 can close. The parts that need other providers are #650, #651, #652 and #653.
Refs #618
Screenshots
At 556bc9f, against
cargo xtask serve.A workspace's Settings → Access, requiring Google at acme.com: whom it covers before it saves (light, dark), and the refusal when it would close the workspace to the admin, with the way out:
Once it's required:
A covered member signed in with a password, in the browser and on a phone (dark):
Worth confirming
fctl session
Warning
High risk. It adds a per-workspace sign-in requirement that decides who may open a workspace, so authentication and permission checks change, including for open sockets, and a new D1 migration adds a column.
What it does. Lets a workspace require its members to sign in with Google, optionally limited to given email domains and optionally allowing passkeys. Members whose current sign-in doesn't meet the rule see the workspace as closed, over HTTP and on live sockets, while the primary admin can always stop or change the rule. The pull request adds the API, CLI flag
--require-google, a settings panel in the web app, a migration, and docs including ADR 0103.Migration.
0077_workspace_sign_in.sqladds a column to workspaces, so it has to be applied on deploy.fctl review's first look at
5ecab6b· 34 files, +1333 −100 · Review agent settings