spec: the seal key's trust assumption as built
The web app trusts the instance's published seal key; the native apps will verify it against the enrolment fingerprint in slice 4.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+16
−0
docs/superpowers/specs/2026-11-08-equipo-connections.md+16 −0
diff --git a/docs/superpowers/specs/2026-11-08-equipo-connections.md b/docs/superpowers/specs/2026-11-08-equipo-connections.md| index f5dad49a..2fda02ce 100644 |
| --- a/docs/superpowers/specs/2026-11-08-equipo-connections.md |
| +++ b/docs/superpowers/specs/2026-11-08-equipo-connections.md |
| @@ -514,6 +514,22 @@ refuse; the web app trusts the instance it is served by, which is |
| already true of everything it shows, and that limit is stated in the |
| Connections screen's help text. |
| +**The trust assumption, as built (2026-11-10, Claude setup tokens).** The |
| +runner sends its seal key in every hello over its authenticated |
| +connection, and the instance republishes it as received. The instance |
| +keeps only a hash of the enrolment key, so it cannot itself check the |
| +seal key against it, and the runner does not sign the seal key: the |
| +web app seals to whatever key the instance it is served by publishes. |
| +An attacker who controls the instance can therefore substitute a key |
| +and read a secret pasted afterwards; such an attacker can already serve |
| +a page that reads the field, so the seal adds nothing against it and |
| +protects against everything else (the instance's database, logs, |
| +backups, its operators reading rows, and other runners). When the native |
| +apps arrive (slice 4) the runner also publishes its ed25519 public key |
| +and the apps check both its fingerprint against the one approved at |
| +enrolment and the seal key against its birational map, refusing on a |
| +mismatch. |
| + |
| **Sealing.** The app seals with libsodium `crypto_box_seal` over a |
| payload `{secret, runner_id, connection_id, provider, endpoint, |
| attempt, expires_at}`, where `endpoint` is the full origin, scheme, |