Repository navigation
fix(desktop): restore forced sign-in and version allowlist - #5362
Merged
Merged
Conversation
#5131 suspended desktop feature-policy enforcement but also routed two non-policy controls through the same switch: - Required sign-in is a property of the enterprise and cloud builds (desktop-distribution.mjs); desktop-bootstrap.json can only raise it. The app shell ignored it on desktop, so activated enterprise installs opened local work without Den sign-in. - allowedDesktopVersions is an organization setting (PATCH /v1/org), not a desktop policy. The runtime projection dropped it, so the updater and recovery picker stopped honouring the organization's version pin. Restore both. Feature-policy toggles and execution rules stay suspended. The updater again waits for the organization's desktop config before its first check, and refreshFresh fetches instead of returning the cached projection so the install-time re-check (#4761) sees a revoked version. Specs: packaged-activated-launch expects the forced sign-in surface again; background-desktop-update proves a revoked version is not installed and a re-approved one is. Docs: the enterprise deployment page no longer claims feature policies are enforced. Signed-off-by: Benjamin Shafii <[email protected]>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
Contributor
refreshFresh now always fetches the organization's desktop config, so a failed fetch (offline, or an older or unavailable Den) would have failed Check now and the alpha channel resolution. Fall back to the last known config, matching the install re-check's existing offline rule. Rename updatePolicyKnown to allowedVersionsKnown and split the MDM docs: allowed desktop versions are an organization setting, not a desktop policy. Signed-off-by: Benjamin Shafii <[email protected]>
The cloud build requires sign-in again, so its packaged first launch shows the sign-in surface (the contract before #5131) instead of the signed-out task composer. Signed-off-by: Benjamin Shafii <[email protected]>
This branch was successfully deployed
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.
What is this about?
Enterprise and cloud desktops require sign-in again, and the organization's allowed desktop versions apply to updates again.
What problem does it solve?
Since 0.18.49, an activated enterprise desktop lets people work locally without signing in to their organization, and admins can no longer block a bad desktop version. Both were switched off together with desktop feature policies.
What was the situation before?
An activated enterprise install opened straight to "What do you need done?" with an optional Sign in button. A version removed from the allowed list still installed on restart.
How is this implemented?
app-root.tsxusesbootstrap.requireSignindirectly again. Enterprise and cloud builds always persisttrue;desktop-bootstrap.jsoncan only raise it, so MDM deployments behave as documented.desktopCapabilityConfigkeepsallowedDesktopVersions(an org setting fromPATCH /v1/org, not a desktop policy);desktopSigninRequiredis removed.allowedVersionsKnown), andrefreshFreshfetches (still projected, falling back to the last known config if Den is unreachable) so the install-time re-check sees a revoked version.DESKTOP_POLICY_ENFORCEMENT_ENABLED.What else changed?
updatePolicyKnown→allowedVersionsKnown.Release note
Enterprise and cloud desktops require organization sign-in again, and versions removed from an organization's allowed desktop versions are no longer installed.
Evidence
evals/specs/packaged-activated-launch.e2e.test.ts— before: an activated enterprise install shows the session composer; after: it shows the forced sign-in surface and never the session.evals/specs/packaged-first-launch.e2e.test.ts— before: a fresh cloud install shows the task composer; after: it shows the sign-in surface.evals/specs/background-desktop-update.e2e.test.ts— before: a revoked version stays installable; after: restart is blocked with "not eligible", and re-approval installs it.