Repository navigation
provider: retire Darkbloom MDM; App Attest is the only verification (0.10.14) - #2175
Merged
Merged
Conversation
Darkbloom verifies Macs with App Attest only (macOS 27 or later). The provider stops all MDM behaviour: - `enroll` explains App Attest setup; it never calls POST /v1/enroll and never writes or opens a .mobileconfig. On macOS 26 or earlier it says to update macOS and exits 1. EnrollmentService and its signed MDM proof go. - `unenroll` choice 2 / --keep-serving names this install's retired Darkbloom profile (exact identifier and server; employer profiles are never offered) and opens System Settings, with no coordinator mdm_removal_ready gate and no macOS 27 gate. Full exit is unchanged. - `start`, `status` and `doctor` print one line when the retired profile is still installed (RetiredMDMProfile). Doctor drops the MDM trust diagnosis, the "mdm enrollment" warning and the mdm/mda proof scoring. - Readiness summaries, the macOS upgrade notice, the trust-reason catalog and serving readiness no longer tell anyone to keep the profile, enroll, or wait for an MDM SecurityInfo check. - The installer downloads no profile and points at `unenroll` for an old Darkbloom profile. Wire unchanged: the signed serial stays (pairs and machine identity use it); mdm_removal_ready is still decoded and no longer consulted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e old profile Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n gate Independent refactor pass (behaviour-preserving, comments only). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Security review (SHIP WITH FIXES, no MUST-FIX) follow-ups: - SF1: a configured coordinator URL no longer makes an MDM server "Darkbloom's": checkMDMEnrollment takes no coordinator URL and parseMDMEnrollmentStatus no expectedHosts, so only this environment's host and *.darkbloom.dev / *.darkbloom.ai count (an employer's MDM can never be named for removal). The fallback guidance adds "If no profile has exactly this name, remove nothing." enroll's --coordinator/--config are accepted and ignored. - SF2: the installer classifies the MDM server host by the same rule (exact host, other environments and darkbloom.xyz excluded) and calls /usr/bin/profiles. - SF3: unenroll's menu says choice 2 keeps the provider and data, and on macOS < 27, before the choice, that the Mac cannot serve either way. - SF4: a legacy serving decision is a doctor warning, not a pass, and serving readiness says App Attest is needed to keep serving. Tests: other-install profile never offered; hosts outside the fixed list are foreign; installer host matrix (xyz, other environments, look-alikes, case, port); the older-macOS menu line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… --config Delta security review (SHIP WITH FIXES, no MUST-FIX) follow-ups: - A Darkbloom profile's MDM server must be https (every one was), as the installer already required; http/ws/scheme-less servers are foreign. - The installer drops URL user-info before comparing the host (as Swift's URL.host does) and accepts an upper-case scheme; a host-identity test ties its three hosts to provider-identity.json; staging and a missing "MDM server:" line are covered. - `enroll --config` is hidden like `--coordinator` (both ignored). - ServingReadiness says why a legacy connection is still a routing pass (the coordinator routes it today; the authorization row warns). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
marked this pull request as ready for review
November 15, 2026 21:14
Collaborator
Author
|
Release owner (0.10.14, REL14): merging into |
This was referenced Nov 16, 2026
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.
Summary
The owner's call for 0.10.14 is to fully remove MDM and rely on App Attest only. The provider stops every MDM behaviour.
darkbloom enrollexplains App Attest setup. It never callsPOST /v1/enrolland never writes or opens a.mobileconfig. On macOS 26 or earlier it says to update macOS and exits 1.darkbloom unenrollchoice 2 (--keep-serving) names this install's retired Darkbloom profile and opens System Settings.mdm_removal_readyor macOS 27.start,statusanddoctorprint one line when the retired profile is still installed.doctorno longer has the MDM trust diagnosis, themdm enrollmentwarning, or themdm/mdaproof scoring. A new informationaldarkbloom mdm profilerow replaces them.Wire unchanged.
mdm_removal_readyis still decoded, but nothing reads it.Context and fleet facts are in the MDM-REMOVE notes.
Before
flowchart LR subgraph Behaviour E1["darkbloom enroll (macOS 26)"] -->|"signed SE proof"| C1["POST /v1/enroll"] --> P1["save + open .mobileconfig, System Settings"] U1["unenroll → 2"] --> G1{"App Attest lease current AND coordinator mdm_removal_ready AND macOS 27?"} G1 -->|no| X1["refuse: keep the profile installed"] G1 -->|yes| S1["name profile, open Settings"] D1["doctor/status"] --> M1["'keep the Darkbloom MDM profile', 'run enroll, wait for MDM SecurityInfo'"] end subgraph Code ES["EnrollmentService + EnrollmentPersistentSigner"] --- MT["MDMTrustDiagnosis"] PR["ProviderAuthorizationReadiness.removalReady / currentStatus"] --- SP["SecurityPosture.mdmEnrolled"] endAfter
flowchart LR subgraph Behaviour E2["darkbloom enroll"] --> G2["App Attest guidance; macOS < 27: update macOS (exit 1); no network, no profile"] U2["unenroll → 2 / --keep-serving"] --> Q2{"this install's Darkbloom profile installed?"} Q2 -->|yes| S2["name exact profile (or its server), open Settings; keep serving"] Q2 -->|"none / employer / other install"| N2["say so; open nothing"] D2["start / status / doctor"] --> L2["one line: profile no longer used, unenroll → 2"] end subgraph Code RP["RetiredMDMProfile.notice / .diagnostic"] --- EG["Enroll.guidance"] UG["Unenroll.guideRetiredProfileRemoval (injected seams)"] --- DR["DarkbloomMDMRemoval.openProfilesSettings"] endTest plan
earnings/mdm-remove-evidence/red/). The new behaviours, written against the old API ondev0ce5d38bbd, fail: 5 probe tests with 14 issues (trust-reason MDM advice, the removal-readiness gate, the upgrade notice, enroll help, the macOS-26 refusal of--keep-serving). The new installer test fails 38 subtests against the oldinstall.sh.DARKBLOOM_RELEASE_ENVIRONMENT=prod swift build --build-testson Mac A (macOS 27). Focused suites, filtered by the 27 affected suites (Enroll/Unenroll/Doctor*/Status/Account/MacOSUpgradeNotice/RetiredMDMProfile/ProviderOnboardingPolicy/ProviderAuthorizationReadiness/ServingReadiness/Diagnostics/MDMEnrollment/DarkbloomMDMRemoval/SecurityCommandRunner/CoordinatorIntegration/…): 142 + 130 tests passed on825d2e10ab(after both reviews' fixes).python3 scripts/test-install-onboarding.py: 13 tests OK (host matrix: xyz, other environments, look-alikes, user-info, case, port, scheme, missing server line).python3 scripts/test-provider-test-shards.py: OK.make docs-check(212 files OK),make docs-impact-check BASE=origin/dev(coverage OK),python3 scripts/changelog.py check(OK).unenroll→ 2 names it and opens Settings;enrolldownloads nothing; doctor gives no MDM advice.Components touched
scripts/install.sh; the platform-served installer snapshot needs a reviewed refresh)Protocol / interface changes
mdm_removal_readyis still decoded and no longer consulted;serialNumberstays in the signed attestation. CLI:enroll --no-openis still accepted (hidden, no effect);unenroll --keep-servingkeeps its name.Documentation impact
docs/provider/{attestation,cli-reference,installation,quickstart,troubleshooting}.md,docs/reference/{provider-authorization,protocol-messages}.md,docs/architecture/security/{provider-trust,enrollment}.md,docs/operations/provider-release.md; changelogchangelog.d/mdm-retired-app-attest-only.md. Legal pages (docs/legal/*,landing/src/content/legal-content.json) still describe MDM SecurityInfo queries; that is for their owner.Kill switch
None, on purpose. This removes a path that is already dead in production (MicroMDM down; no profile installs because SCEP is gone). The provider decides nothing about trust; the coordinator still decides serving. Every new line is informational. Restoring MDM enrollment would need a working MicroMDM.
Refactor pass
An independent refactor subagent made comment-only edits (
f1e1d48868): docs no longer describe the old migration gate. It noted, and I did not change:startchecks the build environment's coordinator host, not a customcoordinator.url, so it can only miss the notice, never name a wrong profile.Review
Two independent, fresh-context security reviews; files in
earnings/mdm-remove-evidence/reviews/.security-review-2175.md): SHIP WITH FIXES, no MUST-FIX. "Nothing that verified trust is weakened; wire unchanged; no profile operation, no new privilege."a79036ea10:/usr/bin/profiles;delta-review-2175.md): SHIP WITH FIXES, no MUST-FIX. Fixed in825d2e10ab:provider-identity.jsonby a test;enroll --configis hidden;Limits
profilesread. Without it,unenrollnames the profile by its enrollment server.AccessRights1041 has no install/remove right.