> ## Documentation Index
> Fetch the complete documentation index at: https://docs.darkbloom.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Verifying provider attestation on Darkbloom

> How Darkbloom verifies a provider's identity and build with Apple App Attest, what the public attestation endpoint exposes, and how to read per-response verification headers.

Attestation is how Darkbloom decides that a provider is a genuine Mac running a qualified build before it receives work. On macOS 27 or later the supported verification is **Apple App Attest**. Darkbloom no longer uses MDM, and Apple Managed Device Attestation (MDA) is historical; those paths grant nothing. A provider verified before the App Attest migration may keep a frozen legacy authorization, but no new machine can join it.

## What attestation proves

A provider admitted to the public fleet has demonstrated:

1. It is running a signed provider build whose code and runtime hashes the coordinator accepts.
2. It holds a current App Attest serving authorization: Apple attested a key the signed provider app holds on that Mac, and the coordinator verified a fresh assertion from it for an approved provider build. A legacy Secure Enclave authorization, where present, is historical evidence frozen at the migration; it is not a path a new provider can take.
3. Its connection has a registered X25519 key for the mandatory coordinator-to-provider encryption hop.

Attestation is not proof of computation correctness. It does not certify RAM or chip reports, guarantee memory wiping, or remove the coordinator or the provider process as plaintext endpoints.

## App Attest

On macOS 27 or later, the provider proves itself with App Attest. The coordinator verifies the assertion, the qualified executable and the build policy, then issues a bounded authorization with an expiry. A provider can remain connected while its authorization is pending or expired, but it does not receive public work until a current grant exists. Recurring receipt monitoring and stricter reward or removal decisions are separate from basic serving.

An App Attest grant is not a reusable serving credential. A reply waiting for verification does not create a trust grace period, and a local `doctor` pass is not a coordinator verdict.

## Legacy authorization

A provider verified before the migration may hold legacy authorization. The coordinator checks the Secure Enclave registration signature, the live connection's posture and the challenge freshness. This path is frozen to already-verified machines: a new machine cannot join it, MDM and MDA play no part, and an unsupported macOS version does not create a legacy fallback. Its `hardware` trust level is historical, and no current provider is granted it. See [Trust levels](https://docs.darkbloom.dev/security/trust-levels.md).

## Public attestation endpoint

```bash theme={null}
curl https://api.darkbloom.dev/v1/providers/attestation
```

No authentication is required. The response contains one record per connected public provider. Private-only connections are excluded; their owners can see them through authenticated `GET /v1/me/providers`. See the [attestation reference](https://docs.darkbloom.dev/reference/attestation.md) for every field.

Each record includes:

* `provider_id` — the connection ID, also returned as `X-Provider-Id`.
* `app_attest_authorized` and `authorization_expires_at`, when an App Attest grant exists.
* `verification` — `observed_at`, plus `app_attest` and the historical `legacy` path, each with a `state` (`verified`, `pending`, `expired`, `revoked`, `unsupported` or `offline`) and optional `verified_at` / `expires_at`.
* `trust_level` — `none`, `self_signed` or `hardware`. These describe legacy evidence; `hardware` is historical.
* `status` — `online`, `offline`, `untrusted`, and so on.
* Hardware class and served models: `chip_name`, `hardware_model`, `memory_gb`, `gpu_cores`, `models`.
* Security posture as signed by the provider: `secure_enclave`, `sip_enabled`, `secure_boot_enabled`, `authenticated_root_enabled` and an optional `system_volume_hash`.
* `se_public_key` — the persistent legacy Secure Enclave P-256 public key.
* `mdm_verified`, `acme_verified` (always `false`), `mda_verified` and the optional MDA OS versions. These are historical and `true` only for a legacy `hardware`-trust connection; they grant nothing.

The response deliberately omits the hardware serial number, UDID, APNs device token, the raw Apple MDA certificate chain and the `code_attested` flag. The MDA leaf embeds serial and UDID in signed OIDs, so publishing the chain would disclose them.

## Per-response signals

Once a provider is committed to a request, the coordinator writes:

| Header | Meaning |
| - | - |
| `X-Provider-Id` | Connection ID, joinable to the public endpoint |
| `X-Provider-Authorization-Method` | `app_attest`, `legacy`, `dual` or `none` |
| `X-Provider-Verification` | Compact JSON with the frozen `observed_at`, `app_attest` and `legacy` states |
| `X-Provider-Trust-Level` | `none`, `self_signed` or `hardware` (legacy evidence; `hardware` is historical) |
| `X-Provider-Attested` | `true` or `false` |
| `X-Provider-Encrypted` | `true` when the provider has a registered X25519 key |
| `X-Provider-Secure-Enclave` | `true` or `false` |
| `X-Provider-Mda-Verified` | Historical; present only for a legacy connection that still carries MDA evidence, and it grants nothing |
| `X-Provider-Chip`, `X-Provider-Model` | Hardware class |
| `X-Attestation-Se-Public-Key` | The provider's legacy Secure Enclave P-256 public key (base64) |

These are coordinator assertions over TLS, not Apple-signed receipts. A successful body may also carry optional provider-generated `se_signature` and `response_hash` fields; they are not headers and are not present on every response. Pin a provider identity by comparing `X-Attestation-Se-Public-Key` with `se_public_key` across requests.

## Reading the method

`X-Provider-Authorization-Method` tells you which path admitted the request. `X-Provider-Verification` carries the frozen states; missing fields mean the snapshot is unavailable, so do not infer a method from `trust_level` or the MDA flags alone. A legacy `self_signed` field can coexist with a valid App Attest grant.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.