Skip to content

provider: retire Darkbloom MDM; App Attest is the only verification (0.10.14) - #2175

Merged
jonathan308 merged 7 commits into
devfrom
fix/mdm-retired-app-attest-only
Nov 15, 2026
Merged

jonathan308 merged 7 commits into
devfrom
fix/mdm-retired-app-attest-only

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

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 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.
  • darkbloom unenroll choice 2 (--keep-serving) names this install's retired Darkbloom profile and opens System Settings.
    • It matches the exact identifier, MDM payload and server; an employer's or the other install's profile is never offered.
    • It no longer requires the coordinator's mdm_removal_ready or macOS 27.
    • Full exit is unchanged.
  • start, status and doctor print one line when the retired profile is still installed.
  • doctor no longer has the MDM trust diagnosis, the mdm enrollment warning, or the mdm/mda proof scoring. A new informational darkbloom mdm profile row replaces them.
  • Readiness summaries, the macOS upgrade notice, the trust-reason catalog, serving readiness and the installer stop telling anyone to keep the profile, enroll, or wait for an MDM SecurityInfo check.

Wire unchanged.

  • The signed serial number stays, because pairs require it and machine identity uses it.
  • mdm_removal_ready is still decoded, but nothing reads it.
  • 0.10.12/0.10.13 Macs and the production coordinator are unaffected by this PR's rollout order.

Context and fleet facts are in the MDM-REMOVE notes.

  • Production MicroMDM has been down since 11-14 ~07:1xZ, and no live MDM proof has been made since 11-14 06:47Z.
  • 967 of 1,147 connected Macs serve with App Attest.
  • The owner accepted losing the ~73 macOS-26 MDM-only Macs.

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"]
  end
Loading

After

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"]
  end
Loading

Test plan

  • Red first (earnings/mdm-remove-evidence/red/). The new behaviours, written against the old API on dev 0ce5d38bbd, 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 old install.sh.
  • Green: DARKBLOOM_RELEASE_ENVIRONMENT=prod swift build --build-tests on 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 on 825d2e10ab (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).
  • CI: see the checks on this PR.
  • W1 on DevNet, pair-2 (rows M1–M4): fresh install registers, attests, serves and pairs; a Mac with an old profile gets one line, and unenroll → 2 names it and opens Settings; enroll downloads nothing; doctor gives no MDM advice.

Components touched

  • provider-swift (Swift CLI)
  • CI / provider release (scripts/install.sh; the platform-served installer snapshot needs a reviewed refresh)
  • docs

Protocol / interface changes

  • No protocol/interface changes. mdm_removal_ready is still decoded and no longer consulted; serialNumber stays in the signed attestation. CLI: enroll --no-open is still accepted (hidden, no effect); unenroll --keep-serving keeps its name.

Documentation impact

  • Canonical documentation updated: 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; changelog changelog.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:

  • start checks the build environment's coordinator host, not a custom coordinator.url, so it can only miss the notice, never name a wrong profile.
  • The full-exit and keep-serving paths load the config differently; both are pre-existing.

Review

Two independent, fresh-context security reviews; files in earnings/mdm-remove-evidence/reviews/.

  • First review (security-review-2175.md): SHIP WITH FIXES, no MUST-FIX. "Nothing that verified trust is weakened; wire unchanged; no profile operation, no new privilege."
    • SF1–SF4 fixed in a79036ea10:
      • only the fixed Darkbloom hosts classify a profile as this install's, and a configured coordinator URL no longer counts;
      • the fallback guidance adds "If no profile has exactly this name, remove nothing";
      • the installer uses the same host rule with /usr/bin/profiles;
      • the unenroll menu wording and the macOS < 27 line come before the choice;
      • legacy serving is a doctor warning, not a pass.
  • Delta review (delta-review-2175.md): SHIP WITH FIXES, no MUST-FIX. Fixed in 825d2e10ab:
    • the profile's server must be https;
    • the installer drops user-info, accepts an upper-case scheme, and its hosts are tied to provider-identity.json by a test;
    • enroll --config is hidden;
    • the routing-pass intent is commented.

Limits

  • Exact identification of a device-level profile may need the existing read-only admin profiles read. Without it, unenroll names the profile by its enrollment server.
  • The CLI never removes a profile; Apple requires the user to.
  • Server-side un-enroll is impossible: the profile's AccessRights 1041 has no install/remove right.

jonathan308 and others added 4 commits November 15, 2026 11:51
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>
@vercel

vercel Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference-landing Ready Ready Preview Nov 15, 2026 8:29pm UTC
darkbloom-status Ready Ready Preview Nov 15, 2026 8:29pm UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 15, 2026 8:29pm UTC

Request Review

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>
jonathan308 and others added 2 commits November 15, 2026 12:27
… --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

Copy link
Copy Markdown
Collaborator Author

Release owner (0.10.14, REL14): merging into dev (owner's directive: MDM fully removed in 0.10.14, App Attest only; no kill switch — it removes a dead path). Gates on 4c193f28b8: red first (probe 5 tests / 14 issues; installer test vs the old install.sh); refactor pass; security review SHIP WITH FIXES → a79036ea10; delta review SHIP WITH FIXES (no MUST-FIX) → 825d2e10ab (https only, installer user-info, hidden --config, with tests); CI 27/27 green (one pty-timing flake rerun, untouched code); merges cleanly with dev. Release note: the platform-served installer snapshot needs a reviewed refresh with this install.sh.

@jonathan308
jonathan308 merged commit 06c7a5d into dev Nov 15, 2026
49 of 51 checks passed

This branch was successfully deployed

3 active deployments
Preview – d-inference-landing — 4c193f28 Deployed Nov 15, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 4c193f28 Deployed Nov 15, 2026 by vercel[bot]
Preview – darkbloom-status — 4c193f28 Deployed Nov 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant