The key the service never sees, and what it costs the day you lose it
Two designs make one promise: the people running the service cannot read your Apple Health data. An end-to-end encrypted relay, and a passphrase-sealed export sitting in a folder you own.
The promise is easy. The bill shows up the day the secret is gone.
Relay: rotate and backfill
On an end-to-end encrypted relay the key lives with a local client, never with the service. Its own privacy page says the service cannot recover it. Lose it and the ciphertext at the service stays shut. The published way out is to rotate, which revokes connections, removes the cache, and starts a backfill under the new key (E1, healthmcp.cc/privacy).
Sealed file on your Mac: re-export
MetricBridge seals each export on the iPhone with AES-256-GCM and a key derived from a passphrase you choose, then the open-source MCP server decrypts it in memory on your own computer. Lose the passphrase and nobody recovers it, including us. The app makes you tick a box saying exactly that before it saves. The way out is a fresh export.
Either way Apple Health on the phone is the source, so a lost secret costs time, not history (E4).
What a wrong passphrase actually does
A quieter failure than a lost key is a typo. I ran the open-source server against one sealed test file with the wrong passphrase (E8). It exited 1:
envelope: This health export is encrypted with a different passphrase than HEALTH_EXPORT_PASSPHRASE. Correct passphrase printed the JSON and exited 0. No passphrase exited 1 with its own message. It is never reported as "no data", which matters because an agent told "no data" will cheerfully report an empty history (E8, E3).
Where each design is weaker
A relay's key is random, so it cannot be guessed, but the relay keeps an unencrypted catalog the service can read: series names, dates, counts, sizes. A sealed file hides its contents but not its size or timing. Our passphrase is only as strong as you make it, and the server's README says so plainly. A relay also syncs live with no folder to manage.
The caveat both share
Encryption protects the pipe and the storage. It does not protect the conversation. Once an agent reads a number, the model provider processes it under its own terms. A model on your own hardware closes that gap, with the quality and speed trade-offs that come with it.
Full post with both tables and the honest uncertainty about the relay's rotation rules: https://www.healthexport.dev/blog/lost-key-encrypted-apple-health-relay-vs-local-file
Originally published at https://www.healthexport.dev/blog/lost-key-encrypted-apple-health-relay-vs-local-file
![Locomotion Balance and Motion Control — Ch.11: Case Studies [EN]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvkkda1tl380kl4y7zvly.png)
![Locomotion Balance and Motion Control — Ch.12: Checklists and Templates [EN]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnsx5xe4pqm4xo5p6kb4t.png)