docs(plan): P15, why each app holds its own certificate and what that does not promise

The owner asked whether one wildcard certificate at the relay, with our
own encryption behind it, could replace a certificate per user. It
cannot be end to end, because the vendor's server speaks only HTTPS to a
trusted name, so whoever holds the certificate reads the traffic. He
kept the certificate per app. The plan now says what that leaves open
(we control the DNS, so a taken-over relay could get a certificate; the
app watches the public logs for one) and names a second authority as
the fallback.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-20 08:27:59 -07:00
1 parent c18800e96c
commit 9c053b572f
1 file changed
+23
+23
View File
@@ -218,6 +218,29 @@ GPL or AGPL code.
4. With the app closed the relay can only refuse the connection: it has
no certificate with which to show an error page.
**Why a certificate per app, and what it does not promise.** The owner
asked (2026-11-20) whether one wildcard certificate at the relay plus
our own encryption to the app could replace a certificate per user. It
cannot be end to end: the far end is the vendor's server, which speaks
only HTTPS to a publicly trusted name, so a relay holding the
certificate reads everything whatever runs behind it. The owner kept
the certificate per app. Its limits, stated plainly:
- We control the domain's DNS, so a relay service that was taken over
could obtain a certificate of its own for a user's name and intercept.
That is visible in the public certificate logs: the app watches them
for its own name and warns the owner of a certificate it did not ask
for. Detection, not prevention; Home Assistant Cloud and Tailscale
Funnel are the same.
- The AI vendor reads the books either way.
- A second free authority that speaks the same protocol is configured
as the fallback, so one authority's outage or limit does not stop new
users.
Where both ends are ours (the app's line to the relay) there is no
authority: the line is encrypted and authenticated with the app's own
key, pinned in the relay's table (D-85).
**Names.** Each app has a public name of four words (D-82) and asks for
a wildcard certificate under it; the endpoint is a long random label
beneath (`<secret>.<four-words>.wanderbooks.link`). The certificate logs