Repository navigation
fix(platform): bind organization session authority - #4903
Merged
Merged
Conversation
yannickmonney
enabled auto-merge
October 12, 2026 22:50
yannickmonney
force-pushed
the
fix/organization-session-authority
branch
from
October 12, 2026 23:21
bc48c93 to
6384f7c
Compare
auto-merge was automatically disabled
October 12, 2026 23:43
Merge commits are not allowed on this repository
Contributor
Author
|
Review A follow-up (TALE-358, 2026-10-13 04:15 Zurich occurrence): user-facing and documentation impact of this merge, checked at
This is static reading; I didn't run it. |
Contributor
Author
|
Review A follow-up 2 (TALE-358, 2026-10-13 08:15 Zurich occurrence): the scheduled E2E run on
This is from the run's logs and a static reading of the cited lines. |
5 tasks done
yannickmonney
added a commit
that referenced
this pull request
Oct 13, 2026
The merge-group finisher only finishes a cancelled run whose workflow bytes it has a reviewed profile for, so every change to cli.yml needs one (#4903 added the previous). The CLI workflow now names domains/collab/service.ts in its push paths, which changes its hash and left two tests red in Unit (workspaces): - current seven workflows and verdict closure require an explicit reviewed profile on every source change - current CLI path scope preserves the retained graph and every finishing refusal Add the profile for the new bytes. The job and verdict graph is the one the previous profile reviewed, so only the hash and its comment are new.
yannickmonney
added a commit
that referenced
this pull request
Oct 13, 2026
The dashboard test found the session-lapse dialog's confirm button by the bare key `sessionLapse.signIn`, which only works while nothing has initialised the i18n singleton: an uninitialised t() returns its key. #4903 made api-client import auth-client-error, which imports the singleton, so from 07419b9 on the dashboard's import graph initialises English and the button is named "Sign in". The UI shard that holds the file has failed since (found by bisecting the test alone: green at 6480ade, red at 07419b9, with no other change between). Mock the translation hook the way the sibling session-lapse suites do, so the accessible name is `auth.sessionLapse.signIn` whatever the graph initialises.
5 tasks done
yannickmonney
added a commit
that referenced
this pull request
Oct 13, 2026
rbac.spec.ts and return-loops.spec.ts sign a member the admin just added in from a second browser context and failed on every attempt since #4903 with 403 ORG_FORBIDDEN ("This session is limited to the organization that signed you in"), which kept `Playwright (platform 4/4)` and so every release candidate red. The cause is in the specs, not the member: fixtures.ts overrides the storageState option so every test authenticates as its worker's owner, and that override also reaches every context made with browser.newContext() (shown with a probe: the context holds the owner's cookie). The sign-in request then presents the owner's session, and since #4903 minting a session for another person from a presented session is refused. Add newPersonContext(browser), a context from an empty cookie jar, and use it for both members. What a browser holding another person's cookie should do when someone signs in on it is a product decision and is not changed here.
4 tasks
tale-code-bot
added a commit
that referenced
this pull request
Oct 30, 2026
#4903 began writing trustedOrganizationId on every single sign-on session, and useAuth().proxied read that column as the mark of a session an authenticating proxy asserted. Single sign-on members lost Log out in the account menu and Sign in again on the account-unavailable screen. trustedRole holds the role a proxy asserted and single sign-on never writes it, so proxied reads that now; a session a proxy asserted still offers no sign-out of its own.
tale-code-bot
added a commit
that referenced
this pull request
Oct 30, 2026
Since #4903 the member door refuses a session bound to another organization with 403 ORG_FORBIDDEN and the session's own sentence. The member read mapped every ORG_FORBIDDEN to not_member, so a member who signed in through organization A's single sign-on and opened a link into B was told they are not a member of this workspace. The read now answers session_restricted for that refusal, and the dashboard says the session is limited to the organization that signed the person in, with Sign in to this workspace: it ends the session and takes the tab to sign-in, which brings them back here. The dashboard's entry-failure page now uses the same useSignInAgain hook, so signing in again has one copy. A session an authenticating proxy asserted gets no button, since the proxy would sign it in to the same organization again. Adds the AUTH-B25 manual box, its automation row and a troubleshooting row in the enterprise SSO guide in English, German and French.
tale-review-bot
pushed a commit
that referenced
this pull request
Oct 30, 2026
Since #4903 the member door refuses a session bound to another organization with 403 ORG_FORBIDDEN and the session's own sentence. The member read mapped every ORG_FORBIDDEN to not_member, so a member who signed in through organization A's single sign-on and opened a link into B was told they are not a member of this workspace. The read now answers session_restricted for that refusal, and the dashboard says the session is limited to the organization that signed the person in, with Sign in to this workspace: it ends the session and takes the tab to sign-in, which brings them back here. The dashboard's entry-failure page uses the same useSignInAgain hook, so signing in again has one copy. A session an authenticating proxy asserted gets no button, since the proxy would sign it in to the same organization again. BackendApiError replaced the server's sentence with its translation when it was built, so the refusal was recognized only in English; it is now classified once, where the error is built, and kept as sessionRefusal. useAuth().proxied read trustedOrganizationId, which #4903 writes on every single sign-on session, so single sign-on members had lost Log out and Sign in again; it now reads trustedRole, which holds the role an authenticating proxy asserted and which single sign-on never writes. Adds the AUTH-B25 manual box, its automation row and a troubleshooting row in the enterprise SSO guide in English, German and French. Closes #4908 Task: TALE-189
tale-review-bot
pushed a commit
that referenced
this pull request
Oct 30, 2026
Since #4903 a password sign-in carried the session the request presented into the session it minted. When that session belonged to somebody else, the sign-in was refused with 403 ORG_FORBIDDEN: an organization-limited session or an API key before the password was checked, a global session by the session-create hook after it. The log-in page words every such refusal as a wrong password with the lockout hint, so a person signing in on a browser where someone else was still signed in was told their password was wrong. The password is the proof of a sign-in as somebody else, so the session-authority hook now drops the presented session when /sign-in/email names another address than its user's, compared in the canonical lower-case form: the sign-in mints exactly as from an empty cookie jar, and its cookie replaces the presented one. The presented session is not revoked; it stays its owner's to end. The same person's sign-in, /reauthenticate and the two-factor verifications keep the presented session's authority, and the session-create hook still refuses a session for another person than the presented one. The log-in page now words the refusal that remains, a sign-in over the same person's organization-limited session, with the sentence the app already uses for it instead of the wrong-password line and without the lockout hint. The manual box AUTH-B27 walks both cases in one browser. Closes #4919 Task: TALE-193
tale-code-bot
added a commit
that referenced
this pull request
Oct 31, 2026
Since #4903 the member door refuses a session bound to another organization with 403 ORG_FORBIDDEN and the session's own sentence. The member read mapped every ORG_FORBIDDEN to not_member, so a member who signed in through organization A's single sign-on and opened a link into B was told they are not a member of this workspace. The read now answers session_restricted for that refusal, and the dashboard says the session is limited to the organization that signed the person in, with Sign in to this workspace: it ends the session and takes the tab to sign-in, which brings them back here. The dashboard's entry-failure page uses the same useSignInAgain hook, so signing in again has one copy. A session an authenticating proxy asserted gets no button, since the proxy would sign it in to the same organization again. BackendApiError replaced the server's sentence with its translation when it was built, so the refusal was recognized only in English; it is now classified once, where the error is built, and kept as sessionRefusal. useAuth().proxied read trustedOrganizationId, which #4903 writes on every single sign-on session, so single sign-on members had lost Log out and Sign in again; it now reads trustedRole, which holds the role an authenticating proxy asserted and which single sign-on never writes. Adds the AUTH-B25 manual box, its automation row and a troubleshooting row in the enterprise SSO guide in English, German and French. Closes #4908 Task: TALE-189
tale-code-bot
added a commit
that referenced
this pull request
Oct 31, 2026
Since #4903 a password sign-in carried the session the request presented into the session it minted. When that session belonged to somebody else, the sign-in was refused with 403 ORG_FORBIDDEN: an organization-limited session or an API key before the password was checked, a global session by the session-create hook after it. The log-in page words every such refusal as a wrong password with the lockout hint, so a person signing in on a browser where someone else was still signed in was told their password was wrong. The password is the proof of a sign-in as somebody else, so the session-authority hook now drops the presented session when /sign-in/email names another address than its user's, compared in the canonical lower-case form: the sign-in mints exactly as from an empty cookie jar, and its cookie replaces the presented one. The presented session is not revoked; it stays its owner's to end. The same person's sign-in, /reauthenticate and the two-factor verifications keep the presented session's authority, and the session-create hook still refuses a session for another person than the presented one. The log-in page now words the refusal that remains, a sign-in over the same person's organization-limited session, with the sentence the app already uses for it instead of the wrong-password line and without the lockout hint. The manual box AUTH-B27 walks both cases in one browser. Closes #4919 Task: TALE-193
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.
Problem
Organization-scoped sessions could inherit stale or unbound authority, and a proxy-limited passkey ceremony could lose its role ceiling when the factor was used from a logged-out session.
Change
Validation