Roadmap 0.13, Studio

SD.1 Studio: the website links open signed in as the Studio account (no mismatch)

  • Feature
  • Partly built
  • Studio

Partly built (studio-12 2026-11-28). Studio side done, the website side is not (the row asks for a security review first, and the site is not this session's). Studio: the account card's Manage account, Teams and License and billing ask the site for a one-time address for that one page (POST /api/v1/me/web-link {path}, Studio's own sign-in; studio/hub/cloud.js webLink, only the six account pages, only an answer on https://getcadcraft.com/continue/<token> is opened) and open it in the system browser; when the site does not offer it (today: 404) the plain page opens exactly as before. The shell lets only the suite's hub window ask, POST only (desktop-shell account.rs hub_only_allowed): an app window or an add-on's page cannot mint a browser sign-in. Tests: studio test-hub.mjs § SD.1 (8), browser-account.mjs § SD.1 in a real page (27/0 in all), account.rs web_link_hub_only (rustc std-only copy 2/2; crate cargo check clean). The contract and the security notes for the site part: docs/0.12-sessions/studio-12.md § SD.1. Check in Studio: docs/0.12-sessions/studio-check-sheet.md line 5.

Was: Owner 2026-11-24: Manage account, Teams and License and billing open getcadcraft.com in the system browser, which has its own sign-in; if it is signed in as someone else the page says so. It should not be possible to land on the wrong account. Proposed: Studio asks the API (with its own token) for a one-time hand-off address: single use, about a minute, tied to that account and to one allowed page, never a general session. The browser opens it and shows 'Continue as <name>?' before signing in (so a link someone else sends cannot sign a person in as a stranger), then goes to the page; the hand-off is written to the account's audit log. If the browser is already signed in as that account it goes straight to the page. Needs server work (a hand-off table and two endpoints) and a security review before it is built. Not started.

studio-13 2026-12-03: the security review is written for the owner: docs/0.13-sessions/studio-13-sd1-security.md (what crosses, that nothing is signed (an opaque single-use token, sha256 kept), 60 s, the session it makes, what it does not protect against, revoking, a cheaper alternative with no token, the decision). Found: a Studio device token is sync-scope and ApiTokens::SYNC_PATHS lacks /api/v1/me/web-link, so the site side must add that line. Studio side unchanged; until the site serves it Studio opens the plain page. docs/0.13-sessions/studio-check-sheet.md line 4.

sd1-site 2026-12-03: the site side is built and live (owner chose option 1 + option 2 as fallback). Table studio_web_links (migration 183; sha256 of the token, user, path, created_at, used_at, device token id, network hash). Service StudioWebLinks (mint: 32 random bytes base64url, the six WEB_LINK_PATHS, team paths only for the account's own teams (422, never says whether a team exists), 10 an hour per account (429), 60 s, single use by the one atomic UPDATE; a revoked device token stops links already made). POST /api/v1/me/web-link (thin, Bearer; the SYNC_PATHS line added) -> {url: https://getcadcraft.com/continue/<token>, expires_in: 60}. /continue/<token>: "Continue as <name> (<email>)?" with Continue and Not me (CSRF), Auth::login(..., 'studio_handoff') + audit auth.signed_in {method studio_handoff} + auth.studio_handoff; unknown/used/old = one answer "This link has expired: open it again from Studio" + sign-in to the same page; no-referrer, no-store, noindex. Password-again rule in the service layer (Billing change/changeNewTeam/storage buy-cancel-resume/resumeLicense, Organizations::setBillingEmail, OwnedLicenses and SuperCad checkouts, Auth::closeAccount; password/email changes need the password typed, Google-only accounts Google again) -> /account/confirm-password. Option 2: account/for-notice.inc on /account, /account/license, /teams/new, /teams/<slug>, /login (?for=<email>, escaped). Test bin/test-studio-web-links.php 90/0 (in-process rolled back + the live Apache with a throwaway account's own device token); Studio test-hub 167/0 and its webLinkUrl takes the live address. Waits only for the Studio half in a build.

Waits on: The 0.13 Studio build (check sheet line 4); Studio adding ?for=<email> to its plain-page fallback

Add a comment

Community comments

No comments yet

Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.

Sign in or create a free account to add a comment.