Specification · document 02
02 Discovery, server metadata and server keys
| Status | Draft. Protocol version 1 (sv1) of the Sloppy Voice v2 product. Normative unless a passage says it is informative. |
| Date | 2026-12-04 |
| Depends on | 00 (overview and conventions), 01 (addresses, canonicalize()), 03 (transport, error object, events, rate limits), 04 (JWS profile, Ed25519 rules, JWK thumbprints) |
| Decisions used | D-001, D-002, D-003, D-009, D-010, D-024, D-025, D-026, D-027, D-028, D-029, D-030, D-032, D-049, D-055, D-056, D-066, D-073, D-074, D-081, D-093 |
| Decisions proposed here | PD-02-1 to PD-02-18 (marked "Proposed decision:" in the text, collected in §22.2) |
| Owns | The _sloppyv TXT record format; https://<fqdn>/.well-known/sloppyv; {base}/meta and the ServerMetadata object; GET {base}/v1/resolve and the /v1/resolve/… admin paths; the resolution algorithm; delegation evidence levels; domain and key-set pinning rules; the server-key JWK profile, kid grammar and status lifecycle; KeyRotation (sv-keyrot+jwt) and keyChain; discovery caching rules; discovery.* events and error codes (including discovery.domain_not_served) |
1. Scope
This document specifies how anyone (a native client, a web client or a server) turns a domain such as sloppyvoice.com into a server: its base URL, its ServerMetadata, its canonical domain and its signing keys. It also specifies how strongly that answer is authenticated, how servers remember first-seen answers so that a later DNS attack can't silently redirect federation, how server keys are published and rotated, and how long all of this may be cached.
It covers:
- the discovery record at
_sloppyv.<fqdn>(D-001) and the HTTPS.well-knownfallback; - the full resolution algorithm for native clients, servers and web clients, including
GET {base}/v1/resolveand DNS-over-HTTPS for browsers (D-029); - the ServerMetadata document at
{base}/meta, including the domain list (D-002); - domain acceptance, delegation evidence and pinning (D-030, D-074);
- server signing keys, their lifecycle, KeyRotation and
keyChain; - caching, several servers on one deployment (00 §3.4), operator guidance, events, error codes and test vectors.
It does not cover:
- address syntax, normalization or
canonicalize()(01). This document provides the discovery step thatcanonicalize()calls; - how server keys are used to sign HomeAssertions, S2S request tokens, IdentityStates, RelayTickets or push gateway request tokens (06, 07, 15, 19). This document provides the key lookup those verifiers call;
- the JWS profile itself (04);
- the meaning of each limit in ServerMetadata
limits(owners per 00 §7.12), of login providers (05), of push gateway settings (19) or of the relay URL (15). This document owns only the members that carry them; - operator runbooks (21, informative).
1.1 Terminology
This document uses the terms of 00 §2 exactly. It adds these:
| Term | Definition |
|---|---|
| Queried domain | The domain being resolved, as a lowercase A-label (01). |
| Delegation | The first half of resolution: from a queried domain to a base URL, through the discovery record or the .well-known document. |
| Resolution | Delegation, then fetching and validating ServerMetadata, then the domain and canonical-domain checks (§5). |
| Source | Where a delegation came from: txt (the discovery record) or wellknown (the .well-known document alone). |
| DiscoveryResult | The output of a successful resolution (§5.1). |
| Normalized base URL | A base URL after the normalization of §3.3. Every comparison of base URLs in the protocol uses this form. |
| Strong evidence | Delegation evidence that justifies a pin change without a key-holder signature (§10.2): dnssec; wellknown; or same-site when the base-URL host equals the queried domain, is a subdomain of it, or equals the host of the pinned base URL. Weak evidence is everything else: dns-only, and same-site between sibling hosts of one registrable domain (§9.2). |
| Pin | A server's (or client's) stored record of the base URL, canonical domain, secure flag and server keys it first accepted for a domain (§10). |
| Peer | From a server's point of view, any other server it resolves or exchanges S2S traffic with. |
| Thumbprint | The RFC 7638 SHA-256 JWK thumbprint of a public key, base64url (04). Keys are compared by thumbprint, never by kid. |
1.2 Conformance
| Class (00 §1.5) | What it must implement from this document |
|---|---|
| Server | Everything marked for servers: §3–§5 resolution with the server rules, §6 /v1/resolve, §7 serving /meta, §8, §9 evidence with the mandatory .well-known check, §10 pinning (MUST), §11–§12 key publication, rotation and verification, §13 caching, §16 events, §17 errors. |
| Full client | §3–§5 native resolution, §7 metadata consumption, §8 domain checks, §10.6 client pinning (MUST for every server where it holds a session token), §11.6 key lookup (for the silent checks and DM validation of 07), §13 caching. |
| Web client | As Full client, but resolution per §5.4 (/v1/resolve or DoH) instead of direct DNS. |
| Bot client | As Full client; a bot that runs where it can query DNS uses native resolution. |
| Push gateway | §5.2 resolution with the server rules (including §5.6 target restrictions), §7.4 metadata validation, §10.1–§10.4 pinning (a gateway has no admin API; its operator MAY delete pins), §11.6 key lookup for sv-push+jwt (19), §12.3 continuity and §13 caching. It doesn't serve /meta or /v1/resolve. |
2. Overview
user types bob@guild.sloppyvoice.com (01: lenient parse, local part, A-label)
|
v
delegation _sloppyv.guild.sloppyvoice.com TXT ──none──> https://guild.sloppyvoice.com/.well-known/sloppyv
| "v=sv1 url=https://chat.sloppyvoice.com/server2"
v
base URL https://chat.sloppyvoice.com/server2 evidence: same-site
|
v
metadata GET https://chat.sloppyvoice.com/server2/meta -> ServerMetadata
|
v
checks guild.sloppyvoice.com in domains? -> else discovery.domain_not_served
canonicalDomain resolves to the same base URL? -> else discovery.canonical_mismatch
pin (servers): same base URL and keys, or an accepted change? -> else suspend
|
v
result DiscoveryResult { baseUrl, canonicalDomain, evidence, metadata, keys }Resolution is the same for every party except web clients, which can't query TXT records and use their home server or DNS-over-HTTPS for the delegation step, then do the metadata checks themselves (D-029).
Rationale: two independent statements are needed before a domain is bound to a server. The domain owner says "my users live at this URL" (the record), and the server says "I serve this domain" (the domain list). Either alone can be forged by someone who controls only one side (D-002).
3. The discovery record
3.1 Owner name
The discovery record for a queried domain D is the set of DNS TXT resource records (class IN) at the owner name _sloppyv. followed by D, where D is the lowercase A-label form produced by 01. For example, the record for sloppyvoice.com lives at _sloppyv.sloppyvoice.com..
The record is never placed at the bare name D (D-001).
Rationale: a name that is a CNAME (for example chat.sloppyvoice.com pointing at a hosting provider) can't hold any other record, including TXT, under RFC 1034 §3.6.2. An underscored name is free of that restriction, and it doesn't mix with SPF, DMARC or site-verification TXT records at the bare name, which many people already have and which tools edit carelessly.
_sloppyv is registered as an underscored node name for TXT (§19).
3.2 Record syntax
A TXT resource record holds one or more character-strings. The record text is the concatenation of all character-strings of one resource record, in order, with nothing inserted between them (as for SPF, RFC 7208 §3.3). Long URLs can therefore be split across strings at any point.
The record text of an sv1 discovery record follows this ABNF (RFC 5234; quoted strings are case-insensitive, as RFC 5234 §2.3 specifies):
sv-record = *WSP version-tag 1*( 1*WSP sv-param ) *WSP
version-tag = "v=sv1"
sv-param = url-param / ext-param
url-param = "url=" base-url ; exactly once per record
ext-param = param-name "=" param-value ; ignored by v1 consumers
param-name = ALPHA *( ALPHA / DIGIT / "-" )
param-value = 1*VCHARbase-url is defined in §3.3. WSP, ALPHA, DIGIT and VCHAR are the RFC 5234 core rules.
Classification of one resource record:
- If the record text contains any octet outside
%x09,%x20-7E, it is foreign unless rule 2 applies. - Remove leading and trailing
WSP. Split the text at runs ofWSPinto tokens. If the first token, compared case-insensitively, isn't exactlyv=sv1, the record is foreign and is ignored. (v=spf1 …,v=sv2 …andv=sv1url=…are all foreign to a v1 consumer.) - Otherwise the record is an sv1 record. It is valid only if every remaining token matches
sv-param, exactly one token is aurl-param(the parameter name compared case-insensitively), no parameter name appears twice, the total record text is at most 1,024 octets, and theurlvalue is a validbase-url(§3.3). An sv1 record that fails any of these checks is malformed. An sv1 record that contains an octet outside%x09,%x20-7Eis malformed. - A valid sv1 record's base URL is the normalized form (§3.3) of its
urlvalue. Other parameters are ignored. Future minor versions MAY define new parameters; they MUST be safe to ignore.
3.3 Base URL syntax and normalization
base-url = https-scheme "://" host-name [ ":" port ] base-path
https-scheme = "https" ; case-insensitive
host-name = ldh-label *( "." ldh-label ) [ "." ]
ldh-label = alnum [ *61( alnum / "-" ) alnum ]
alnum = ALPHA / DIGIT
port = 1*5DIGIT ; 1-65535 after parsing
base-path = *( "/" segment ) ; RFC 3986 segment
segment = *pchar ; RFC 3986 pcharsegment and pchar are as in RFC 3986 §3.3. A base-url has no userinfo, no query (not even an empty ?), no fragment, and a host that is a DNS name in ASCII (A-labels for internationalized names) with at least two labels. IP literals, IPv4 addresses and any host that a WHATWG URL parser would read as an IPv4 address are not allowed. The whole value is at most 512 octets.
normalizeBaseUrl(u) produces the normalized base URL, or fails:
- Parse
uwith RFC 3986. Fail if it doesn't matchbase-url, if the host contains a label longer than 63 octets or is longer than 253 octets, or if the port is outside 1–65535. - Lowercase the scheme and the host. Remove one trailing
.from the host. Fail if the host then has fewer than two labels, or if its last label consists only of digits or starts with0x(this covers dotted IPv4 addresses and the integer and hexadecimal forms, such as2130706433or0x7f.1, that browsers parse as IPv4). - Remove leading zeros from the port. Then remove the port if it is
443. - In the path, uppercase the hexadecimal digits of every percent-encoding and decode percent-encoded unreserved characters (RFC 3986 §6.2.2.1, §6.2.2.2).
- Fail if any path segment is
.or..after step 4, or if the path contains an empty segment other than a single trailing one (that is,//anywhere). - Remove one trailing
/from the path, if present. - The result is
"https://" host [":" port] path.
Every party that stores, compares, pins or signs a base URL uses the normalized form. Paths are compared case-sensitively. A server's own endpoints.api member (§7.3.1) MUST already be normalized.
Rationale: a server is "one instance at one base URL" (00 §2.2), so base-URL equality decides whether two domains are the same server (R-03). Comparing raw strings would make https://Chat.example.com:443/server/ and https://chat.example.com/server different servers. Single-label hosts are refused because the system resolver's search domains would make their meaning depend on the machine, and numeric last labels because web and native parsers would disagree about them.
3.4 Processing the TXT RRset
The resolver collects every TXT resource record at _sloppyv.D (after following any CNAME chain, §3.5) and classifies each one (§3.2).
| What the RRset contains | Outcome |
|---|---|
| No records (NXDOMAIN or NODATA), or only foreign records | No record. Continue with the .well-known fallback (§4). |
| Exactly one sv1 record, and it is valid | Delegation to its base URL, source txt. |
| Several sv1 records, all valid, all with the same normalized base URL | Delegation to that base URL, source txt. |
| Any malformed sv1 record, or valid sv1 records with different base URLs | discovery.record_invalid. The .well-known fallback is not consulted. |
| DNS failure: SERVFAIL (including DNSSEC "bogus"), REFUSED, timeout, or a truncated answer that can't be retried over TCP | Temporary DNS failure. Continue with the .well-known fallback (§4.3). If that also fails, discovery.dns_failure. |
Proposed decision PD-02-1: an explicit but malformed or conflicting discovery record is an error, not a reason to fall back to .well-known. Rationale: the operator clearly meant to publish a record; silently using a different source would hide the mistake and make two verifiers disagree depending on which fallback they tried.
3.5 DNS details
- CNAME.
_sloppyv.DMAY be a CNAME (for example_sloppyv.chat.sloppyvoice.com. CNAME _sloppyv.sloppyvoice.com.so that aliases follow the canonical record). Resolvers follow the chain as usual. A chain longer than 8 links is a temporary DNS failure. - Wildcards. A wildcard TXT record can synthesize an answer at
_sloppyv.D. Consumers treat a synthesized answer like any other. Operators SHOULD NOT publish wildcard TXT records that start withv=sv1. - DNSSEC. A resolver that validates DNSSEC (RFC 4033–4035) and finds the answer (including every CNAME in the chain and, for NXDOMAIN, the denial of existence) Secure reports that to the evidence step (§9.1). Servers SHOULD use a validating resolver on the same host or reached over a channel they trust (loopback, or DNS over TLS/HTTPS to a resolver they operate or chose); they MUST NOT treat the AD bit from a resolver reached over an unauthenticated network path as validation.
- TTL. The delegation's freshness lifetime is the smallest TTL in the answer (the TXT RRset and every CNAME in the chain), clamped to [300 s, 86,400 s] (§13).
- Query. One TXT query, recursion desired, with EDNS(0) and the DO bit set when the resolver validates. Timeout: 5 s per attempt, at most 2 attempts, 10 s in total (§5.5).
4. The .well-known fallback
4.1 Document
The fallback document for D is fetched with GET https://D/.well-known/sloppyv (RFC 8615). It is a JSON object:
| Member | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
v |
string | Yes | Protocol version of this delegation. | MUST be "sv1". A document with any other value is treated as absent by v1 consumers. |
url |
string | Yes | The base URL for D. |
A base-url (§3.3). |
Consumers MUST ignore unknown members. A document that isn't a JSON object, lacks a required member, has a member of the wrong type, has an invalid url, or exceeds 4,096 octets is invalid.
{ "v": "sv1", "url": "https://chat.sloppyvoice.com/server" }Rationale: the document is meant to be written by hand and dropped on any static web host, so it has two members and nothing to get wrong.
4.2 Fetch rules
- HTTPS only, with WebPKI certificate validation for
D(RFC 9110 §4.3.4, RFC 6125/RFC 9525 rules as implemented by the platform). A document received over a connection whose certificate fails validation is never used. - Up to 3 redirects MAY be followed, every hop HTTPS with a valid certificate. A redirect to a non-HTTPS URL, a fourth redirect, or a loop means absent.
- Consumers MUST NOT reject the document because of its
Content-Type. Servers serving it SHOULD useapplication/json. - Timeouts: 5 s to connect, 10 s in total.
- The domain owner MUST serve it with
Access-Control-Allow-Origin: *(00 §7.3) so that web clients using DoH can read it. A web client that can't read it anyway (for example because a static host drops the header) treats it as absent on the DoH path, and/v1/resolvestill works (§5.4). - Freshness:
Cache-Control: max-age, elseExpires, else 3,600 s; then clamped to [300 s, 86,400 s] (§13).
Each fetch has exactly one outcome:
| Outcome | When |
|---|---|
| present | Status 200 with a valid body (§4.1). |
| invalid | Status 200 with an invalid body (§4.1). |
| absent | Status 404 or 410; a redirect outcome named above; or D itself has no address (NXDOMAIN or NODATA for its A and AAAA records). The domain's web origin answered, or doesn't exist, and holds no document. |
| unavailable | A connection failure, a timeout, a TLS or certificate failure, status 429 or 5xx, or any other unexpected status. Nothing can be concluded about the document; the attempt is a temporary failure (§13.2, §13.3). |
Rationale for following redirects: many domains redirect every path from the bare domain to www. Each hop is authenticated by TLS for the name that issued it, so the chain still speaks for D.
4.3 When it is consulted, and precedence
The discovery record takes precedence. The .well-known document is consulted in exactly three cases:
| Case | Who | Result |
|---|---|---|
| W-a No record (§3.4) | Everyone | Present: delegation to its url, source wellknown. Invalid: discovery.record_invalid. Absent: discovery.not_found. Unavailable: discovery.server_unreachable (temporary, without data.baseUrl), so a cached result stays usable (§13.2). |
| W-b Temporary DNS failure (§3.4) | Everyone | Present: delegation to its url, source wellknown, with a freshness lifetime of at most 300 s. Invalid: discovery.record_invalid. Absent or unavailable: discovery.dns_failure. |
W-c A valid record whose evidence would otherwise be dns-only (not DNSSEC-validated and not same-site, §9) |
Servers MUST. Native clients SHOULD for their home server at sign-in and MAY otherwise. | Present and its normalized url equals the record's base URL: evidence wellknown. Present with a different base URL: discovery.delegation_conflict. Invalid, absent or unavailable: evidence stays dns-only. |
The .well-known document is never consulted when the record is DNSSEC-validated or same-site: it can't strengthen the evidence, and fetching it would only add latency.
Proposed decision PD-02-2: a delegation that comes from .well-known alone (cases W-a and W-b) gets evidence same-site if its host passes the same-site test and wellknown otherwise; a disagreement between a weak TXT record and the .well-known document is an error (discovery.delegation_conflict). Rationale: the .well-known document is served by the domain's own HTTPS origin and authenticated by WebPKI, which is exactly what the wellknown level means in 00 HP-7; a disagreement means either a DNS attack or a half-finished migration, and neither should be resolved by guessing.
5. Resolution
5.1 Inputs and outputs
Input: a queried domain D: a lowercase A-label, at most 253 octets, with at least two labels, not an IP address and not a special-use name (localhost, local, internal, invalid, test, example, arpa, alt, onion and names under them, and every other name in the IANA Special-Use Domain Names registry; RFC 6761, RFC 6762, RFC 7686, RFC 8375 and RFC 9476). Anything else fails with discovery.invalid_domain. Implementations MAY offer a development setting that allows special-use names; it MUST be off by default and MUST NOT be available in release builds of clients.
Output: a DiscoveryResult (an internal object; its wire projection is the ResolveResult of §6.3):
| Field | Type | Meaning |
|---|---|---|
domain |
string | The queried domain D. |
baseUrl |
string | Normalized base URL. |
source |
txt | wellknown |
Where the delegation came from. |
evidence |
dnssec | same-site | wellknown | dns-only |
Delegation evidence (§9). |
canonicalDomain |
string | The server's canonical domain, from the metadata, verified per §5.3. |
metadata |
ServerMetadata | The validated metadata (§7). |
resolvedAt |
timestamp | When the delegation was obtained. |
delegationExpiresAt, metadataExpiresAt |
timestamp | Freshness of each half (§13). |
stale |
boolean | True while a stale copy is being used (§13.2). |
5.2 Algorithm for native clients and servers
resolve(D):
- Validate input. Check
Dper §5.1. - Cache. For a server, if the pin for
Dissuspended, fail withdiscovery.peer_suspended. Otherwise, if a fresh DiscoveryResult forDexists (§13), return it. If a negative cache entry exists, return its error. A re-check (§10.3, §13.4 and the cache-bypassing refetches of §11.6 and §16.1) skips this step: it runs steps 3–11 with every cache bypassed, and it is how a suspended pin is resolved again. - Coalesce. If a resolution of
Dis already in progress, wait for it and return its outcome. - Delegation. Query
_sloppyv.DTXT (§3.5) and process the answer (§3.4), consulting.well-knownwhere §4.3 says. The outcome is a candidate base URLBwith a source, or an error. - Target check. Servers apply §5.6 to
B's host. Fail withdiscovery.forbidden_targetif it is refused. - Evidence. Classify the delegation (§9.1), including case W-c of §4.3 where it applies.
- Metadata. Fetch
GET B/meta(§7.1) unless a fresh copy forBis cached. Validate it (§7.4). Failures:discovery.server_unreachable(connection, TLS, timeout, 5xx, 429) ordiscovery.metadata_invalid(anything else, including a redirect). - Domain check.
DMUST be an element ofmetadata.domains. Otherwise fail withdiscovery.domain_not_served(§8). - Canonical check. Verify the canonical domain per §5.3, which says which error a failure gives.
- Pinning. Servers MUST compare the result with the pin for
Dand apply §10; clients do so as §10.6 requires. A rejected change givesdiscovery.peer_suspended(servers) or is handled as in §10.6 (clients). - Store and return. Cache the result (§13), update the pin's
lastVerifiedAt, and return it.
A failure at any step ends the resolution with that error. Steps 4–9 MUST NOT be reordered, except that the metadata fetch of step 7 MAY start in parallel with the W-c fetch of step 6, provided its result isn't used if step 6 fails.
5.3 Canonical-domain check
Let C = metadata.canonicalDomain.
- If
CequalsD, the check passes. - Otherwise run the full
resolve(C)(steps 1–11, using the cache), including the pinning step forC. The check passes only if it succeeds and its normalizedbaseUrlequalsB. BecauseC's resolution fetches the same/meta,C ∈ domainsis checked too. - If a pin for
Cexists,resolve(C)returnsBonly whenBisC's pinned base URL or a change toBis accepted forCunder §10.2. A resolution of an alias therefore never creates or updates a pin forDwith a base URL thatC's pin doesn't accept. - Errors. If
resolve(C)fails, the resolution ofDfails with the same error: temporary errors (discovery.dns_failure,discovery.server_unreachable) anddiscovery.peer_suspendedpropagate unchanged, so stale use and retries work as forCitself.discovery.canonical_mismatchis returned only whenresolve(C)succeeds with a different base URL.
Rationale for pinning C here: otherwise an attacker who controls DNS for C and for an alias that has never been contacted could bypass C's pin. The alias's first-use pin would point at the attacker's server, and clients that canonicalize bob@alias to bob@C would then hand assertions addressed to C to that server.
Proposed decision PD-02-3: an alias resolution is accepted only if the canonical domain named by the metadata resolves back to the same base URL. Rationale: canonicalize() (01, HP-8) replaces the typed domain with canonicalDomain. Without this check, a server reached through a domain its operator controls could claim any canonical domain, and bob@evil.example would be displayed as bob@sloppyvoice.com. Signatures would still fail (verifiers resolve iss themselves), but the display spoof alone breaks D-005's promise.
5.4 Web clients (D-029)
Browsers can't send DNS TXT queries. A web client therefore obtains the delegation in one of two ways and then performs the metadata checks itself.
Bootstrap server. Every web client build is configured with the base URL of the server that served it (its bootstrap server). Before sign-in, the web client's "home" for this section is the bootstrap server. After sign-in it is the account's home server.
Procedure webResolve(D):
- Validate
D(§5.1) and check the cache (§13). - Delegation through the home server (default). Call
GET {home}/v1/resolve?domain=D(§6), with the session token if signed in.- 200: take
baseUrl,canonicalDomain,sourceandevidencefrom the ResolveResult. - A
discovery.*error that is not retryable (invalid_domain,not_found,record_invalid,delegation_conflict,metadata_invalid,domain_not_served,canonical_mismatch,forbidden_target,version_unsupported), ordiscovery.peer_suspended: this is the final answer. The client MUST NOT retry through DoH. - A retryable
discovery.*error (dns_failure,server_unreachable) or 429core.rate_limited: this is the answer for this attempt. The client returns it to the caller, retries/v1/resolveafterretryAfterMs(orRetry-After), and MUST NOT use DoH. The home server reached the question and couldn't answer it yet; DoH would only bypass its pins. - No usable answer from the home server (a network error, a timeout, a 5xx response that isn't a
discovery.*problem object, orcore.unavailable): go to step 3 if DoH is configured, otherwise fail withdiscovery.server_unreachable.
- 200: take
- Delegation through DoH (fallback, optional). If the build or the user configured one or more DNS-over-HTTPS resolvers that allow CORS, send an RFC 8484 query (
GETwith thednsparameter,application/dns-message) for_sloppyv.DTXT and process the answer as in §3.4 and §4.3, fetchinghttps://D/.well-known/sloppyvdirectly when needed (it is treated as absent if CORS blocks it). A web client records evidencesame-site,wellknownordns-onlyonly; it MUST NOT recorddnssec, because it can't validate DNSSEC itself. - Metadata, checked by the client. Fetch
GET baseUrl/metadirectly (CORS, §7.1) and validate it (§7.4). Then check, itself:Dis indomains(elsediscovery.domain_not_served);metadata.canonicalDomainequals thecanonicalDomainof the ResolveResult, elsediscovery.canonical_mismatch. The home server has already verified that the canonical domain resolves to the same base URL (§6.2). On the DoH path, the client runs §5.3 itself.
- Apply client pinning (§10.6), cache, and return.
Proposed decision PD-02-4: definitive answers from /v1/resolve, including discovery.peer_suspended, are final for web clients; DoH is used only when the home server can't be reached. Rationale: otherwise a web client would bypass its home server's pins exactly when they detect an attack.
Rationale for checking metadata in the client: the home server is trusted for the delegation, as DNS would be, but it never supplies the keys, the domain list or the canonical domain. A home server that lies about a base URL is in the same position as a DNS attacker (§21), and the domain-list check still applies.
5.5 Timeouts, sizes and concurrency
| Item | Value |
|---|---|
| DNS query | 5 s per attempt, 2 attempts, 10 s total |
.well-known fetch |
5 s connect, 10 s total, at most 4,096 octets, at most 3 redirects |
/meta fetch |
5 s connect, 10 s total, at most 262,144 octets, no redirects |
| Whole resolution, including the canonical check | 30 s; on expiry the resolution fails with the error of the step in progress |
| Concurrent resolutions of one domain | Coalesced into one (§5.2 step 3) |
| Outbound resolutions by a server | At most 10 per second in total by default (configurable), queued beyond that |
A server MUST NOT retry within one resolution. Callers retry according to their own rules (06 for S2S delivery) and the negative cache (§13.3).
5.6 Target restrictions for servers
A server fetches URLs named by other people's DNS records, so it MUST protect its own network (server-side request forgery). Before connecting for .well-known or /meta, a server MUST resolve the host's addresses and refuse, with discovery.forbidden_target, any address in a special-purpose range of the IANA IPv4 and IPv6 Special-Purpose Address Registries (RFC 6890) that isn't globally reachable: loopback, private-use (RFC 1918, RFC 4193), link-local, shared address space (RFC 6598), multicast, unspecified, documentation and benchmarking ranges, and IPv4-mapped forms of these. The check applies to every address actually connected to, including after redirects. An admin MAY allowlist specific internal hosts.
Clients don't apply this rule; a user is allowed to use a server on their own network.
Proposed decision PD-02-12: server-side resolution refuses non-public target addresses with discovery.forbidden_target, unless the admin allowlists them. Rationale: every server fetches URLs that strangers choose through DNS, which is a classic server-side request forgery vector.
5.7 User experience
- While resolving at sign-in or when opening a link, the client shows the domain being looked up (for example "Looking up sloppyvoice.com…"), never a spinner without words.
- After a successful resolution at sign-in, the client shows the server's
nameandiconand the login providers fromauth(05). If the typed domain was an alias, the client shows the canonical domain from then on and never the alias (HP-8). discovery.not_foundanddiscovery.invalid_domainare shown as "There's no Sloppy Voice server at example.com. Check the spelling."discovery.domain_not_servedis shown as "example.com doesn't host that address."- The definitive configuration errors (
discovery.record_invalid,discovery.delegation_conflict,discovery.metadata_invalid,discovery.canonical_mismatch,discovery.version_unsupported) are shown as the server not being set up correctly right now, with thecontact.adminlink when it is known (§7.3.5), and are retried on the negative-cache schedule (§13.3). They are not security messages. - Every other discovery error is shown as the server being unreachable for now, with automatic retry. Exact copy is owned by 20.
- Discovery never produces a security warning. Pin conflicts, key rotations and evidence levels are not in the closed warning catalogue (00 §4.12, D-055), and "server key rotation" is on the never-prompt list (00 §4.12.5). Pin conflicts reach admins (§10.5) and diagnostics, not users. This doesn't affect W9, which 09 raises from the
securevalue of validated metadata (D-056).
5.8 No-contact use
Some flows forbid a client to contact a server yet. The main one is a message request before Accept (D-049, 12 §10.4). In such a flow the client MUST NOT fetch that server's /meta or https://D/.well-known/sloppyv, and MUST NOT create or change a pin or cached DiscoveryResult for it. It uses only:
- the canonical addresses, IdentityStates and server keys that its home server provides (12 §10.1: the issuers'
signkeys and the hosting server'smls-external-senderkeys), which are already canonical, so nocanonicalize()call is needed to use them; and - when it needs a canonical domain or base URL for display,
GET {home}/v1/resolve(§6), which contacts only the home server. Native clients use it too in this case.
Values obtained this way are used only for display and for the checks that 07 §14.7 and 13 §6.2 item 2 allow before Accept; they never create or change a pin. The full resolution (§5.2 or §5.4) runs when the flow allows contact, for example after Accept.
6. GET /v1/resolve
6.1 Purpose and access
GET {base}/v1/resolve?domain=<domain> lets a client use a server's resolver: web clients for every resolution (D-029), and any client for no-contact use (§5.8) and pin recovery (§10.6). Every server MUST implement it.
| Aspect | Rule |
|---|---|
| Authentication | Optional. Anonymous requests are allowed (a web client before sign-in). A Bearer session token raises the rate limit. |
Query parameter domain |
Required. A domain in A-label or U-label form, at most 253 octets after conversion. The server converts it per 01 (UTS #46 mapping, IDNA2008, lowercase A-label). Exactly one domain parameter; repeats fail with core.invalid_request. |
| CORS | Access-Control-Allow-Origin: * per 00 §7.3. |
| Caching | The response carries Cache-Control: private, max-age=<seconds until expiresAt> and no Vary on Authorization. |
| Rate limits | Anonymous: 30 requests per 60 s per IP address. Authenticated: 120 requests per 60 s per session. Over the limit: 429 core.rate_limited (03). |
| Outbound limits | Results come from the server's cache whenever fresh (§13). A domain with a negative cache entry isn't resolved again before the entry expires, whoever asks. |
The server answers from its own resolution, including its pin state. It MUST NOT return raw DNS records, raw .well-known bodies or metadata bodies; the endpoint is not a general DNS or HTTP proxy.
6.2 Server behaviour
The server runs resolve(domain) (§5.2) with all server rules: the mandatory W-c check, target restrictions, the canonical check and pinning. It answers 200 only if the resolution, including §5.3, succeeded. A stale result (§13.2) is returned with stale: true.
If domain is one of the server's own domains, the server answers from its own configuration with source and evidence from a self-resolution it performs at most once per 300 s (§15.3).
6.3 Response: ResolveResult
| Member | Type | Required | Meaning |
|---|---|---|---|
domain |
string | Yes | The queried domain as a lowercase A-label. |
baseUrl |
string | Yes | Normalized base URL. |
canonicalDomain |
string | Yes | The canonical domain, verified per §5.3. |
source |
string | Yes | txt or wellknown. Unknown values: treat as wellknown. |
evidence |
string | Yes | dnssec, same-site, wellknown or dns-only. Unknown values: treat as dns-only. |
resolvedAt |
string | Yes | RFC 3339 timestamp of the delegation. |
expiresAt |
string | Yes | When the client's cached copy expires: the earlier of the delegation and metadata expiry, and never more than 86,400 s after the response. |
stale |
boolean | Yes | True if the server is using a stale copy because the target is unreachable. |
GET /server/v1/resolve?domain=guild.sloppyvoice.com HTTP/1.1
Host: chat.sloppyvoice.com
Origin: https://app.sloppyvoice.com{
"domain": "guild.sloppyvoice.com",
"baseUrl": "https://chat.sloppyvoice.com/server2",
"canonicalDomain": "guild.sloppyvoice.com",
"source": "txt",
"evidence": "same-site",
"resolvedAt": "2026-12-04T09:12:03.418Z",
"expiresAt": "2026-12-04T10:12:03.418Z",
"stale": false
}6.4 Errors
The endpoint returns the discovery.* errors of §17 for resolution failures, core.invalid_request for a missing or repeated parameter, and core.rate_limited. Each discovery.* error carries data.domain, and data.baseUrl where one was found.
{
"type": "urn:sloppyv:error:discovery.domain_not_served",
"code": "discovery.domain_not_served",
"title": "That server doesn't serve this domain",
"status": 404,
"detail": "chat.sloppyvoice.com/server2 doesn't list sloppyvoice.com among its domains.",
"retryable": false,
"retryAfterMs": null,
"userAction": "none",
"data": { "domain": "sloppyvoice.com", "baseUrl": "https://chat.sloppyvoice.com/server2" }
}7. ServerMetadata
7.1 The /meta endpoint
GET {base}/meta returns the server's ServerMetadata. It is unversioned (00 §7.3) so that a client of any protocol version can learn which versions the server speaks.
| Aspect | Rule |
|---|---|
| Methods | GET and HEAD. |
| Authentication | None. Servers MUST NOT require or vary on Authorization. |
| Same answer for everyone | The body MUST be identical for every requester at a given time. Servers MUST NOT tailor it by IP address, user agent or origin. |
| Media type | application/json, UTF-8, I-JSON (00 §7.2). At most 262,144 octets. A server whose document would exceed this drops the oldest keyChain elements it is allowed to drop (§12.2) until it fits. |
| CORS | Access-Control-Allow-Origin: * (00 §7.3). |
| Caching | Cache-Control: max-age=<n> with n between 300 and 86,400 (3,600 RECOMMENDED). An ETag is RECOMMENDED, and servers that send one MUST honour If-None-Match with 304. |
| Redirects | Servers MUST NOT redirect /meta. Consumers MUST NOT follow a redirect; a 3xx answer is discovery.metadata_invalid. |
| Availability | Servers SHOULD serve /meta from memory or a cache and keep it available while other parts of the server are degraded, because every peer and client depends on it. |
Rationale for "no redirects": the base URL is the server's identity. A /meta served from somewhere else would let the base URL and the metadata disagree about who the server is.
7.2 Top-level members
Consumers MUST ignore unknown members (00 §7.2). "Cosmetic" in the last column means that an invalid value is ignored (as if the member were absent) instead of making the whole document invalid.
| Member | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
canonicalDomain |
string | Yes | The server's one canonical domain (D-002). Every stored and signed address on this server uses it (D-032). | A lowercase A-label domain valid per §5.1. MUST be an element of domains. Immutable for the life of the server (§8.3). |
domains |
array of string | Yes | Every domain this server accepts: the canonical domain plus alias domains (D-002). | 1–100 elements, no duplicates, each a lowercase A-label valid per §5.1. |
name |
string | Yes | The server's display name, shown at sign-in and in link previews. | 1–64 Unicode code points after trimming white space; NFC. MUST equal the Community name (09). |
description |
string | No | One-paragraph description. | At most 500 code points. Cosmetic. |
icon |
string | No | Square icon image. | An https URL, at most 512 octets. PNG, WebP or JPEG, at least 256×256 pixels RECOMMENDED. Cosmetic. |
secure |
boolean | Yes | The server's secure flag (00 §4.1, D-003, D-018). | MUST equal the Community secure value (09). Never goes from true back to false (D-073). Clients pin it (D-056, rules in 09); servers pin it too (§10.2). |
securedAt |
string or null | Yes | When the server became secure, or when it was created secure. null while secure is false. |
RFC 3339 timestamp or null. MUST equal the Community securedAt (09). Immutable once set (D-073). Clients compare it with their pin (09 §13). |
versions |
array of string | Yes | Protocol versions the server speaks. | Each a proto-version (03 §12.1); one entry per major version served, giving its highest minor version. v1 servers list "1.0" or a later "1.x". Semantics and negotiation: 03. |
minClient |
string | Yes | The lowest protocol version a client must implement to use this server. A client that implements only lower versions shows "update required" (00 §7.8). | A proto-version. "1.0" unless the server needs a later minor version. |
features |
array of string | Yes | Every feature the server implements, mandatory ones included (03 §12.2). | Each a feature (03 §12.2), at most 64 octets; consumers ignore elements that don't match. MUST include the mandatory voice-dc/1 and video-dc/1. Registry and semantics: 03 and the feature owners. Unknown names are ignored. |
keys |
array of ServerKey | Yes | The server's public keys (§11). | 1–16 elements. Rules in §11.5. |
keyChain |
array of string | Yes | KeyRotation JWSs in compact serialization (§12). | 0–64 elements. Rules in §12.2. Empty for a server that has never rotated. |
endpoints |
object | Yes | Where to reach the server's parts (§7.3.1). | |
auth |
object | Yes | Login and registration information (§7.3.2). | |
limits |
object | Yes | Advertised size limits (§7.3.3). | |
links |
object | Yes | Link templates and public pages (§7.3.4). | MAY be an empty object. |
contact |
object | No | Operator and contact information (§7.3.5). RECOMMENDED. | Cosmetic. |
software |
object | No | Implementation name and version, for diagnostics only (§7.3.6). | Cosmetic. |
updatedAt |
string | Yes | When any other member last changed. | RFC 3339 timestamp (00 §7.7). |
proto-version is 03 §12.1's version grammar.
7.3 Nested objects
7.3.1 endpoints
| Member | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
api |
string | Yes | The server's base URL. Every API path (00 §7.3) is relative to it. | A normalized base URL (§3.3). MUST equal the normalized base URL from which this metadata was fetched; otherwise discovery.metadata_invalid. |
relayUrl |
string | Yes | Base URL of the server's default media relay; the relay connection is {relayUrl}/connect (15). Every server runs a relay (D-066). |
A base-url (§3.3). The relay URL returned by a call-join response (15) takes precedence for that call, so a server can use several relays. |
push |
object | Yes | How this server, acting as a home server, delivers pushes (D-022). Semantics: 19. | Members below. |
endpoints.push:
| Member | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
gatewayPolicy |
string | Yes | any: the server delivers to any push gateway a device registers. listed: only to the gateways in gateways. Server software defaults to any (D-093, 19 §11.1). |
Unknown values: treat as listed. |
gateways |
array of string | Required when gatewayPolicy is listed |
Push gateway base URLs (the gatewayUrl of 19 §9.1, without /v1/push) this server delivers to, in normalized form (§3.3). |
0–32 base-url values (§3.3). |
webPushKey |
string | No | The server's VAPID public key (RFC 8292) for Web Push subscriptions (RFC 8030). Absent means the server doesn't offer Web Push. | base64url of the 65-octet uncompressed P-256 point. |
Rationale: a mobile app build can only receive pushes through its publisher's gateway (19). A client that sees its build's gateway missing from a listed policy can tell the user, before sign-in, that notifications won't arrive on this server.
7.3.2 auth
| Member | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
providers |
array of object | Yes | The OIDC providers the admin configured (D-016), in the order the server wants them shown. | 0–16 elements. MAY be empty on a server that hosts only bots or accepts no logins. |
providers[].id |
string | Yes | Provider identifier used in /v1/auth/authorize?provider=<id> (05). |
1–32 octets of [a-z0-9_-], unique within providers. |
providers[].name |
string | Yes | Button label, for example "Google". | 1–64 code points. |
providers[].type |
string | Yes | google, github, microsoft, apple or oidc (any other OpenID Connect issuer). Clients use it for familiar button styling only. |
Unknown values: treat as oidc and use name and icon. |
providers[].icon |
string | No | Button icon for oidc providers. |
https URL, at most 512 octets. Cosmetic. |
providers[].signup |
boolean | No | Whether this provider may create new accounts (05 §8.3). Absent means true. |
A non-boolean value is ignored (treated as absent). The server's answer at sign-up is authoritative. Semantics: 05. |
registration |
string | Yes | Who may create an account here: open (anyone who signs in with a listed provider), invite (only with an invite, 05 and 09), closed (no new accounts). |
Unknown values: treat as closed. Semantics: 05. |
7.3.3 limits
limits is a container. Each member is a non-negative integer named max<Thing><Unit> (00 §7.12). The owning document named in 00 §7.12, or a later registration in 03, defines each limit's meaning, default and floor; this document defines only the container rules:
- A server MUST include every limit registered for the protocol version it implements, and MUST NOT advertise a value below that limit's floor.
- A consumer that finds a registered limit missing or not a non-negative integer uses that limit's floor.
- Consumers MUST ignore unknown members.
- A consumer MUST NOT send anything larger than the advertised limit and SHOULD check before sending, so the user sees "This file is too large for this server (max 25 MB)" rather than an error after uploading.
7.3.4 links
| Member | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
join |
string | No (RECOMMENDED) | Template for HTTPS share links to this server's channels, users and community, offered next to every sloppyv URI (00 §2.1). Semantics of share links: 01; invites: 09. |
An RFC 6570 URI Template of level 3 or lower, at most 512 octets, using no variables other than local, domain and invite. Every expansion MUST be an https URI. The scheme and authority MUST be literal text (no expression before the path), and the host MUST be the host of endpoints.api or one of domains (01 §11.2). Cosmetic. |
web |
string | No | A web client that serves this server. | An https URL, at most 512 octets. Not cosmetic: its origin (scheme, host, port) identifies the server's own web client, which 20 §16.11 uses to decide where a secure account's keys may be held. A present but invalid value is kept as 'present, matching no origin', never treated as absent. |
terms |
string | No | Terms of service, linked from sign-up (05). | https URL. Cosmetic. |
privacy |
string | No | Privacy notice, linked from sign-up (05). | https URL. Cosmetic. |
help |
string | No | Help or support page. | https URL. Cosmetic. |
The values of the template variables, which variables a template must use, and how clients generate and recognise share links are specified in 01 §11.2 and §11.4. This document owns only the member and the syntax above. The example in §7.5 uses 01's recommended form, https://<canonical-domain>/j{/local}{?invite}.
A consumer MUST treat a join template that breaks this row or 01 §11.2 as absent, and uses it neither to generate links nor to match pasted URLs. Clients check the template's host by resolution, as 01 §11.2 and §11.4 step 1 say, never by same-site tests.
Rationale for the host constraint: clients match a pasted HTTPS link only against the join template of the server that the URL's host resolves to (01 §11.4 step 1), and check a template's host by resolution before generating links with it, so a server can't capture another server's links by publishing a template on someone else's host. Same-site is deliberately not used, because two servers of one deployment can share a registrable domain (§14).
Proposed decision PD-02-17: a links.join template's host must be the base-URL host or one of the server's domains, and clients check it by discovery (01 §11.2, §11.4).
When links.join is absent or invalid, clients offer only the sloppyv URI.
7.3.5 contact
| Member | Type | Meaning | Constraints |
|---|---|---|---|
operator |
string | Name of the person or organization running the server. | At most 100 code points. |
admin |
string | General contact for the admin. | A mailto: or https: URI. |
abuse |
string | Where to report abuse by this server's users. RECOMMENDED; other servers' moderators use it for problems their tools can't handle (10). | A mailto: or https: URI. |
security |
string | Where to report security problems with this server. | A mailto: or https: URI. |
url |
string | An "about this server" page. | https URL. |
All members are optional. Each invalid member is ignored.
7.3.6 software
| Member | Type | Meaning | Constraints |
|---|---|---|---|
name |
string | Implementation name. | At most 64 code points. |
version |
string | Implementation version. | At most 32 code points. |
Consumers MUST NOT change behaviour based on software; it is for diagnostics and admin interfaces. Behaviour depends only on versions, features and limits.
7.4 Validation by consumers
A consumer validates ServerMetadata fetched from base URL B as follows. Any failure is discovery.metadata_invalid (with data.reason), except where stated.
- The body is a JSON object, at most 262,144 octets, valid I-JSON with no duplicate member names.
- Every required member is present with the right type and constraints (§7.2, §7.3). Invalid cosmetic members are dropped instead.
canonicalDomainis valid and is an element ofdomains;domainsis valid.endpoints.apiequalsB.versionscontains a version whose major number the consumer implements. If not: when every listed version is higher than the consumer's, the error iscore.unsupported_version(03,userAction: update_app) and a client shows "update required"; otherwise the server is too old for the consumer and the error isdiscovery.version_unsupported(§17). Both are definitive failures for caching (§13.2, §13.3).- If the consumer implements only versions lower than
minClient, it shows "update required" (userAction: update_app). This isn't a validation failure; the metadata is still cached. keyssatisfies §11.5, and everykid's domain part equalscanonicalDomain.secureistrueexactly whensecuredAtis notnull.- Every
keyChainelement is a syntactically valid compact JWS, no longer than the maximum size ofsv-keyrot+jwtin 04's registry, whose header hasalgEdDSA,typsv-keyrot+jwtand akid, whose payload has the claims of §12.1 with the right types, and the elements satisfy the ordering rules of §12.2. Signatures are checked only when the chain is used (§12.3).
7.5 Example
Metadata of the server at https://chat.sloppyvoice.com/server, which serves sloppyvoice.com (canonical) and the alias chat.sloppyvoice.com, as published at 2026-12-04T09:00Z. The keys are those of the test vectors in §20.5: the sign key 2026-01a was retired on 2026-11-30 and stays verifiable until 2026-12-07; the MLS external-sender key mls-2026-12a was announced on 2026-12-04 and may be used from 2026-12-05T12:00Z. The keyChain strings are shortened here; §20.5 gives them in full. limits shows only the limits of 00 §7.12; a real server lists every limit registered for its protocol version (§7.3.3), including those that 05, 06, 09, 10, 13, 15 and 19 register.
{
"canonicalDomain": "sloppyvoice.com",
"domains": ["sloppyvoice.com", "chat.sloppyvoice.com"],
"name": "Sloppy Voice",
"description": "The original Sloppy Voice community. Everyone welcome.",
"icon": "https://chat.sloppyvoice.com/server/static/icon-256.png",
"secure": false,
"securedAt": null,
"versions": ["1.0"],
"minClient": "1.0",
"features": ["voice-dc/1", "video-dc/1", "sfu-rtp/1", "webhooks"],
"keys": [
{ "kty": "OKP", "crv": "Ed25519", "x": "1QEvvbfolRXg51y9hdJWQb43G4Z1oOcbXi6vYLAezoE",
"kid": "sloppyvoice.com#2026-01a", "purpose": "sign", "status": "retired",
"nbf": 1767571200, "exp": 1796601600, "retiredAt": 1795996800 },
{ "kty": "OKP", "crv": "Ed25519", "x": "lrh-xA3rlW5M_Ob4qj07SRjWjzB28938Ikff1p7cESA",
"kid": "sloppyvoice.com#2026-11a", "purpose": "sign", "status": "active",
"nbf": 1795996800, "exp": 1827532800 },
{ "kty": "OKP", "crv": "Ed25519", "x": "dcf9usCLfKyLiK9JRshBFlW6lYpsXTpIfCh34idTeLY",
"kid": "sloppyvoice.com#mls-2026-01a", "purpose": "mls-external-sender", "status": "active",
"nbf": 1767571200, "exp": 1799107200 },
{ "kty": "OKP", "crv": "Ed25519", "x": "rGji7yZg61-x0jmpHobbbxMCaqKuWM3QsoChKkACi6Y",
"kid": "sloppyvoice.com#mls-2026-12a", "purpose": "mls-external-sender", "status": "next",
"nbf": 1796472000, "exp": 1828008000 }
],
"keyChain": [
"eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWtleXJvdCtqd3QiLCJraWQiOiJzbG9wcHl2b2ljZS5jb20jMjAyNi0wMWEifQ.eyJpc3Mi…",
"eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWtleXJvdCtqd3QiLCJraWQiOiJzbG9wcHl2b2ljZS5jb20jMjAyNi0xMWEifQ.eyJpc3Mi…"
],
"endpoints": {
"api": "https://chat.sloppyvoice.com/server",
"relayUrl": "https://relay.sloppyvoice.com/r1",
"push": {
"gatewayPolicy": "any",
"webPushKey": "BBfoyiKrPjLGj3FY3oY2Ld_qCa4DDW2MKjt-sJMSIIJbmCgRUdhB-P8Mc6fOahDpPu3LmPGM4JBZIcn8OyAPHA4"
}
},
"auth": {
"providers": [
{ "id": "google", "name": "Google", "type": "google" },
{ "id": "github", "name": "GitHub", "type": "github" },
{ "id": "staff", "name": "Sloppy Voice staff", "type": "oidc",
"icon": "https://chat.sloppyvoice.com/server/static/staff.png", "signup": false }
],
"registration": "open"
},
"limits": {
"maxRequestBytes": 1048576,
"maxEventBytes": 1048576,
"maxMessageBytes": 16384,
"maxAttachmentBytes": 26214400,
"maxSecureLeaves": 1000,
"maxGroupDmParticipants": 25,
"maxDmRequestBytes": 65536
},
"links": {
"join": "https://sloppyvoice.com/j{/local}{?invite}",
"web": "https://app.sloppyvoice.com/",
"terms": "https://sloppyvoice.com/terms",
"privacy": "https://sloppyvoice.com/privacy"
},
"contact": {
"operator": "Sloppy Voice",
"admin": "mailto:admin@sloppyvoice.com",
"abuse": "mailto:abuse@sloppyvoice.com",
"security": "mailto:security@sloppyvoice.com",
"url": "https://sloppyvoice.com/about"
},
"software": { "name": "example-server", "version": "2.0.0" },
"updatedAt": "2026-12-04T09:00:00.000Z"
}8. Domain acceptance and aliases
8.1 The rule
A domain D is bound to a server S only when both sides agree:
D's discovery record or.well-knowndocument points atS's base URL (the domain owner's consent), andDis an element ofS'sdomains(the server's consent).
Every resolver enforces rule 2 at §5.2 step 8. A web client enforces it itself (§5.4 step 4).
Rationale: rule 1 alone would let a stranger point their own domain at someone else's server and gain addresses there, for example making alice@stranger.example an alias of alice@sloppyvoice.com (D-002). Rule 2 alone would let a server claim any domain. 00 HP-7 and §21 explain what this does not protect against.
8.2 Server-side duties
- A server treats an address as local exactly when its domain is in its own
domains, and usescanonicalDomainin everything it stores, compares or signs (D-032). It rewrites an alias only where 01 §7.7 accepts input form (its own path parameters and discovery input); an alias in a request body, signed object or S2S event is rejected with 400address.non_canonical(01 §7.6), never rewritten. - An endpoint that requires a local address or a local domain and receives a domain not in
domainsfails withdiscovery.domain_not_served(404). Endpoint owners MAY use this code for that purpose. - A server MUST list its canonical domain in
domains, and SHOULD check its own domains regularly (§15.3). - Adding an alias: the admin first adds the domain to
domains, then publishes the discovery record. Publishing the record first producesdiscovery.domain_not_servedfor anyone who resolves in between. - Removing an alias: the admin first removes the discovery record, waits for its TTL (at most 24 h, §13), then removes the domain from
domains. Links that use the alias stop working (01). Stored data is unaffected because it uses canonical addresses only.
8.3 The canonical domain is immutable (D-032)
A server MUST NOT change its canonicalDomain in v1. Pins (§10.2) reject a change of canonical domain for a domain that was its own canonical domain, whatever the evidence; only an explicit admin decision (§10.5) can accept it, for example after the domain changed hands (§21.9). An operator who wants a different canonical domain runs a new server.
An alias domain can move to a different server (its owner points it elsewhere and the new server lists it). Pins accept that only with strong evidence (§10.2), because to every verifier it looks like a delegation change.
9. Delegation evidence
9.1 Classification
Every resolution records exactly one evidence level for its delegation (D-030). The resolver applies these tests in order and records the first that passes:
| Order | Level | Test (all conditions must hold) |
|---|---|---|
| 1 | dnssec |
The source is txt, and a validating resolver the verifier trusts (§3.5) returned the TXT answer, including every CNAME in the chain, with DNSSEC status Secure. Web clients never record this level. |
| 2 | same-site |
Let H be the host of the base URL. Either H equals D, or registrableDomain(H) and registrableDomain(D) are both defined and equal. |
| 3 | wellknown |
Either the source is wellknown (§4.3 cases W-a, W-b), or the source is txt and the .well-known document for D was present, valid and named the same normalized base URL (§4.3 case W-c). |
| 4 | dns-only |
Always. |
registrableDomain(x) is the registrable domain of x under the Public Suffix List algorithm, using both the ICANN and the PRIVATE sections, applied to lowercase A-labels. It is undefined when x is itself a public suffix. Using the PRIVATE section matters: alice.github.io and bob.github.io are different sites.
A delegation with source wellknown is never dns-only.
Rationale for the order: the levels aren't a strict ranking. The order only makes the recorded value deterministic, so two verifiers with the same inputs record the same level.
9.2 What each level proves
| Level | Who vouches that D delegates to B |
Defeated by |
|---|---|---|
dnssec |
The DNSSEC chain from the root to D's zone. |
Compromise of D's zone keys or a parent's; a lying resolver the verifier chose to trust. |
same-site |
WebPKI: a TLS certificate for H, which shares D's registrable domain. A spoofed record can only point at hosts inside the same site. This is only as strong as the assumption that everyone who can get a certificate for a host in the site is one party: a server run by another party inside the site lists whatever domains it likes, so the domain list (§8.1) doesn't stop it. |
A mis-issued certificate for a name in the site; an attacker who controls DNS for the site and the CA's validation path; another party that controls any host in the same registrable domain (a university department, a company team, or a tenant of a hosting provider whose domain isn't in the PSL PRIVATE section). §10.2 therefore counts same-site as strong for pin changes only when H is D, a subdomain of D, or the pinned host. |
wellknown |
WebPKI for D itself: D's own HTTPS origin publishes the delegation. |
A mis-issued certificate for D; control of D's web server. |
dns-only |
Only the DNS answer, which an attacker on the resolution path or in control of the resolver can forge. | Any DNS spoofing. Accepted on first use and then pinned (D-074). |
9.3 Recording
- Servers store the evidence with each pin (§10.1) and with each pin change, and expose it to admins (§10.5).
/v1/resolvereturns it (§6.3). Clients keep it with their cached result and their pins.- Evidence is never shown to ordinary users (§5.7).
- A hosting provider that gives hostnames under one registrable domain to unrelated customers MUST have that domain listed in the PSL PRIVATE section before it offers Sloppy Voice hosting on those hostnames. Until it is listed, its customers get no protection from
same-siteevidence against the provider's other customers. - Public Suffix List: servers SHOULD refresh their copy at least every 30 days and MUST NOT use a copy older than 180 days. Clients bundle a copy with each release and SHOULD refresh it with app updates. A difference between two verifiers' lists can only change whether a later pin change is accepted automatically; it never changes the result of a first contact.
10. Pinning
10.1 The pin record
A server keeps one pin per queried domain it has successfully resolved (D-030):
| Field | Meaning |
|---|---|
domain |
The queried domain. |
state |
pinned or suspended. |
canonicalDomain |
The canonical domain accepted for domain. |
baseUrl |
The normalized base URL accepted for domain. |
secure |
The ServerMetadata secure value accepted for domain. Once true, it stays true (D-073). |
evidence |
The evidence of the resolution that created or last changed the pin. |
keys |
Every key of the accepted metadata with status next, active or retired, including its public key: x, thumbprint, kid, purpose, status, nbf, exp and, for a retired key, retiredAt. Verifiers check signatures with these stored keys (§11.6). |
revoked |
Thumbprints of every key ever seen with status revoked for this server. Never shrinks. |
chainHead |
n and the SHA-256 of one KeyRotation of the server's keyChain (§12.2), or none. Set at creation and updated as §10.2 says. |
firstSeenAt, changedAt, lastVerifiedAt |
Timestamps. |
observed |
Only while suspended: the rejected candidate (base URL, canonical domain, secure flag, evidence, keys and the last element of its keyChain) and the reason. |
Creating a pin. At first contact the pin is created from the result: its canonical domain, base URL, secure flag, evidence and keys, and chainHead := n and SHA-256 of the last element of the metadata's keyChain, or none if it is empty. Like everything else at first contact, the chain head is trusted on first use.
Pins for all the domains of one server (its canonical domain and aliases) are separate records, but share key information: accepting new keys for one of them updates the key fields and chainHead of every pin with the same canonicalDomain and baseUrl.
Pins are not a cache. They don't expire with TTLs. A server MAY delete a pin that hasn't been verified for 400 days; the next contact is then a first use.
10.2 Change rules
When a resolution of D succeeds (§5.2 steps 1–9) and a pin P exists, the server compares the candidate R with P. Let H be the host of R.baseUrl. R is strong when R.evidence is dnssec or wellknown, or when it is same-site and H equals D, is a subdomain of D, or equals the host of P.baseUrl. Every other candidate is weak, including same-site between sibling hosts such as cs.uni.edu and evil.uni.edu (§9.2). Continuity comes from chainAccepts(P, R.metadata, R.baseUrl) (§12.3), which returns the set of key-holder-vouched thumbprints T, the flag urlBound and the chain status.
Difference between R and P |
Accepted when |
|---|---|
| None | Always. |
Keys that have disappeared from R's keys |
Always. They are removed from P.keys (a revoked one's thumbprint stays in P.revoked). A key that reappears later is a new key. |
Status changes among next, active and retired of a known key, or changes of its nbf, exp or retiredAt |
Always; the pin takes the new values. The other rows still apply to the same candidate, so this never makes a weak base-URL change acceptable. |
A known key is now revoked |
Always. Its thumbprint is added to P.revoked and the key is removed from P.keys. |
A key in P.revoked appears with any status other than revoked |
Never (reason: key_unrevoked). |
P.secure is true and R.secure is false |
Never (reason: secure_downgrade, D-073). A change from false to true is always accepted. |
A known thumbprint with a different kid or purpose |
R is strong. Otherwise reason: keys_changed. |
New keys (thumbprints not in P.keys) with status next, active or retired |
Every new key is in T with the same kid and purpose (§12.3), or R is strong. Otherwise reason: keys_changed. |
R.baseUrl ≠ P.baseUrl |
urlBound is true for B = R.baseUrl (§12.3), or R is strong. The key rules above apply as well. Otherwise reason: base_url_changed. |
R.canonicalDomain ≠ P.canonicalDomain, and P.canonicalDomain = D |
Never (reason: canonical_changed, D-032). |
R.canonicalDomain ≠ P.canonicalDomain, and P.canonicalDomain ≠ D (an alias moved) |
R is strong. Otherwise reason: canonical_changed. |
R.keyChain has an element with n = P.chainHead.n whose SHA-256 differs from P.chainHead (a fork, §12.3) |
Never unless R is strong (reason: chain_fork). |
If every difference is accepted, the pin is updated (changedAt, new evidence) and the change is logged with old and new values. If any difference is rejected, the pin is kept unchanged and the domain is suspended (§10.3), with one exception: when the candidate was fetched from the pinned base URL or is strong, keys it lists as revoked are still moved from P.keys to P.revoked, so a suspended pin never keeps trusting a key its own server has revoked. (A revocation in a weak candidate from another base URL isn't applied, because a DNS spoofer could otherwise revoke a server's keys at every peer.) When several differences are rejected, reason is the first that applies in this order: key_unrevoked, secure_downgrade, canonical_changed, chain_fork, chain_rollback, base_url_changed, keys_changed. chain_rollback replaces base_url_changed and keys_changed when §12.3 reported a rollback (a keyChain that stops before P.chainHead), so that the admin sees the likely cause.
Updating chainHead. After an accepted change:
- if any difference was accepted only because
Ris strong,chainHead:= the last element ofR.keyChain, or none, as at first contact: strong evidence vouches for the whole metadata; - otherwise, if §12.3 accepted elements in this run,
chainHead:= the accepted element with the highestn. It never decreases.
Once a server has accepted secure: true for a peer, it keeps using true for every decision that depends on that flag, including 12's DM hosting rule, also while the pin is suspended with reason: secure_downgrade. It MUST NOT act on a downgraded value.
A first contact (no pin) is always accepted, at any evidence level, including cross-site dns-only (D-074).
Proposed decision PD-02-6: a base-URL change with weak evidence is accepted only through a URL-bound KeyRotation (the KeyRotation url claim, §12.1), never because the new location publishes the same public keys. Rationale: public keys can be copied into anyone's metadata; only a signature by a pinned key proves that the key holder authorised the new location. Without this, a DNS attacker could redirect S2S deliveries (DM requests, insecure notification previews) to a server that merely republishes the victim's public keys.
Proposed decision PD-02-13 (adopted as D-081): same-site evidence justifies a pin change only when the new base-URL host is the queried domain, a subdomain of it, or the pinned host; a change between sibling hosts of one registrable domain needs dnssec, wellknown or continuity. The recorded evidence level is unchanged (00 HP-7). Rationale: a registrable domain is often shared by parties that don't trust each other (departments, teams, hosting tenants). A subdomain of D is under D's owner's control, and the pinned host is already trusted.
Proposed decision PD-02-14: servers pin the secure flag of every peer and never accept true → false (secure_downgrade). Rationale: D-073 says a secure server never goes back; 12's DM hosting rule depends on the flag, so a spoofed or buggy downgrade could otherwise put an insecure DM on a secure server (SM-10).
10.3 State machine
| State | Event | Action | Next state |
|---|---|---|---|
| (none) | Resolution succeeds | Create the pin from the result (§10.1). | pinned |
pinned |
Resolution succeeds; no difference, or every difference accepted | Update the pin and lastVerifiedAt. |
pinned |
pinned |
Resolution succeeds; a difference is rejected | Keep the pin. Store observed and reason. Emit discovery.peer_suspended (§16.2). Apply §10.4. |
suspended |
pinned, suspended |
Resolution fails (any error) | Nothing changes in the pin. Caching rules apply (§13). | unchanged |
suspended |
Re-check: the result matches the pin again | Clear observed. Emit discovery.peer_resumed with how: "auto". |
pinned |
suspended |
Re-check: the difference is now accepted (for example strong evidence or a URL-bound rotation appeared) | Update the pin. Emit discovery.peer_resumed with how: "evidence". |
pinned |
suspended |
An admin accepts the observed result (§10.5) | Replace the pin with the observed result (evidence as observed; chainHead from the observed keyChain, as at first contact). Emit discovery.peer_resumed with how: "admin". |
pinned |
| any | An admin deletes the pin (§10.5) | Remove the pin. The next resolution is a first use. | (none) |
While suspended, the server re-checks D (§5.2 step 2: every cache bypassed, no suspended short-circuit) every 15 minutes, and also when it receives an S2S request whose iss is that server's canonical domain (at most once per 60 s per domain).
10.4 Behaviour while suspended
While a domain is suspended, its server is treated as temporarily unreachable:
- The server MUST NOT send S2S requests or deliver events to that domain's server, at the pinned base URL or the observed one. Outgoing events stay queued under the retry rules of 06 (they are retried for up to 24 h, then dropped as 06 specifies).
- Inbound S2S requests whose
issis that server's canonical domain are verified with the keys stored in the pin only (§11.6 step 2). 06 §13.4 says how they are handled: those that verify are accepted, and the rest are refused withdiscovery.peer_suspended. Nothing signed by a key that isn't in the pin is accepted. - Local users' operations that need that server fail with
discovery.peer_suspended(503,userAction: wait), and/v1/resolvereturns the same error. Clients show the server as temporarily unreachable and retry; they show no security warning (§5.7). - Remote sessions of that server's users on this server follow 06 §13.4: creation and renewal work only with assertions that verify under keys in the pin.
Rationale: holding all outgoing traffic, and accepting incoming traffic only under pinned keys, is the safe default when the server can't tell an attack from a migration. The admin alert (§10.5) lets a person decide quickly, and operators avoid the situation entirely by using a hostname under their own domain or a .well-known document (§15).
10.5 Admin interface
Proposed decision PD-02-7: pins are managed through /v1/resolve/pins…, under this document's /v1/resolve path (00 §7.3). Rationale: generic clients need an interoperable way for an admin to see and resolve a suspension; the endpoints belong with the resolver that owns the pins.
Every endpoint below requires a home session of a local account that holds the admin system role (10 §4.2). Otherwise 403 core.forbidden with data.missingRole: "admin" (10 §6.3). The {domain} path segment is a lowercase A-label.
| Method and path | Purpose | Success and errors |
|---|---|---|
GET {base}/v1/resolve/pins?state=<pinned|suspended>&cursor=<c>&limit=<n> |
List pins, optionally by state, with cursor pagination (00 §7.10; limit 1–100, default 50). |
200 {"items": [PeerPin…], "nextCursor": …} |
GET {base}/v1/resolve/pins/{domain} |
Read one pin. | 200 PeerPin; 404 core.not_found |
POST {base}/v1/resolve/pins/{domain}/accept |
Accept the observed result of a suspended pin. Body: {"baseUrl": …, "canonicalDomain": …, "keyThumbprints": [ … ]}, which MUST equal the observed values (compare-and-set, so the admin accepts exactly what they reviewed). Acceptance is allowed for every reason except key_unrevoked and secure_downgrade; for those the admin can only wait or forget the pin. |
200 PeerPin; 404 core.not_found if there is no pin; 409 core.conflict if the pin isn't suspended, the body doesn't match, or the reason can't be accepted (data.reason names it) |
DELETE {base}/v1/resolve/pins/{domain} |
Forget a pin. | 204; 404 core.not_found if there is no pin |
PeerPin (the wire form of §10.1):
| Member | Type | Required | Meaning |
|---|---|---|---|
domain |
string | Yes | The queried domain. |
state |
string | Yes | pinned or suspended. Unknown values: treat as suspended. |
canonicalDomain |
string | Yes | Pinned canonical domain. |
baseUrl |
string | Yes | Pinned base URL. |
secure |
boolean | Yes | Pinned secure flag. |
evidence |
string | Yes | Evidence when the pin was created or last changed. Unknown values: treat as dns-only. |
keys |
array of object | Yes | {kid, thumbprint, purpose, status} for each pinned key. Unknown purpose or status values: show as unknown. |
revoked |
array of string | Yes | Revoked thumbprints. |
firstSeenAt, changedAt, lastVerifiedAt |
string | Yes | RFC 3339 timestamps. |
suspendedAt |
string | When suspended | RFC 3339 timestamp. |
reason |
string | When suspended | base_url_changed, keys_changed, canonical_changed, key_unrevoked, secure_downgrade, chain_fork or chain_rollback. Unknown values: show as a generic conflict. |
observed |
object | When suspended | {baseUrl, canonicalDomain, secure, evidence, keys: [{kid, thumbprint, purpose, status}], observedAt}, with the same unknown-value rules. |
{
"domain": "bobsclub.org",
"state": "suspended",
"canonicalDomain": "bobsclub.org",
"baseUrl": "https://tenant8f2.voicehost.net/s",
"secure": false,
"evidence": "dns-only",
"keys": [ { "kid": "bobsclub.org#k1", "thumbprint": "Pw3m1xYv8qLr0Tz5bN2cK7dH4sJ9fA6gE1uW3oR8iXk",
"purpose": "sign", "status": "active" } ],
"revoked": [],
"firstSeenAt": "2026-06-01T10:00:00.000Z",
"changedAt": "2026-06-01T10:00:00.000Z",
"lastVerifiedAt": "2026-12-04T08:45:12.004Z",
"suspendedAt": "2026-12-04T09:00:13.551Z",
"reason": "base_url_changed",
"observed": {
"baseUrl": "https://203-0-113-7.cheap-hosting.example/sv",
"canonicalDomain": "bobsclub.org",
"secure": false,
"evidence": "dns-only",
"keys": [ { "kid": "bobsclub.org#k1", "thumbprint": "Pw3m1xYv8qLr0Tz5bN2cK7dH4sJ9fA6gE1uW3oR8iXk",
"purpose": "sign", "status": "active" } ],
"observedAt": "2026-12-04T09:00:13.551Z"
}
}Admin user experience (copy in 20, ST.admin_peer_suspended): the admin is told that federation with the domain stopped because its address changed in a way that couldn't be verified, and is advised to accept the new address only after the peer's operator confirms the move directly. The admin view shows the old and new base URLs and evidence levels.
10.6 Client-side pinning
- Pins. A client MUST keep a pin (§10.1, without
observed) for every server where it holds a session token (home, remote or bot), and SHOULD keep one for every server whose keys it uses to verify IdentityStates for DM validation (07). It applies §10.2 to them. A client MUST NOT use keys that fail §10.2 to accept an IdentityState for DM validation. - Token binding (MUST). A client sends a session token only to the normalized base URL at which it obtained that token. If a later resolution of that server's domain yields a different base URL, the client sends the existing token to the new base URL only if its own pin accepts the change under §10.2 (strong evidence, or a URL-bound KeyRotation, §15.6). Otherwise it MUST NOT send the token there. This is how 02 refines 03 §3.2 rule 3.
- On a rejected change the client keeps its pin, treats that server as temporarily unreachable, retries on the schedule of §13.3, records a diagnostic and reports it to its home server through
/v1/diagnosticswith report kindpin_conflict(15 §14.4), whosedatais{"domain": <the domain>, "reason": <the §10.3 reason the change would have caused>}. It shows no security warning (§5.7). - Recovery for other servers. A client replaces its pin for a server other than its home server with the new values when its home server's
GET /v1/resolve(§6), which reflects the home server's own pin including admin acceptance, returns the new base URL and canonical domain withstale: false, and the client's own fetch of/metaat that base URL validates (§7.4) with the same canonical domain. It then discards any remote-session token it held for the old base URL and obtains a new remote session silently (06). - Home server. A rejected change for the client's own home server has no automatic recovery. The client shows only the "temporarily unreachable" state with automatic retry, and offers no sign-in prompt because of it. If the person signs out and signs in again on their own initiative, the client treats the domain as a first contact. If the device holds an identity key for the account, the client MUST then check, before starting any account upgrade, reset, pairing or KeyBackup upload (07, 08), that the account's IdentityState is secure and names that identity key (
igenandikf). If it doesn't, the client stops and says it can't reach the person's server, and starts none of those flows. It still raises W4a when 07 §18.1 requires (D-071), but while this condition holds it MUST NOT delete its old identity key, DSK, box key or vault keys (08 §11.4), and W4a's set-up action leads to the same 'can't reach the server' state. - Web clients keep pins in origin storage. If storage is cleared, the next contact is a first use; the home server's pins (through
/v1/resolve) still protect the delegation step.
Proposed decision PD-02-8: session tokens are bound to the base URL where they were issued, and move to a new base URL only when the client's own pin accepts the change. Rationale: a DNS attacker who redirects a domain must not receive the tokens of users who already signed in. The rule costs nothing in normal operation, and a move made as §15.6 describes keeps users signed in.
Proposed decision PD-02-18: clients recover a rejected pin of another server through their home server's /v1/resolve, and never prompt a sign-in because of a rejected home-server change; a sign-in the person starts after such a change can't trigger an upgrade, reset, pairing, backup upload or key deletion unless the IdentityState names the identity key the device holds. Rationale: a client has no admin to accept a change, so it borrows its home server's decision. For the home server itself, offering "Sign in again" would walk people into signing in to whatever server the unverified delegation names, and steer secure accounts towards a reset.
11. Server keys
11.1 ServerKey: the JWK profile
Each element of ServerMetadata keys is a ServerKey: an Ed25519 public key as a JWK (RFC 7517, RFC 8037) with these members.
| Member | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
kty |
string | Yes | Key type. | "OKP". |
crv |
string | Yes | Curve. | "Ed25519". |
x |
string | Yes | Public key. | base64url of exactly 32 octets, canonically encoded and not of small order (04). |
kid |
string | Yes | Key ID used in JWS headers. | server-kid (§11.2). Unique within keys. |
purpose |
string | Yes | What the key may sign (§11.3). | sign or mls-external-sender. A key with an unknown value is ignored. |
status |
string | Yes | Lifecycle state (§11.4). | next, active, retired or revoked. A key with an unknown value is ignored. |
nbf |
integer | Yes | NumericDate from which the key may sign. | |
exp |
integer | Yes | NumericDate after which nothing signed by the key is accepted. The only exception is the continuity check of §12.3, which verifies KeyRotations already in keyChain whatever the signer's exp. |
nbf < exp ≤ nbf + 63,158,400 (731 days). |
retiredAt |
integer | When status is retired |
NumericDate when the key stopped being active. A verifier accepts a JWS signed by a retired sign key only if its iat is at most retiredAt + 60 s (§11.6). |
nbf ≤ retiredAt < exp. |
rvt |
integer | When status is revoked |
NumericDate of the earliest moment the key may have been compromised, or the revocation time if that is unknown. Used to decide which already-verified objects a verifier may keep (§11.7). | |
alg |
string | No | JWS algorithm. | If present, "EdDSA". |
- A ServerKey MUST NOT contain the private member
d. A consumer that findsdin any key MUST treat the metadata as invalid (discovery.metadata_invalid,reason: private_key_published) and SHOULD tell its own admin, because that server's key is exposed. - Consumers ignore
use,key_ops,x5c,x5t,x5uandjku, and MUST NOT fetch anything they point to (00 §7.13). - Keys are identified by thumbprint (RFC 7638 over
crv,kty,x). Akidis only a lookup hint.
Proposed decision PD-02-5: the time members of a ServerKey are NumericDate integers named nbf, exp, retiredAt and rvt, as in JOSE, rather than RFC 3339 strings. Rationale: 00 HP-7 names them nbf and exp, which are NumericDate in every JOSE context, and verifiers compare them directly with JWS iat values.
11.2 Key ID grammar
server-kid = kid-domain "#" key-id
kid-domain = 1*253( %x61-7A / DIGIT / "-" / "." ) ; the canonical domain, lowercase A-label
key-id = 1*32( ALPHA / DIGIT / "." / "_" / "-" )kid-domainMUST equal the server'scanonicalDomainexactly (00 §7.6). It is always lowercase.key-idis compared octet by octet, so it is case-sensitive.- A server MUST NOT reuse a
key-idfor a different public key, ever. A verifier that sees akidit has pinned bound to a different thumbprint treats the key as new (§10.2). - Recommended
key-idstyle: the month of first use plus a letter, for example2026-11a, and a prefix for other purposes, for examplemls-2026-12a.
11.3 Purposes
| Purpose | Signs | Count |
|---|---|---|
sign |
Every JWS a server signs: HomeAssertion, S2S request token (06), IdentityState (07), RelayTicket (15), push gateway request token (sv-push+jwt, 19), KeyRotation (§12). |
Exactly one active at a time; at most one next. |
mls-external-sender |
MLS messages the hosting server sends as the group's external sender, such as Remove proposals (13). It never signs a JWS. The raw 32-octet x value is the signature_key in the external_senders extension (13). |
Exactly one active at a time; at most one next. |
The same public key MUST NOT be published with two purposes, and MUST NOT be used by two servers (§14). Every server publishes both purposes (§11.5), because every server supports secure mode (D-066).
mls-external-sender keys follow 13. An MLS message carries no kid and no iat; MLS members check the external sender against their own GroupContext and cross-check it with the hosting server's ServerMetadata as 13 §6.2 specifies. The rules of this document that apply to JWS signing and verification (the signer rule of §11.4, serverKey() in §11.6, and the iat bound of retiredAt) therefore apply to sign keys only. For mls-external-sender keys this document fixes publication: purpose, statuses, the 25 h pre-publication, the 7-day retention of a retired key and revocation. 13 says how groups switch to a new key, and when a retired, expired or revoked external-sender key may still sign or be accepted (13 §6.2 items 2 and 5).
Rationale: keeping the MLS key apart from the JWS key means that a bug in one signing path can't produce something valid in the other, and the MLS key can be rotated on the schedule that suits group updates.
11.4 Lifecycle and timings
publish (nbf >= now + 25 h) at or after nbf exp >= retirement + 7 days
(new) ──────────────────────────────> next ─────────────────> active ─────────────> retired ──────> (removed after exp)
\ | |
\______________________|_____________________|______> revoked (rvt)| Transition | Rule |
|---|---|
(new) → next |
The key is published with status: "next" and nbf at least 25 h after the moment it first appears in /meta (D-030). Its KeyRotation (§12) MUST be in keyChain from that same moment. |
next → active |
At or after nbf, when the server starts signing with it. At that moment the previous active key of the same purpose becomes retired. A next key MAY stay next after its nbf (for example as a standby, §11.7). |
active → retired |
As above. The signer stops using the key, and retiredAt is set. The retired key's exp MUST be at least 7 days after retirement (D-030). |
retired → removed |
After exp. Servers SHOULD remove expired keys within 30 days. |
any → revoked |
When the private key is compromised or lost (§11.7). rvt is set. A revoked key stays listed for at least 30 days. A revoked key never returns to any other status. |
Server duties:
- A server MUST sign a JWS only with its
activesignkey, and only between itsnbfandexp. (Anmls-external-senderkey signs MLS messages as 13 §6.2 says, which includes signing for a group that hasn't yet committed a rotation.) - A server MUST publish the successor of an
activekey early enough that the active key'sexpis at least 7 days after the successor'snbf; in practice, start a rotation no later than 8 days and 1 hour beforeexp. Servers SHOULD rotate each active key at least every 365 days. - The 25 h rule may be broken only for an emergency rotation after a compromise (§11.7).
Rationale for 25 h: metadata may be cached for at most 24 h (§13), so after 25 h every verifier that follows the caching rules has seen the new key before it is used, plus one hour of margin. The unknown-kid refetch (§11.6) covers anyone who has not. For 7 days: the longest-lived non-permanent object signed by a server key is an IdentityState (24 h); 7 days leaves room for verifiers that hold such objects, or were offline, to fetch replacements. Objects signed after retirement are never needed, because each S2S request is signed afresh (06); hence the retiredAt bound (§11.6).
Example rotation timeline (the scenario of §20.5):
| Time (UTC) | Event | keys after the event |
|---|---|---|
| 2026-01-05 00:00 | Server starts with 2026-01a (sign) and mls-2026-01a. |
2026-01a active, mls-2026-01a active |
| 2026-11-28 22:00 | KeyRotation n = 1 (signed by 2026-01a) announces 2026-11a with nbf 2026-11-30 00:00 (26 h later). |
+ 2026-11a next |
| 2026-11-30 00:00 | 2026-11a becomes active; 2026-01a retires with retiredAt 2026-11-30 00:00 and exp 2026-12-07 00:00. |
2026-01a retired, 2026-11a active |
| 2026-12-04 09:00 | KeyRotation n = 2 (signed by 2026-11a) announces mls-2026-12a with nbf 2026-12-05 12:00 (27 h later). |
+ mls-2026-12a next |
| 2026-12-05 12:00 | mls-2026-12a becomes active; mls-2026-01a retires (13 updates groups). |
… |
| 2026-12-07 00:00 | 2026-01a expires and may be removed. |
… |
11.5 Rules for the key set in metadata
A ServerMetadata keys array is valid only if:
- it has 1–16 elements, each a valid ServerKey (§11.1) (ignored elements, §11.1, don't count);
- no two elements share a
kidor a thumbprint; - every
kidhaskid-domainequal tocanonicalDomain; - there is exactly one
activekey with purposesignand exactly one with purposemls-external-sender, and at most onenextkey of each purpose; - every
activekey hasnbf ≤ now + 60 sandexp > now, by the consumer's clock; - every
retiredkey hasretiredAt, and everyrevokedkey hasrvt.
A failure is discovery.metadata_invalid with reason: invalid_keys.
11.6 Looking up a key to verify a signature
Every verifier of a JWS signed by a server (06, 07, 15, 19) obtains the key with serverKey(iss, kid, purpose, iat), where purpose is sign. KeyRotations are verified by §12.3 instead, and MLS messages from the external sender by 13 §6.2.
- Parse
kid(§11.2). Itskid-domainMUST equaliss; otherwise fail withdiscovery.unknown_key. - Resolve
iss(§5.2, cache allowed).issMUST equal the result'scanonicalDomain; a signed object that names an alias fails withaddress.non_canonical(01, D-032). Exception: a server whose pin forississuspendeddoesn't resolve. It uses the keys stored in the pin (§10.4) and skips the refetch of step 4, so a key that isn't in the pin fails withdiscovery.peer_suspended. - Look up
kidamong the verifier's keys foriss: the keys stored in its pin (§10.1) when it keeps one, which after every accepted change are exactly the keys of the accepted metadata; otherwise the keys of its validated cached metadata. - Unknown
kid. If no key has thatkid, and the verifier hasn't refetchediss's metadata in the last 60 s, it re-checksiss(§5.2 step 2:/metarefetched withCache-Control: no-cache, validation and §10.2 re-run), then looks again. A verifier MUST NOT refetch the same domain's metadata more than once per 60 s for this reason, whatever the number of unknownkids it meets (D-030). If the re-check suspends the domain, fail withdiscovery.peer_suspended. If the key is still unknown, fail withdiscovery.unknown_key. - Usability. The key is usable only if all hold, with ±60 s skew (00 §7.7): its
purposeequalspurpose; itsstatusisnext,activeorretired; its thumbprint isn't in the pin'srevokedset;now ≤ exp;iat ≥ nbf; for anextkey,now ≥ nbf; for aretiredkey,iat ≤ retiredAt; and, if the verifier is using a stale result foriss(§13.2) that expired more than 24 h ago,iatis before that expiry. Otherwise fail withdiscovery.key_unusable(withdata.reason:wrong_purpose,revoked,expired,not_yet_validorstale). - Return the key. The caller then verifies the JWS per 04 (strict Ed25519) and the claims per their owner.
serverKey() reports its failures as discovery.unknown_key and discovery.key_unusable. The code returned on the wire is chosen by the owner of the JWS type (04 §6.8, 'Which code applies'): 06 and 19 map them to their own codes with data.reason key_unknown and key_status. Where a type's owner names no code of its own, the verifier returns the discovery.* code, not crypto.unknown_key. When the JWS is the request's credential, the HTTP status is 401 (04 §6.9).
Rationale for the retiredAt bound: only objects signed before retirement need to stay verifiable during the 7 days (for example IdentityStates); every S2S request token is signed afresh for each attempt (06). The bound stops a retired key that leaks during those 7 days from minting new HomeAssertions or S2S tokens.
Proposed decision PD-02-16: a retired sign key verifies only JWSs whose iat is at most its retiredAt; a stale key set verifies newly signed objects for at most 24 h after its expiry (§13.2); and rvt decides which already-verified objects a verifier may keep after a revocation (§11.7). Rationale: bounds what a leaked retired or revoked key can do, without affecting objects that honest servers signed before the event.
Rationale for accepting a next key after its nbf: a verifier whose cached copy is up to 24 h old still lists the new key as next when the server starts using it.
11.7 Compromise and loss
When a private server key is compromised or lost, the server:
- lists it as
revokedwithrvt; - if it was the active key of its purpose, makes another key of that purpose
activeat once (the 25 h rule is waived): the standby key if there is one, otherwise a new key. A newmls-external-senderkey gets an ordinary KeyRotation signed by the activesignkey. A newsignkey that replaces a revokedsignkey has no KeyRotation, because a revoked key can't vouch for its successor (§12.3); - sends
discovery.metadata_changedwithurgent: trueto its peers within 10 s and to its connected clients (§16.1); - alerts its admin with what peers will do: peers that pinned the server under weak evidence will suspend federation until their admins accept the new key or the server gains strong evidence (§10.2).
Verifiers that learn a sign key is revoked MUST stop accepting anything newly presented that is signed by it, whatever its iat, because a thief can backdate iat. For objects they verified and kept earlier (for example cached IdentityStates, 07), rvt decides: an object the verifier itself received and verified before rvt − 60 s, by its own clock, MAY be kept until its own expiry; an IdentityState kept this way also remains 07's ver baseline after it expires (07 §7.5); every other object signed by the key MUST be discarded and fetched again. For a revoked mls-external-sender key, 13 §6.2 item 2 defines the one case in which it is still accepted (the proposal that replaces it in a group).
Standby key. A server MAY keep a second sign key published as next at all times, with its private key stored apart from the active key (for example offline). Peers pin it like any key. If the active key is compromised, the server activates the standby, and peers accept the change without any evidence check because the key is already pinned. Because a purpose has at most one next key, a server with a standby rotates routinely by activating the standby and publishing a new standby at the same moment, with a KeyRotation signed by the newly active key.
Proposed decision PD-02-9: a revoked key never extends trust: KeyRotations it signed are skipped by the continuity check, and recovery from a compromise relies on an already-pinned standby key, strong evidence or an admin decision. Rationale: whoever stole the key can sign backdated rotations, so no rotation signed by it can be told apart from a forgery.
12. KeyRotation and keyChain
12.1 The KeyRotation JWS
A KeyRotation is a JWS (04, 00 §7.13) in which a server's sign key vouches for a new key of the same server.
Header:
| Member | Value |
|---|---|
alg |
"EdDSA" |
typ |
"sv-keyrot+jwt" |
kid |
The kid of the signing key. |
Claims:
| Claim | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
iss |
string | Yes | The server's canonical domain. | Equals canonicalDomain. |
n |
integer | Yes | Position of this rotation in the server's chain. | 1 for the first rotation, then +1 per rotation. |
iat |
integer | Yes | NumericDate when it was signed. | |
prev |
string | Yes | Thumbprint of the signing key. | Equals the thumbprint of the key named by the header kid. |
key |
object | Yes | The new key: exactly kty, crv, x, kid and purpose, as in §11.1. Status and times live in keys, not here. |
key.kid's domain equals iss; its thumbprint differs from prev. |
url |
string | Yes | The base URL the server authorises from this rotation on: its current base URL, or the new one during a move (§15.6). | A normalized base URL (§3.3). Once a KeyRotation names a new base URL, every later KeyRotation, of any purpose, MUST name the same URL until the server moves again. |
There is no exp: a KeyRotation is permanent (00 §7.13). A server MUST NOT issue a compact KeyRotation longer than 2,048 octets. This is also the type's maximum size in 04's registry, which verifiers enforce (04 §6.3, §6.8 step 1).
Signing rules:
- Every KeyRotation is signed by the server's active
signkey at the time of signing (§11.4). A newsignkey is therefore vouched for by the previous activesignkey (D-030), and a newmls-external-senderkey by the current activesignkey.signkeys are the root of continuity; MLS keys never sign rotations. - Every new key except a server's initial keys and emergency replacements of a revoked
signkey (§11.7) MUST have a KeyRotation. - Moving to a new base URL: the server rotates its
signkey as part of the move and signs that KeyRotation withurlset to the new base URL, before DNS points at it (§15.6). This URL-bound rotation is what lets peers with weak evidence follow the move (§10.2). Because verifiers use only theurlof the highest element ofkeyChain(§12.3), every rotation issued after it names the new URL too.
Proposed decision PD-02-10: a KeyRotation carries the base URL (url), and mls-external-sender keys are vouched for by the active sign key. Rationale: the url claim gives a signed, key-holder-authorised path for server moves (PD-02-6); routing MLS keys through sign keys gives one continuity root instead of two.
12.2 keyChain rules
keyChainis an array of compact KeyRotation JWSs, ordered bynascending, eachnexactly one more than the previous element's.- It MUST contain every KeyRotation issued in the last 400 days and at least the 16 most recent ones (or all, if fewer). It MAY drop older elements from the front. It has at most 64 elements.
- A server MUST NOT issue two different KeyRotations with the same
n. - A verifier records one element as the pin's
chainHead(nand SHA-256 of the compact JWS, §10.1, §10.2). A laterkeyChainwith a different element at thatnis a fork (reason: chain_fork); one that ends before thatnis a rollback (§12.3). - The size limit of
/meta(§7.1) also boundskeyChain: a server drops the oldest elements it is allowed to drop before it would exceed it.
Rationale for 400 days: a pin that has been verified at least once a year can always follow the chain. Older pins fall back to evidence, which operators who use a hostname under their own domain always have.
12.3 Continuity verification
chainAccepts(P, M, B), where P is the pin, M the candidate metadata and B the candidate base URL. It returns the set T of thumbprints that key holders vouch for (each with its kid and purpose), the flag urlBound, the accepted element with the highest n (if any) and a chain status: ok, fork, rollback or failed.
Revoked:=P.revoked∪ thumbprints of keys inM.keyswith statusrevoked.T:= the keys inP.keyswhose thumbprints aren't inRevoked, each with its thumbprint,kidandpurpose.urlBound:= false.h:=P.chainHead.n, or 0 if the pin has no chain head.- Shape. If
M.keyChainbreaks the ordering rules of §12.2, returnTwith statusfailed. - Fork and rollback. If the pin has a chain head:
- if
M.keyChainhas an element withn = hwhose SHA-256 differs fromP.chainHead, returnTwith statusfork; - if
M.keyChainis empty or its highestnis lower thanh, returnTwith statusrollback.
- if
- Eligible signers.
S:= the keys inTwith purposesignwhose status inPisnextoractive, whatever theirexp(a pin that hasn't been checked for months still knows its server's last active key as active, §11.1). Keys thatPholds asretired, and keys that have been removed fromP, can't vouch for anything new. - For each element
EofM.keyChainwithn > h, in order:- Let
sbe the key inSwhosekidequalsE's headerkidand whose thumbprint equalsE.prev. If there is none, skipEand every later element: the chain must be unbroken. (Skipped elements predate the pin, or are signed by a key the verifier doesn't trust for new elements.) - Verify
Ewithsper 04 (strict Ed25519 over the JWS signing input). If verification fails, stop: returnTas built so far with statusfailed. - Check:
E.issequalsP.canonicalDomainandM.canonicalDomain;E.keyhas exactly the memberskty,crv,x,kidandpurpose, each meeting its constraint in §11.1, and itskiddomain equalsE.iss; its thumbprint isn't inRevoked;E.iat ≤ now + 60 s. If any check fails, stop as in step 6.2. - Add
E.key's thumbprint,kidandpurposetoT. If its purpose issign, add it toStoo.Eis now the highest accepted element.
- Let
- URL binding. Let
Lbe the element ofM.keyChainwith the highestn.urlBound:= true ifL.urlequalsBand eitherLwas accepted in step 6, orLis the pin's chain head (L.n = hand its SHA-256 equalsP.chainHead). ReturnT,urlBound, the highest accepted element and statusok.
The key rules of §10.2 hold by continuity when every key in M.keys with status next, active or retired is in T with the same kid and purpose. The base-URL rule holds by continuity when urlBound is true. With status fork, rollback or failed, urlBound is false and T holds nothing beyond the pinned keys and, for failed, the elements accepted before the failure.
Notes:
- A rotation signed by a key that is now revoked is skipped in step 6.1, because revoked keys are left out of
Tand therefore ofS(PD-02-9). - A key that the pin holds as retired, or that has been removed, can't start a new element (step 5), so a key that leaks after the verifier has seen it retire can't extend the chain.
- A rotation whose header
kidcollides with a trusted key'skidbut whoseprevnames another key is skipped; one whoseprevmatches but whose signature doesn't verify fails the chain (§20.5 vectors V5–V7). - Only the
urlof the highest element counts, and a chain that ends before the pinned head is a rollback. A server that once used base URLYand later moved away therefore can't be impersonated atYby someone who replays its old rotations or serves a truncated chain (§20.5 vector V10). - The algorithm is linear in the chain length and needs at most 64 signature checks.
Proposed decision PD-02-15: continuity is checked from the pinned chain head forwards only: a keyChain that ends before the pinned head is a rollback, new elements must form an unbroken run signed by a pinned next or active sign key (or a key vouched for earlier in the same run), and only the highest element's url binds a base URL. Rationale: without these rules, an attacker who controls DNS and an old host could serve a truncated chain to move a server back to an old base URL, and a long-retired key that leaked could mint new rotations.
13. Caching
13.1 Freshness
| Item | Cache key | Freshness lifetime |
|---|---|---|
| Delegation from the discovery record | Queried domain | Smallest TTL in the answer (§3.5), clamped to [300 s, 86,400 s] |
Delegation from .well-known (W-a) |
Queried domain | max-age, else Expires, else 3,600 s, clamped to [300 s, 86,400 s] |
Delegation from .well-known after a DNS failure (W-b) |
Queried domain | At most 300 s |
| ServerMetadata | Normalized base URL | max-age, else Expires, else 3,600 s, clamped to [300 s, 86,400 s] |
.well-known agreement result (W-c) |
Queried domain | As the TXT delegation it was checked against |
| ResolveResult in a web client | Queried domain | Until its expiresAt |
A DiscoveryResult is fresh while both its delegation and its metadata are fresh. Each half is refreshed on its own. A refresh of the metadata uses If-None-Match when an ETag is known; a 304 renews the lifetime.
Rationale for the clamp: 300 s stops a zero TTL from turning every request into a lookup; 24 h bounds how long a stale delegation or key set can survive, and it is the basis of the 25 h key pre-publication rule (§11.4).
13.2 Stale use while unreachable
When a refresh fails with a temporary failure (discovery.dns_failure, discovery.server_unreachable, a timeout, a 5xx or 429 on /meta, or an unavailable .well-known document, §4.2), the expired result MAY still be used, with stale: true, for up to 7 days after it expired. During that time the consumer retries the refresh with backoff (§13.3). After 7 days the result is discarded and the domain fails with the temporary error.
A stale key set verifies objects whose iat is before the result expired for the whole 7 days, but objects signed later (new HomeAssertions, S2S request tokens, IdentityStates) only during the first 24 h of stale use (§11.6 step 5). This bounds how long an attacker who has stolen a key and blocks a verifier's access to /meta can keep using it after revocation.
A definitive failure (discovery.not_found, discovery.record_invalid, discovery.delegation_conflict, discovery.metadata_invalid, discovery.domain_not_served, discovery.canonical_mismatch, discovery.forbidden_target, discovery.version_unsupported, core.unsupported_version) discards the cached result at once and creates a negative entry. Pins are not affected (§10.3): if the domain later resolves to the pinned values again, nothing has changed; if it resolves to new values, §10.2 applies.
Rationale: an unreachable server can't have published anything new, so its last known state is the best information available; stale use keeps signatures verifiable (for example inbound S2S requests from a server that can reach us but that we can't reach). A definitive answer is new information and must win.
13.3 Negative caching
| Outcome | Negative entry lifetime |
|---|---|
discovery.not_found |
The negative TTL of the DNS answer (SOA minimum, RFC 2308), clamped to [60 s, 900 s]; 300 s if unknown |
discovery.invalid_domain |
Not cached (the input is checked locally) |
| Other definitive failures | 300 s |
| Temporary failures | 30 s after the first failure, doubling on each consecutive failure up to 300 s |
A user's explicit "Try again" MAY bypass a negative entry, at most once per 10 s per domain.
13.4 Invalidation
A consumer refreshes before expiry when:
| Trigger | Refresh | Limit |
|---|---|---|
An unknown kid (§11.6) |
Metadata | Once per 60 s per domain (shared with the next row) |
A discovery.metadata_changed event from that server (§16.1) |
Metadata | Once per 60 s per domain; a refetch the limit holds back is deferred to the end of the 60 s window, never dropped |
A TLS failure or a connection refusal on that server's base URL; a 404 or 410 on its /meta; or a 404 or 410 on a /v1/… endpoint that doesn't carry an application/problem+json body with a registered code |
Delegation, then metadata | Once per 60 s per domain |
discovery.domain_not_served received from the server for a domain the consumer believed it served |
Delegation and metadata | Once per 60 s per domain |
A pin in state suspended |
Delegation and metadata | Every 15 min (§10.3) |
| An admin action or a local configuration change | Everything for that domain | None |
13.5 What is not cached
- Pins are durable records, not cache entries (§10.1).
- KeyRotations already verified don't need re-verification; a verifier MAY remember verified elements by hash.
/v1/resolveresponses in a server's own HTTP layer: the server answers from its resolver cache, not from an HTTP cache keyed by the request.
Every refetch that bypasses the consumer's cache (a re-check, §5.2 step 2; the triggers of §13.4; §11.6 step 4; §16.1) sends Cache-Control: no-cache, so that an intermediary cache revalidates instead of answering from its copy.
14. Several servers on one deployment
A deployment MAY run several servers (00 §3.4, D-003, R-04). For example, the owner's setup:
_sloppyv.sloppyvoice.com. 3600 IN TXT "v=sv1 url=https://chat.sloppyvoice.com/server"
_sloppyv.chat.sloppyvoice.com. 3600 IN TXT "v=sv1 url=https://chat.sloppyvoice.com/server"
_sloppyv.guild.sloppyvoice.com. 3600 IN TXT "v=sv1 url=https://chat.sloppyvoice.com/server2"sloppyvoice.com and chat.sloppyvoice.com reach the same server (canonical sloppyvoice.com, alias chat.sloppyvoice.com), so saxon@sloppyvoice.com and saxon@chat.sloppyvoice.com are the same account (D-002, R-03). guild.sloppyvoice.com is a different server with its own community (R-04).
Rules:
- Each server has its own base URL, ServerMetadata, canonical domain, domain list, keys, accounts and community. At protocol level the servers are unrelated.
- A domain MUST NOT appear in the
domainsof two servers of one deployment. - Servers MUST NOT share private keys, and the same public key MUST NOT appear in two servers' metadata.
- On one origin, no server's base-URL path may be a segment-wise prefix of another's (for example
/serverand/server/eucan't both be base URLs, but/serverand/server2can), so that{base}/metaand{base}/v1/…never overlap. - Each server's
/metalists only its own domains. A resolver that follows a spoofed or mistaken record to the wrong server on the deployment fails withdiscovery.domain_not_served, never reaching the wrong community. - A shared origin is fine for web clients: the protocol uses bearer tokens and no cookies (D-026), so servers on one origin can't read each other's sessions through the browser.
The metadata of https://chat.sloppyvoice.com/server2 starts like this (other members as in §7.5, with its own keys):
{
"canonicalDomain": "guild.sloppyvoice.com",
"domains": ["guild.sloppyvoice.com"],
"name": "The Guild",
"secure": true,
"securedAt": "2026-06-01T12:00:00.000Z",
"endpoints": { "api": "https://chat.sloppyvoice.com/server2", "relayUrl": "https://relay.sloppyvoice.com/r1",
"push": { "gatewayPolicy": "any" } }
}Two servers MAY share one relay process (as above) if the relay keeps their calls apart; that is an implementation matter (21).
15. Operator guidance
This section is normative where it uses requirement words.
15.1 Choosing a delegation
| Setup | Example | Evidence peers record | Recommendation |
|---|---|---|---|
| Server on a host under your own domain | _sloppyv.sloppyvoice.com → https://chat.sloppyvoice.com/server |
same-site |
Best for most operators. No DNSSEC needed. Strong for pin changes when the host is the domain itself or a subdomain of it (§10.2); for a sibling host, such as guild.sloppyvoice.com → chat.sloppyvoice.com, changes rely on keyChain or DNSSEC. |
| Hosted by a provider, with your own hostname | voice.bobsclub.org CNAME tenant8f2.voicehost.net., the provider obtains an ACME certificate for voice.bobsclub.org, and _sloppyv.bobsclub.org → https://voice.bobsclub.org |
same-site |
Recommended for hosted servers. |
Hosted by a provider, provider's hostname, with .well-known |
_sloppyv.bobsclub.org → https://tenant8f2.voicehost.net/s, plus https://bobsclub.org/.well-known/sloppyv naming the same URL |
wellknown |
Good when you run a website on the domain. |
| Hosted by a provider, provider's hostname, DNSSEC-signed zone | As above, zone signed | dnssec |
Good if your DNS host signs zones. |
| Hosted by a provider, provider's hostname, nothing else | _sloppyv.bobsclub.org → https://tenant8f2.voicehost.net/s |
dns-only |
Works (D-074), but any later move or key emergency suspends federation until other admins accept it. |
- Operators SHOULD use same-site delegation with a host that is the domain itself or a subdomain of it: a CNAME to the provider plus an ACME (RFC 8555) certificate for the operator's own hostname.
- A hosting provider that gives hostnames under one registrable domain to unrelated customers MUST have that domain in the PSL PRIVATE section (§9.3).
- Hosting providers SHOULD automate that (certificates for customer hostnames) and SHOULD tell customers which evidence level their setup gives.
- Operators SHOULD sign their zones with DNSSEC where their DNS host supports it.
- Operators whose delegation would be
dns-onlySHOULD publish the.well-knowndocument. - Operators SHOULD use a TTL of 3,600 s for the discovery record and lower it to 300 s a day before a planned move.
15.2 Resolvers
Servers SHOULD use a DNSSEC-validating resolver on the same host or reached over an authenticated channel (§3.5). Without one, they never record dnssec evidence, which only matters for operators that rely on DNSSEC alone.
15.3 Self-check
A server SHOULD resolve each of its own domains at start-up and then at least every 6 hours, exactly as a peer would (including the W-c check), and alert its admin when any domain fails to resolve to its own base URL, resolves with dns-only evidence, or is near a certificate expiry. The self-check result supplies the source and evidence that /v1/resolve returns for the server's own domains (§6.2), refreshed at most every 300 s on demand.
15.4 Keys
- Servers MUST generate keys with a cryptographically secure generator (00 §7.15) and SHOULD keep private keys in a hardware security module or key-management service where one is available.
- Servers SHOULD rotate each active key at least every 365 days, following §11.4, and MAY keep a standby key (§11.7).
- Runbooks for rotation and compromise are in 21.
15.5 Aliases
Follow §8.2: add the domain to domains before publishing its record; remove the record and wait 24 h before removing the domain. Before that, follow 01 §7.9: stop publishing links on the alias, keep it listed and delegated for at least 365 days after the last such link, and keep the domain registered afterwards.
15.6 Moving a server to a new base URL
- Bring up the server at the new base URL with the same database. Its
endpoints.apiis the new base URL. - Rotate the
signkey (§11.4) with a KeyRotation whoseurlis the new base URL, at least 25 h before step 4. From then on, every KeyRotation of any purpose names the new base URL (§12.1). - Lower the discovery record's TTL to 300 s.
- Change the discovery record (and the
.well-knowndocument, if any) to the new base URL. Keep the old base URL serving for at least 24 h, until every cached delegation has expired (§13.1).
Peers then accept the move automatically: with strong evidence directly, and with weak evidence through the URL-bound rotation (§10.2). Clients follow it the same way, so signed-in users stay signed in (§10.6).
16. Events
This document defines three event types in its discovery area (00 §7.5). 03 indexes them.
16.1 discovery.metadata_changed
Tells clients and peers to refetch a server's ServerMetadata now instead of waiting for their cache to expire.
| Aspect | Rule |
|---|---|
| Class | Ephemeral on the client WebSocket (no seq, never replayed, ctx = me). Also an S2S event delivered through 06's event ingest. |
| Sent by | A server whose ServerMetadata changed in any member other than the cosmetic ones (§7.2) and updatedAt. |
| Sent to | Every WebSocket session open on the server, local or remote; and every peer it exchanged S2S requests with, in either direction, in the last 30 days; and every peer in the audience set (06 §11.1) of any account it homes. |
| Timing | Within 60 s of the change; within 10 s when urgent is true. |
Payload d:
| Member | Type | Required | Meaning |
|---|---|---|---|
canonicalDomain |
string | Yes | The server whose metadata changed. |
updatedAt |
string | Yes | The new updatedAt. |
changes |
array of string | Yes | Any of keys, domains, endpoints, auth, limits, features, versions, secure, other. Unknown values: treat as other. |
urgent |
boolean | Yes | True when a key was revoked (§11.7). |
{
"v": 1,
"t": "discovery.metadata_changed",
"id": "01938f40-5a1b-7c2d-8e3f-405162738495",
"ctx": "me",
"ts": "2026-12-04T09:00:04.120Z",
"d": { "canonicalDomain": "sloppyvoice.com", "updatedAt": "2026-12-04T09:00:00.000Z",
"changes": ["keys"], "urgent": false }
}Proposed decision PD-02-11: servers announce metadata changes with discovery.metadata_changed, to clients and to peers, urgently after a key revocation. Rationale: without it, a revoked key stays accepted for up to 24 h by every cache that follows §13.
Sending: a server whose /meta is served through a shared cache (a CDN or reverse proxy) MUST purge or revalidate that cache before it sends the event, so that refetches see the new document.
Receiving: the receiver refetches {base}/meta bypassing its cache, with Cache-Control: no-cache (§13.5), subject to the once-per-60-s limit of §13.4. A refetch that the limit holds back is deferred to the end of the 60 s window, not dropped, so an urgent event always causes a refetch within 60 s. Clients wait a random 0–30 s first (0–5 s when urgent) so that thousands of clients don't refetch at the same instant. The payload is only a trigger; receivers MUST NOT take any value from it. An S2S discovery.metadata_changed whose token doesn't verify is discarded as 06 specifies (an unknown kid causes a refetch anyway, §11.6).
16.2 discovery.peer_suspended
| Aspect | Rule |
|---|---|
| Class | Durable, on the me context of every local account that holds the admin system role (10 §4.2). |
| Sent when | A pin enters suspended (§10.3). |
Payload d |
The PeerPin (§10.5) in state suspended. |
16.3 discovery.peer_resumed
| Aspect | Rule |
|---|---|
| Class | Durable, on the same me contexts as §16.2. |
| Sent when | A pin leaves suspended (§10.3). |
Payload d |
{ "domain": string, "how": "auto" | "evidence" | "admin", "baseUrl": string }. Unknown how values: treat as auto. |
Ordinary users never receive §16.2 or §16.3.
17. Error codes
This document owns these codes (00 §7.5, §7.9). The HTTP status applies when the error is returned by /v1/resolve, by /v1/resolve/pins…, or by another endpoint that needed a resolution (for example a request that has to reach a remote server). When a resolver runs inside a client, the same code drives the same user interface.
| Code | HTTP | retryable |
userAction |
Meaning | data |
|---|---|---|---|---|---|
discovery.invalid_domain |
400 | false | none |
The domain isn't a valid, resolvable DNS name (§5.1). | domain |
discovery.not_found |
404 | false | none |
No discovery record and no .well-known document: there's no Sloppy Voice server for this domain. |
domain |
discovery.record_invalid |
502 | false | none |
The discovery record or .well-known document is malformed, or several records conflict (§3.4). |
domain, reason (malformed, conflicting, bad_url, wellknown_invalid) |
discovery.delegation_conflict |
502 | false | none |
The discovery record and the .well-known document name different base URLs (§4.3 W-c). |
domain, txtBaseUrl, wellknownBaseUrl |
discovery.dns_failure |
503 | true | retry |
The DNS lookup failed temporarily and no .well-known document was found. retryAfterMs is the negative-cache lifetime (§13.3). |
domain |
discovery.server_unreachable |
503 | true | retry |
The base URL couldn't be reached, or /meta answered 5xx or 429, or timed out; or, with no discovery record, the .well-known document was unavailable (§4.3 W-a). |
domain, baseUrl (absent in the W-a case) |
discovery.metadata_invalid |
502 | false | none |
/meta isn't valid ServerMetadata (§7.4). |
domain, baseUrl, reason (not_json, too_large, redirect, missing_member, bad_member, bad_domains, api_mismatch, invalid_keys, invalid_key_chain, private_key_published) |
discovery.domain_not_served |
404 | false | none |
The server reached for this domain doesn't list it in domains (§8). Also returned by endpoints that need a local domain and get another one (§8.2). |
domain, baseUrl |
discovery.canonical_mismatch |
502 | false | none |
The metadata's canonical domain resolves successfully, but to a different base URL (§5.3). A failure to resolve the canonical domain gives that resolution's own error instead. | domain, baseUrl, canonicalDomain |
discovery.version_unsupported |
502 | false | none |
The server speaks only protocol versions older than any the consumer implements (§7.4 step 5). A server that speaks only newer versions gives core.unsupported_version (03) instead. |
domain, baseUrl, versions |
discovery.forbidden_target |
502 | false | none |
The base URL or .well-known host resolves to an address the server refuses to contact (§5.6). |
domain |
discovery.peer_suspended |
503 | true | wait |
Federation with this domain is suspended because its delegation or keys changed in a way that couldn't be verified (§10.4). retryAfterMs is 900,000. |
domain |
discovery.unknown_key |
400 | true | retry |
A JWS signed by a server names a kid that isn't in the issuer's key set, even after the permitted refetch (§11.6). The server-key form of 04's crypto.unknown_key. retryAfterMs is 60,000. Returned on the wire only where the JWS type's owner doesn't substitute its own code (§11.6). |
iss, kid |
discovery.key_unusable |
400 | false | none |
The key named by kid exists but can't be used: wrong purpose, revoked, expired, not yet valid, retired before the object was signed, or too stale (§11.6). Returned on the wire only where the JWS type's owner doesn't substitute its own code (§11.6). |
iss, kid, reason (wrong_purpose, revoked, expired, not_yet_valid, stale) |
When discovery.unknown_key or discovery.key_unusable answers a request whose credential is the failing JWS, the status is 401 (04 §6.9, with WWW-Authenticate as 03 requires).
User-facing meaning (copy in 20): invalid_domain and not_found mean "there's no Sloppy Voice server at this address; check the spelling". domain_not_served means "this server doesn't host that address". record_invalid, delegation_conflict, metadata_invalid, canonical_mismatch and version_unsupported mean "this server isn't set up correctly right now", with the server's contact.admin link when known. Every other code means "that server can't be reached right now; we'll keep trying". None uses security language (§5.7). unknown_key and key_unusable are seen by servers and by clients' silent checks, not by users.
18. Timers and limits
| Item | Value | Section |
|---|---|---|
| Discovery record size | ≤ 1,024 octets of record text | §3.2 |
| Base URL length | ≤ 512 octets | §3.3 |
| CNAME chain | ≤ 8 links | §3.5 |
| DNS timeout | 5 s per attempt, 2 attempts, 10 s total | §3.5 |
.well-known size, timeouts, redirects |
≤ 4,096 octets; 5 s connect, 10 s total; ≤ 3 redirects | §4.2 |
/meta size, timeouts |
≤ 262,144 octets; 5 s connect, 10 s total; no redirects | §5.5, §7.1 |
links.join template |
≤ 512 octets; host is the base-URL host or one of domains, checked by discovery (01 §11.2) |
§7.3.4 |
| Whole resolution | ≤ 30 s | §5.5 |
| Server outbound resolutions | 10 per second by default | §5.5 |
/v1/resolve rate limits |
30 per 60 s per IP anonymous; 120 per 60 s per session | §6.1 |
domains |
1–100 | §7.2 |
keys |
1–16 | §11.5 |
keyChain |
0–64 elements; every rotation of the last 400 days and the last 16 | §12.2 |
| KeyRotation size | ≤ 2,048 octets (04's registry maximum) | §12.1 |
next key pre-publication |
≥ 25 h before nbf (waived only after a compromise) |
§11.4 |
| Retired key kept verifiable | exp ≥ retirement + 7 days; only for JWSs with iat ≤ retiredAt |
§11.4, §11.6 |
| Key lifetime | exp − nbf ≤ 731 days; rotation SHOULD be ≤ 365 days |
§11.1, §11.4 |
| Revoked key listed | ≥ 30 days | §11.4 |
Unknown-kid refetch |
≤ once per 60 s per domain | §11.6 |
| Clock skew | ±60 s | §11.6 |
| Positive cache | TTL or max-age, clamped to [300 s, 86,400 s] |
§13.1 |
| Stale use while unreachable | ≤ 7 days after expiry; objects signed after expiry only during the first 24 h | §13.2 |
| Negative cache | not_found: [60 s, 900 s]; other definitive: 300 s; temporary: 30 s doubling to 300 s |
§13.3 |
| User "Try again" | ≤ once per 10 s per domain | §13.3 |
| Suspended re-check | every 15 min; on inbound traffic ≤ once per 60 s | §10.3 |
| Pin retention without contact | MAY delete after 400 days | §10.1 |
discovery.metadata_changed |
within 60 s; urgent within 10 s; client jitter 0–30 s (urgent 0–5 s); a held-back refetch runs at the end of the 60 s window | §16.1 |
| Self-check | at start-up and every ≤ 6 h | §15.3 |
| Public Suffix List age | refresh ≤ 30 days (servers, SHOULD); never older than 180 days | §9.3 |
19. Registry additions
- Well-Known URIs (RFC 8615): URI suffix
sloppyv; change controller: the Sloppy Voice specification maintainers; reference: this document, §4. - Underscored and Globally Scoped DNS Node Names (RFC 8552): RR type
TXT, node name_sloppyv; reference: this document, §3. - JWS
typ(04's registry, already listed in 00 §7.13):sv-keyrot+jwt, owner 02. - Event types (03's index):
discovery.metadata_changed(ephemeral; also S2S),discovery.peer_suspended(durable),discovery.peer_resumed(durable). - Error codes (03's registry): the 14 codes of §17.
- Paths (00 §7.3, 03's index):
/v1/resolve/pins…under this document's/v1/resolve(PD-02-7). - Cryptographic labels: none.
20. Test vectors
Inputs are shown as they appear on the wire. In TXT vectors, each resource record is written as its character-strings in double quotes; a record of two strings is written "a" "b". "No record" means processing continues with .well-known (§4.3 case W-a).
20.1 Discovery record processing
| # | TXT RRset at _sloppyv.sloppyvoice.com |
Outcome |
|---|---|---|
| T1 | "v=sv1 url=https://chat.sloppyvoice.com/server" |
Delegation, base URL https://chat.sloppyvoice.com/server. |
| T2 | "v=sv1 url=https://chat.sloppy" "voice.com/server" |
Same as T1 (strings are concatenated with nothing between them). |
| T3 | "V=SV1 URL=https://Chat.SloppyVoice.com:443/server/" |
Same as T1 (tag and parameter names are case-insensitive; host lowercased; port 443 and the trailing / removed). |
| T4 | "v=sv1 url=https://chat.sloppyvoice.com/server prio=5" |
Same as T1 (unknown parameter ignored). |
| T5 | "v=spf1 -all" and "v=sv1 url=https://chat.sloppyvoice.com/server" |
Same as T1 (the SPF record is foreign). |
| T6 | "v=sv1 url=https://chat.sloppyvoice.com/server" and "v=sv1 url=https://chat.sloppyvoice.com/server/" |
Same as T1 (both normalize to the same base URL). |
| T7 | (NXDOMAIN) | No record. |
| T8 | "v=sv2 url=https://chat.sloppyvoice.com/server" |
No record (foreign to v1). |
| T9 | "v=sv1url=https://chat.sloppyvoice.com/server" |
No record (first token isn't v=sv1). |
| T10 | "v=sv1" |
discovery.record_invalid (malformed: no url). |
| T11 | "v=sv1 url=http://chat.sloppyvoice.com/server" |
discovery.record_invalid (bad_url: not https). |
| T12 | "v=sv1 url=https://chat.sloppyvoice.com/server url=https://x.example.net/s" |
discovery.record_invalid (malformed: url twice). |
| T13 | "v=sv1 url=https://chat.sloppyvoice.com/server" and "v=sv1 url=https://chat.sloppyvoice.com/server2" |
discovery.record_invalid (conflicting). |
| T14 | "v=sv1 url=https://192.0.2.10/server" |
discovery.record_invalid (bad_url: IP address). |
| T15 | "v=sv1 url=https://chat.sloppyvoice.com/server?x=1" |
discovery.record_invalid (bad_url: query). |
| T16 | "v=sv1 url=https://user@chat.sloppyvoice.com/server" |
discovery.record_invalid (bad_url: userinfo). |
| T17 | "v=sv1 url=https://bücher.example/s" (UTF-8) |
discovery.record_invalid (malformed: non-ASCII octets). |
| T18 | (SERVFAIL) | Temporary DNS failure; .well-known case W-b. |
20.2 Base URL normalization
| # | Input | normalizeBaseUrl result |
|---|---|---|
| U1 | https://chat.sloppyvoice.com/server |
https://chat.sloppyvoice.com/server |
| U2 | HTTPS://CHAT.SloppyVoice.COM.:443/server/ |
https://chat.sloppyvoice.com/server |
| U3 | https://chat.sloppyvoice.com:8443/server |
https://chat.sloppyvoice.com:8443/server |
| U4 | https://chat.sloppyvoice.com/%7eserver/a%2fb |
https://chat.sloppyvoice.com/~server/a%2Fb |
| U5 | https://chat.sloppyvoice.com |
https://chat.sloppyvoice.com (empty path) |
| U6 | https://chat.sloppyvoice.com/ |
https://chat.sloppyvoice.com |
| U7 | https://chat.sloppyvoice.com/Server |
https://chat.sloppyvoice.com/Server (paths are case-sensitive; differs from U1) |
| U8 | https://xn--bcher-kva.example/s |
https://xn--bcher-kva.example/s |
| U9 | https://chat.sloppyvoice.com/a/../server |
Fails (dot segment). |
| U10 | https://chat.sloppyvoice.com//server |
Fails (empty segment). |
| U11 | https://chat.sloppyvoice.com/server#x |
Fails (fragment). |
| U12 | https://[2001:db8::1]/server |
Fails (IP literal). |
| U13 | https://chat.sloppyvoice.com:0/server |
Fails (port out of range). |
| U14 | https://chat.sloppyvoice.com:08443/server |
https://chat.sloppyvoice.com:8443/server (leading zero removed; equals U3) |
| U15 | https://chat.sloppyvoice.com:0443/server |
https://chat.sloppyvoice.com/server (leading zero removed, then port 443 removed) |
| U16 | https://chat/server |
Fails (single-label host). |
| U17 | https://2130706433/server |
Fails (numeric last label; browsers read it as 127.0.0.1). |
| U18 | https://0x7f.1/server |
Fails (numeric last label). |
| U19 | https://192.0.2.10/server |
Fails (numeric last label: dotted IPv4). |
20.3 Delegation evidence
D is the queried domain, H the base-URL host. "WK" is the result of fetching https://D/.well-known/sloppyv. The Public Suffix List lists com, org, net, edu, co.uk (ICANN section) and github.io (PRIVATE section).
| # | D |
Source and base URL | DNSSEC | WK | Evidence or outcome |
|---|---|---|---|---|---|
| E1 | sloppyvoice.com |
txt, https://chat.sloppyvoice.com/server |
no | not fetched | same-site |
| E2 | guild.sloppyvoice.com |
txt, https://chat.sloppyvoice.com/server2 |
no | not fetched | same-site |
| E3 | sloppyvoice.com |
txt, https://chat.sloppyvoice.com/server |
Secure | not fetched | dnssec (first test that passes) |
| E4 | example.co.uk |
txt, https://chat.example.co.uk/s |
no | not fetched | same-site |
| E5 | bobsclub.org |
txt, https://tenant8f2.voicehost.net/s |
no | absent | dns-only |
| E6 | bobsclub.org |
txt, https://tenant8f2.voicehost.net/s |
no | {"v":"sv1","url":"https://tenant8f2.voicehost.net/s/"} |
wellknown (URLs equal after normalization) |
| E7 | bobsclub.org |
txt, https://tenant8f2.voicehost.net/s |
Secure | not fetched | dnssec |
| E8 | bobsclub.org |
txt, https://tenant8f2.voicehost.net/s |
no | {"v":"sv1","url":"https://other.voicehost.net/s"} |
discovery.delegation_conflict |
| E9 | alice.github.io |
txt, https://bob.github.io/sv |
no | absent | dns-only (github.io is a public suffix, so the registrable domains differ) |
| E10 | sloppyvoice.com |
none (NXDOMAIN); WK names https://chat.sloppyvoice.com/server |
— | present | source wellknown, evidence same-site |
| E11 | bobsclub.org |
none (NXDOMAIN); WK names https://tenant8f2.voicehost.net/s |
— | present | source wellknown, evidence wellknown |
| E12 | bobsclub.org |
none (SERVFAIL); WK names https://tenant8f2.voicehost.net/s |
— | present | source wellknown, evidence wellknown, fresh for ≤ 300 s |
| E13 | bobsclub.org |
none (NXDOMAIN) | — | absent | discovery.not_found |
| E14 | bobsclub.org |
none (NXDOMAIN) | — | unavailable (timeout) | discovery.server_unreachable (temporary); a cached result stays usable with stale: true (§13.2) |
| E15 | bobsclub.org |
none (NXDOMAIN) | — | unavailable (status 503) | As E14 |
| E16 | cs.uni.edu |
txt, https://cs.uni.edu/sv |
no | not fetched | same-site; strong for pin changes (H equals D) |
| E17 | cs.uni.edu |
txt, https://evil.uni.edu/sv |
no | not fetched | same-site recorded, but weak for pin changes (sibling host, §10.2); at first contact it is accepted like any other result |
20.4 Server key IDs
Checked against a ServerMetadata whose canonicalDomain is sloppyvoice.com.
| # | kid |
Result |
|---|---|---|
| I1 | sloppyvoice.com#2026-11a |
Valid. |
| I2 | sloppyvoice.com#mls-2026-12a |
Valid. |
| I3 | sloppyvoice.com#A.b_c-1 |
Valid (key-id is case-sensitive). |
| I4 | sloppyvoice.com# |
Invalid (empty key-id). |
| I5 | #2026-11a |
Invalid (no domain). |
| I6 | SloppyVoice.com#2026-11a |
Invalid (domain not lowercase). |
| I7 | chat.sloppyvoice.com#2026-11a |
Invalid here (domain part isn't the canonical domain). |
| I8 | sloppyvoice.com#2026 11a |
Invalid (space). |
| I9 | sloppyvoice.com#abcdefghijklmnopqrstuvwxyz0123456 |
Invalid (33 characters). |
20.5 KeyRotation and keyChain verification
These vectors were computed with an independent Ed25519 implementation (RFC 8032; signatures are deterministic, so they are reproducible). Each private key is the 32-octet Ed25519 seed SHA-256("sv1 test 02 " || label) over the ASCII label, shown in hexadecimal. Public keys x and thumbprints are base64url. The RFC 7638 thumbprint input for K1 is the exact octet string {"crv":"Ed25519","kty":"OKP","x":"1QEvvbfolRXg51y9hdJWQb43G4Z1oOcbXi6vYLAezoE"}.
Keys
| Label | Seed (hex) | x |
Thumbprint | kid |
Purpose |
|---|---|---|---|---|---|
| K1 | 22c794ecaab4ae12316697439a85f5d6af722a6fbf69a707867d94e39f491ac6 |
1QEvvbfolRXg51y9hdJWQb43G4Z1oOcbXi6vYLAezoE |
vxp4YsK2h0e_z-1ZPEZt4ouuPgPZvY5UG5jZVDf80rg |
sloppyvoice.com#2026-01a |
sign |
| K2 | 4093bb08ba9d4c8e9faa2e9283767db47eeb925abec5e74e4fc7f407077e04dd |
lrh-xA3rlW5M_Ob4qj07SRjWjzB28938Ikff1p7cESA |
iM5UXriyZq95U8TsoHsXYOk-N4NzWaaWkeGwNiWGYIg |
sloppyvoice.com#2026-11a |
sign |
| K3 | bc7f0a0b94347b7b52af3d609b0a84345c9e95e2f7e6daa352f542431469877e |
qCj4XtkRVGcgM5MyYhHvPeHH0vvstqxcttnY0UPKPXw |
Y4oeo0szNk-tdUkJ9a2OD4Ux1bwUYy-uCfTYAq5zJ8I |
sloppyvoice.com#2026-12m |
sign |
| M1 | 3d09d2650e647b3d01efc6359d75db5dbf7119503fdcd263bdd00cd5d60e2bc8 |
dcf9usCLfKyLiK9JRshBFlW6lYpsXTpIfCh34idTeLY |
PO32bCBLINvnxQXL4W6sx4zYIg6629TolQkO8uFfpks |
sloppyvoice.com#mls-2026-01a |
mls-external-sender |
| M2 | d6d161555fe5ce00277d100eda29a77ec4d55c8ad797e0fc211c4f094ab1ef11 |
rGji7yZg61-x0jmpHobbbxMCaqKuWM3QsoChKkACi6Y |
YfWnzXF1oWs4quQLnvRbpepkCDQmG_4wfvtUfPRgVYI |
sloppyvoice.com#mls-2026-12a |
mls-external-sender |
| KX | d37bec6efd5fe97f4bee1164651de8f215cd82da28e1c08fadc4b8adfdbdc958 |
kYBlJNrjpbJh9Z7gOxclojxrZ1oay6XbB0Pig0j4YOk |
3iBm10ZA7SmuCtuOMpzpTY5rLZjXzbckWuunlLYQXI0 |
sloppyvoice.com#2026-01a (collides with K1) |
sign |
| KEVIL | 86caf8c75561d1d6a8d21b6734f35a23921596ba77ecaefdc865a3ecb8bc750f |
sBbi4OfF1vK3nlyYKJVAYD2SZwhtkwpFhDqtn-NiaAc |
cRsx0ygMl6QnFYNSZy2vpbaJV9tyZ7SqxkFmpXSzgHE |
sloppyvoice.com#evil-1 |
sign |
KX and KEVIL are attacker keys. KX reuses K1's kid string.
KeyRotations. The JWS signing input is the ASCII string BASE64URL(header) || "." || BASE64URL(payload) of the exact header and payload octets shown (no white space). SHA-256 is of the whole compact JWS as ASCII, base64url (used for chainHead).
R1: K1 vouches for K2 (2026-11-28T22:00Z).
header: {"alg":"EdDSA","typ":"sv-keyrot+jwt","kid":"sloppyvoice.com#2026-01a"}
payload: {"iss":"sloppyvoice.com","n":1,"iat":1795903200,"prev":"vxp4YsK2h0e_z-1ZPEZt4ouuPgPZvY5UG5jZVDf80rg","key":{"kty":"OKP","crv":"Ed25519","x":"lrh-xA3rlW5M_Ob4qj07SRjWjzB28938Ikff1p7cESA","kid":"sloppyvoice.com#2026-11a","purpose":"sign"},"url":"https://chat.sloppyvoice.com/server"}
JWS: eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWtleXJvdCtqd3QiLCJraWQiOiJzbG9wcHl2b2ljZS5jb20jMjAyNi0wMWEifQ.eyJpc3MiOiJzbG9wcHl2b2ljZS5jb20iLCJuIjoxLCJpYXQiOjE3OTU5MDMyMDAsInByZXYiOiJ2eHA0WXNLMmgwZV96LTFaUEVadDRvdXVQZ1Badlk1VUc1alpWRGY4MHJnIiwia2V5Ijp7Imt0eSI6Ik9LUCIsImNydiI6IkVkMjU1MTkiLCJ4IjoibHJoLXhBM3JsVzVNX09iNHFqMDdTUmpXanpCMjg5MzhJa2ZmMXA3Y0VTQSIsImtpZCI6InNsb3BweXZvaWNlLmNvbSMyMDI2LTExYSIsInB1cnBvc2UiOiJzaWduIn0sInVybCI6Imh0dHBzOi8vY2hhdC5zbG9wcHl2b2ljZS5jb20vc2VydmVyIn0.wap7n9Q69utlT8trBXcOXVv_IhRqsvF-j9TOhhmf4Lz2wgxeMmUchlqssa-QqbzkkPRF1_2MsH_Xi58zjDq8Ag
SHA-256: QIXY9iNmN9ZIgB5Z9Nu2LXpmYsAXdxbu8nHKoDbwggUR2: K2 vouches for M2 (2026-12-04T09:00Z).
header: {"alg":"EdDSA","typ":"sv-keyrot+jwt","kid":"sloppyvoice.com#2026-11a"}
payload: {"iss":"sloppyvoice.com","n":2,"iat":1796374800,"prev":"iM5UXriyZq95U8TsoHsXYOk-N4NzWaaWkeGwNiWGYIg","key":{"kty":"OKP","crv":"Ed25519","x":"rGji7yZg61-x0jmpHobbbxMCaqKuWM3QsoChKkACi6Y","kid":"sloppyvoice.com#mls-2026-12a","purpose":"mls-external-sender"},"url":"https://chat.sloppyvoice.com/server"}
JWS: eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWtleXJvdCtqd3QiLCJraWQiOiJzbG9wcHl2b2ljZS5jb20jMjAyNi0xMWEifQ.eyJpc3MiOiJzbG9wcHl2b2ljZS5jb20iLCJuIjoyLCJpYXQiOjE3OTYzNzQ4MDAsInByZXYiOiJpTTVVWHJpeVpxOTVVOFRzb0hzWFlPay1ONE56V2FhV2tlR3dOaVdHWUlnIiwia2V5Ijp7Imt0eSI6Ik9LUCIsImNydiI6IkVkMjU1MTkiLCJ4IjoickdqaTd5Wmc2MS14MGptcEhvYmJieE1DYXFLdVdNM1Fzb0NoS2tBQ2k2WSIsImtpZCI6InNsb3BweXZvaWNlLmNvbSNtbHMtMjAyNi0xMmEiLCJwdXJwb3NlIjoibWxzLWV4dGVybmFsLXNlbmRlciJ9LCJ1cmwiOiJodHRwczovL2NoYXQuc2xvcHB5dm9pY2UuY29tL3NlcnZlciJ9.VqiwKfU-y1cI7iG4xPnJoS32NqeQIQ5Ypc4csuWWiFtq09wDc48yzND4bLjPqiEmV41ReFrwGept07LpBwe7CA
SHA-256: S7MBCjIm7-bH_E18Nt1aK3Z5-vixtmzw209qrnfFVvYR3: K2 vouches for K3 and the new base URL https://voice.sloppyvoice.com/server (2026-12-10T00:00Z).
header: {"alg":"EdDSA","typ":"sv-keyrot+jwt","kid":"sloppyvoice.com#2026-11a"}
payload: {"iss":"sloppyvoice.com","n":3,"iat":1796860800,"prev":"iM5UXriyZq95U8TsoHsXYOk-N4NzWaaWkeGwNiWGYIg","key":{"kty":"OKP","crv":"Ed25519","x":"qCj4XtkRVGcgM5MyYhHvPeHH0vvstqxcttnY0UPKPXw","kid":"sloppyvoice.com#2026-12m","purpose":"sign"},"url":"https://voice.sloppyvoice.com/server"}
JWS: eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWtleXJvdCtqd3QiLCJraWQiOiJzbG9wcHl2b2ljZS5jb20jMjAyNi0xMWEifQ.eyJpc3MiOiJzbG9wcHl2b2ljZS5jb20iLCJuIjozLCJpYXQiOjE3OTY4NjA4MDAsInByZXYiOiJpTTVVWHJpeVpxOTVVOFRzb0hzWFlPay1ONE56V2FhV2tlR3dOaVdHWUlnIiwia2V5Ijp7Imt0eSI6Ik9LUCIsImNydiI6IkVkMjU1MTkiLCJ4IjoicUNqNFh0a1JWR2NnTTVNeVloSHZQZUhIMHZ2c3RxeGN0dG5ZMFVQS1BYdyIsImtpZCI6InNsb3BweXZvaWNlLmNvbSMyMDI2LTEybSIsInB1cnBvc2UiOiJzaWduIn0sInVybCI6Imh0dHBzOi8vdm9pY2Uuc2xvcHB5dm9pY2UuY29tL3NlcnZlciJ9.Ckgu8-4ruQ-HnhOoNBNe4So0c5RZq44plItW5S-Tjef-aYjsmcfe3x_vDa-ZbnaKwvQER6RRDiaH9Xk2Eu4HAg
SHA-256: 32onVz_etyAJi_KbOI0IQvQg3LPCt3AV7dpnfAbhQgcRX: Forgery: signed by KX, header kid of K1, vouches for KEVIL.
header: {"alg":"EdDSA","typ":"sv-keyrot+jwt","kid":"sloppyvoice.com#2026-01a"}
payload: {"iss":"sloppyvoice.com","n":3,"iat":1796860800,"prev":"3iBm10ZA7SmuCtuOMpzpTY5rLZjXzbckWuunlLYQXI0","key":{"kty":"OKP","crv":"Ed25519","x":"sBbi4OfF1vK3nlyYKJVAYD2SZwhtkwpFhDqtn-NiaAc","kid":"sloppyvoice.com#evil-1","purpose":"sign"},"url":"https://evil.example/sv"}
JWS: eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWtleXJvdCtqd3QiLCJraWQiOiJzbG9wcHl2b2ljZS5jb20jMjAyNi0wMWEifQ.eyJpc3MiOiJzbG9wcHl2b2ljZS5jb20iLCJuIjozLCJpYXQiOjE3OTY4NjA4MDAsInByZXYiOiIzaUJtMTBaQTdTbXVDdHVPTXB6cFRZNXJMWmpYemJja1d1dW5sTFlRWEkwIiwia2V5Ijp7Imt0eSI6Ik9LUCIsImNydiI6IkVkMjU1MTkiLCJ4Ijoic0JiaTRPZkYxdkszbmx5WUtKVkFZRDJTWndodGt3cEZoRHF0bi1OaWFBYyIsImtpZCI6InNsb3BweXZvaWNlLmNvbSNldmlsLTEiLCJwdXJwb3NlIjoic2lnbiJ9LCJ1cmwiOiJodHRwczovL2V2aWwuZXhhbXBsZS9zdiJ9.n2p_mkyP0ecO_UQoQy0aK2tEnZ8niLSS3tV8D8Flmx-RU5LyUKh5TnrkSsp9Oeyl0ccy9LcsrH6SoKYlGBlUDg
SHA-256: KHmySkYMS7DTZnrc6KR5uisvOE6u3p9d9wX2UojC5HYRM: Forgery: signed by M1 (an mls-external-sender key), vouches for KEVIL.
header: {"alg":"EdDSA","typ":"sv-keyrot+jwt","kid":"sloppyvoice.com#mls-2026-01a"}
payload: {"iss":"sloppyvoice.com","n":3,"iat":1796860800,"prev":"PO32bCBLINvnxQXL4W6sx4zYIg6629TolQkO8uFfpks","key":{"kty":"OKP","crv":"Ed25519","x":"sBbi4OfF1vK3nlyYKJVAYD2SZwhtkwpFhDqtn-NiaAc","kid":"sloppyvoice.com#evil-1","purpose":"sign"},"url":"https://chat.sloppyvoice.com/server"}
JWS: eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWtleXJvdCtqd3QiLCJraWQiOiJzbG9wcHl2b2ljZS5jb20jbWxzLTIwMjYtMDFhIn0.eyJpc3MiOiJzbG9wcHl2b2ljZS5jb20iLCJuIjozLCJpYXQiOjE3OTY4NjA4MDAsInByZXYiOiJQTzMyYkNCTElOdm54UVhMNFc2c3g0ellJZzY2MjlUb2xRa084dUZmcGtzIiwia2V5Ijp7Imt0eSI6Ik9LUCIsImNydiI6IkVkMjU1MTkiLCJ4Ijoic0JiaTRPZkYxdkszbmx5WUtKVkFZRDJTWndodGt3cEZoRHF0bi1OaWFBYyIsImtpZCI6InNsb3BweXZvaWNlLmNvbSNldmlsLTEiLCJwdXJwb3NlIjoic2lnbiJ9LCJ1cmwiOiJodHRwczovL2NoYXQuc2xvcHB5dm9pY2UuY29tL3NlcnZlciJ9.Hk-U7k9l1NFj6fc_4jhcKAcWnU8BIqtjGpiLbA4vzEc6pXHWd027McGbqV5Pj_1M-yeEBLyfeOZuWBjHMBzkAA
SHA-256: 01I7HiOlIU_x9Pl6RIw_ffq4Ttu0kOopH0ED1MnLVQMR3*: R3 with one base64url character of the signature changed (the second-to-last, A → B). Its signature doesn't verify under K2.
eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWtleXJvdCtqd3QiLCJraWQiOiJzbG9wcHl2b2ljZS5jb20jMjAyNi0xMWEifQ.eyJpc3MiOiJzbG9wcHl2b2ljZS5jb20iLCJuIjozLCJpYXQiOjE3OTY4NjA4MDAsInByZXYiOiJpTTVVWHJpeVpxOTVVOFRzb0hzWFlPay1ONE56V2FhV2tlR3dOaVdHWUlnIiwia2V5Ijp7Imt0eSI6Ik9LUCIsImNydiI6IkVkMjU1MTkiLCJ4IjoicUNqNFh0a1JWR2NnTTVNeVloSHZQZUhIMHZ2c3RxeGN0dG5ZMFVQS1BYdyIsImtpZCI6InNsb3BweXZvaWNlLmNvbSMyMDI2LTEybSIsInB1cnBvc2UiOiJzaWduIn0sInVybCI6Imh0dHBzOi8vdm9pY2Uuc2xvcHB5dm9pY2UuY29tL3NlcnZlciJ9.Ckgu8-4ruQ-HnhOoNBNe4So0c5RZq44plItW5S-Tjef-aYjsmcfe3x_vDa-ZbnaKwvQER6RRDiaH9Xk2Eu4HBgScenarios. Each scenario gives the pin P, the candidate metadata keys and keyChain, the candidate base URL B and the evidence, and the result of chainAccepts (§12.3) and §10.2. "chat" is https://chat.sloppyvoice.com/server and "voice" is https://voice.sloppyvoice.com/server. Verification time: 2026-12-11T03:00:00Z (NumericDate 1796958000) unless stated.
Pins list each key with its status in the pin; S is the set of eligible signers of §12.3 step 5.
| # | P (keys; revoked; chainHead; base URL) |
Candidate keys | keyChain |
B, evidence |
Expected |
|---|---|---|---|---|---|
| V1 | K1 active, M1 active; none; none; chat. Time 2026-12-04T09:30Z. | K1 retired, K2 active, M1 active, M2 next (the §7.5 example) | R1, R2 | chat, dns-only |
S = {K1}. R1 verified by K1 → K2 added to T and S; R2 verified by K2 → M2 added. Every key in T. Accepted; chainHead := (2, S7MBCjIm7-bH_E18Nt1aK3Z5-vixtmzw209qrnfFVvY). |
| V2 | K1 retired, K2 active, M1 active, M2 next (after V1); none; (2, hash of R2); chat | K2 retired, K3 active, M1 retired, M2 active | R1, R2, R3 | voice, dns-only |
R2 matches chainHead (no fork); only R3 is new. S = {K2} (K1 is retired). R3 verified by K2 → K3 added. R3 is the highest element, accepted, and its url is voice: urlBound true. Accepted (server move followed without evidence); K1 removed from the pin; chainHead := (3, 32onVz_etyAJi_KbOI0IQvQg3LPCt3AV7dpnfAbhQgc). |
| V3 | As V2 | As V2 | R1, R2, R3 | https://evil.example/sv, dns-only |
Keys all in T, but the highest element's url (voice) ≠ B, so urlBound false. Rejected, reason: base_url_changed; suspend. |
| V4 | K1 active, M1 active; none; none; chat | As V2 | R1, R2, R3 | voice, dns-only |
R1 → K2, R2 → M2, R3 → K3; urlBound true. Accepted (an old pin follows the whole chain); chainHead := (3, hash of R3). |
| V5 | K1 active, M1 active; none; none; chat | K1 retired, K2 active, M1 active, M2 next, KEVIL next | R1, R2, RX | chat, dns-only |
R1 and R2 accepted. RX's header kid names K1 but its prev is KX's thumbprint, so no key in S matches: skipped. KEVIL not in T. Rejected, reason: keys_changed. With same-site evidence instead (chat.sloppyvoice.com is a subdomain of D, so strong): accepted by the evidence rule, and chainHead := (3, hash of RX), the last element. |
| V6 | K1 active, M1 active; none; none; chat | As V5 | R1, R2, RM | chat, dns-only |
RM is signed by M1, which isn't a sign key and so isn't in S: skipped. Rejected, keys_changed. |
| V7 | K1 retired, K2 active, M1 active, M2 next; none; (2, hash of R2); chat | As V2 | R1, R2, R3* | voice, dns-only |
R3* matches K2 and prev, but its signature fails: status failed, T = {K1, K2, M1, M2}, urlBound false. K3 not in T. Rejected, reason: base_url_changed. |
| V8 | K1 active, M1 active; none; none; chat | K1 revoked (rvt 1795900000), K2 active, M1 active, M2 next |
R1, R2 | chat, dns-only |
K1 is in Revoked, so T = {M1} and S is empty; R1 is skipped and so is R2. K2 and M2 not in T. Rejected, keys_changed. Because the candidate came from the pinned base URL, K1 is still moved to P.revoked (§10.2). Accepted only with strong evidence or by an admin (PD-02-9). |
| V9 | K2 retired, K3 active, M1 retired, M2 active (after V2); none; (3, 32onVz_etyAJi_KbOI0IQvQg3LPCt3AV7dpnfAbhQgc = hash of R3); voice |
K2 retired, K3 active, M2 active, KEVIL next | R1, R2, RX | voice, dns-only |
The element with n = 3 (RX, hash KHmySkYMS7DTZnrc6KR5uisvOE6u3p9d9wX2UojC5HY) differs from chainHead: status fork. Rejected, reason: chain_fork. |
| V10 | As V9 | K1 retired, K2 active, M1 active, M2 next (the §7.5 metadata, served at the old host) | R1, R2 | chat, dns-only |
The chain ends at n = 2, before chainHead (3): status rollback, urlBound false, although R2's url is chat. The base URL changed and K1 is not in the pin. Rejected, reason: chain_rollback. (Without the rollback rule, replaying the truncated chain would have moved the server back to chat.) |
20.6 Canonical-domain check
| # | Situation | Expected |
|---|---|---|
| C1 | A server has pinned sloppyvoice.com at chat. An attacker controls DNS for sloppyvoice.com and for sloppyalias.net, which this server has never contacted. _sloppyv.sloppyalias.net points at https://evil.example/sv, whose metadata lists sloppyalias.net and claims canonicalDomain sloppyvoice.com; DNS for sloppyvoice.com also points at evil. |
The canonical check runs the full resolve("sloppyvoice.com") (§5.3), whose pinning step rejects the base-URL change (no continuity, weak evidence): sloppyvoice.com is suspended, and the resolution of sloppyalias.net fails with discovery.peer_suspended. No pin is created for the alias. |
| C2 | As C1, but DNS for sloppyvoice.com is honest. |
resolve("sloppyvoice.com") gives chat, which differs from evil: discovery.canonical_mismatch. |
| C3 | As C2, but the resolution of sloppyvoice.com times out. |
The alias fails with discovery.server_unreachable (temporary), not discovery.canonical_mismatch. |
21. Security considerations
21.1 DNS spoofing: what discovery does and doesn't protect
Discovery binds a domain to a server with two statements: the domain's DNS (or its HTTPS origin) and the server's domain list. The table states what an attacker who controls the DNS answers seen by a victim (a poisoned or malicious resolver, or an on-path attacker) achieves.
| Situation | Without DNSSEC | With DNSSEC validated by the verifier |
|---|---|---|
| First contact, cross-site delegation | The attacker points the domain at a server they run, whose metadata lists the victim domain. HTTPS authenticates only the attacker's own base URL; the domain list doesn't help, because the attacker's server lists whatever it likes. Accepted (dns-only, D-074). Servers can reduce this window by the mandatory .well-known check (§4.3), which upgrades honest setups to wellknown. |
The forged answer fails validation; the resolver sees a temporary failure. |
| First contact, same-site delegation | The attacker can only point at hosts inside the victim's site. If everyone who can get a certificate in that site is one party, they can't get one, and pointing at another honest server on the same deployment fails the domain-list check (§8.1, §14). If another party runs a host in the same registrable domain (a shared university or company domain, or a hosting provider not in the PSL PRIVATE section), that party's server can list the victim domain and is accepted, as in the cross-site row. | As left. |
| After first contact (servers) | Any change of base URL or keys needs strong evidence (which, for same-site, means a host that is the domain, a subdomain of it or the pinned host), a key-holder signature (keyChain, URL-bound rotation) or an admin decision (§10.2). A truncated or forked chain gives nothing (§12.3). Otherwise the domain is suspended: a denial of service, not an impersonation. |
As left. |
| After first contact (clients) | Session tokens are never sent to a new base URL that fails §10.2 (§10.6). | As left. |
| Secure DMs | Identity pins (07) still detect a substituted identity key after first contact (W2). | As left. |
What the domain list adds: it stops a stranger pointing their own domain at someone else's server and gaining addresses there (D-002), and it stops a spoofed same-site answer from reaching the wrong honest server on a shared deployment. It doesn't stop a server run by another party, inside or outside the site, because that server's list says whatever its operator wants. What it doesn't add: protection against an attacker who runs their own server, at first contact, without DNSSEC (00 HP-7).
same-site and wellknown evidence rest on WebPKI. An attacker who can obtain a mis-issued certificate (for example by spoofing DNS towards a certificate authority's validation) defeats them, and then also defeats pinning, because a change with strong evidence is accepted. DNSSEC and Certificate Transparency monitoring by operators reduce that risk. same-site also assumes that a registrable domain belongs to one party; §9.3 requires hosting providers to keep that assumption true, and §10.2 doesn't let a sibling host override a pin.
21.2 The canonical-domain check
Without §5.3, a server reached through any domain its operator controls could name any canonical domain, and canonicalize() (01) would display its users under someone else's domain. Signatures would still fail, but people read addresses, not signatures. §5.3 requires the named canonical domain to resolve back to the same base URL, so only the real holder of a domain's delegation can be canonical for it.
21.3 Metadata integrity
ServerMetadata isn't signed. Its integrity rests on TLS for the base URL. Key-set pinning adds a second layer for servers: even an attacker who can serve forged metadata at the pinned base URL (for example with a mis-issued certificate) can't introduce new keys without a signature by a pinned key or strong evidence for a different base URL. Signing the metadata would add little: the first fetch must trust TLS anyway, and later key changes are already covered by keyChain.
A metadata document that exposes a private key member is rejected (§11.1), so a misconfigured server fails loudly instead of federating with a published private key.
21.4 Server key compromise
A stolen sign key lets the thief sign HomeAssertions, S2S requests and IdentityStates for that server's users until verifiers learn of the revocation. The exposure window is bounded by discovery.metadata_changed (urgent, 10 s target, with deferred refetches never dropped and shared caches purged first, §16.1) for peers that the server knows, and by the 24 h cache limit for everyone else that can reach /meta. A verifier that can't reach /meta, for example because the thief blocks it, keeps a stale key set for at most 24 h more for newly signed objects (§13.2), so the worst case is about 48 h. Objects the verifier received before rvt stay valid; everything else signed by the key is discarded (§11.7). Because the thief can sign backdated KeyRotations, a revoked key never vouches for new keys (PD-02-9). A standby key pinned in advance gives automatic recovery; otherwise peers with weak evidence suspend until their admins act, which is the price of not trusting the thief.
21.5 The resolver as an attack tool
Servers fetch URLs chosen by strangers. §5.6 stops server-side request forgery against internal networks. /v1/resolve is rate-limited, answers from the cache, never returns raw records or bodies, and negative-caches failures, so it can't be used as an open proxy, a DNS amplifier or a port scanner. The 10-per-second outbound cap protects the server's resolver and peers from refetch storms, and the once-per-60-s rules (§11.6, §13.4) stop forged unknown-kid traffic from forcing metadata fetches.
21.6 Web clients
A web client trusts its home server (or bootstrap server) for the delegation step, exactly as a native client trusts DNS. It never takes keys, the domain list or the canonical domain from the home server: it fetches /meta itself and checks them. A malicious home server can therefore do what a DNS attacker can do to its own users, and no more; it can already impersonate its own users in many ways (00 §5.2). Definitive answers from /v1/resolve can't be bypassed through DoH (PD-02-4), so the home server's pins protect web clients whose own storage was cleared.
21.7 Privacy
- DNS queries for
_sloppyvnames reveal to resolvers which domains a party contacts. DoH hides them from the network but not from the DoH resolver. /v1/resolvereveals to the home server (or bootstrap server) which domains a web user resolves. The home server already learns a user's audiences when it issues HomeAssertions (06).- Fetching a server's
/metaor a domain's.well-knowndocument reveals the client's IP address to that server. A client that must not contact a server yet (for example before accepting a message request, D-049) follows §5.8: it uses only what its home server provides, including/v1/resolve, and fetches nothing from the target (12 §10.4). - ServerMetadata is public. It contains no user data;
contactholds only what the operator chooses to publish.
21.8 Denial of service
Anyone who controls DNS answers can make a domain unreachable; discovery can't prevent that. Stale use (§13.2) keeps an already-known server usable for 7 days while it is unreachable, but not while DNS points somewhere else, because a definitive answer wins. An attacker who briefly spoofs DNS for a dns-only domain causes a suspension that ends automatically when the answer returns to the pinned values (§10.3), so short attacks heal themselves.
21.9 Alias domains changing hands
If an alias domain's registration lapses and someone else registers it, they can point it at their own server. Peers that pinned the alias see a canonical-domain change, which they accept only with strong evidence (or an admin decision); the new owner usually has it. That is correct: the domain now belongs to someone else. Stored data is unaffected because it names canonical addresses only (D-032). Operators SHOULD keep alias registrations as long as old links might be in use.
22. Open questions
22.1 Questions
| ID | Question | Recommendation |
|---|---|---|
| OQ-02-1 | Gap in 00 HP-8. canonicalize() replaces the typed domain with the metadata's canonicalDomain, but 00 doesn't require checking that the canonical domain resolves back to the same server. Without the check a server can display its users under another domain (§21.2). Should 00 and 01 adopt §5.3 (PD-02-3)? |
Yes. 01's canonicalize() should call resolve() as defined here, which includes the check; 00 HP-8 should mention it in one line. No owner decision is needed unless the lead disagrees. |
| OQ-02-2 | Home-server moves without verifiable evidence (owner decision). When a user's home server moves to a new base URL with weak evidence and without a URL-bound rotation, clients can't tell the move from a DNS attack. This document (§10.6, PD-02-18) then shows the home server as temporarily unreachable and offers no sign-in prompt. People get back in only by signing out and in on their own, and a device holding an identity key refuses to start an upgrade, reset, pairing or backup upload, or to delete its old keys, unless the IdentityState names its key. The alternatives are worse: sending the existing token hands it to whoever controls DNS, and prompting "Sign in again" walks people into signing in to an attacker's server and steers secure accounts towards a reset. The cost is that the users of an operator who ignores §15.6 are stuck until they sign in again themselves. Is that acceptable? | Yes. It only happens when an operator skips the move procedure, and 21's runbook and the self-check (§15.3) warn the operator first. |
22.2 Proposed decisions made in this document
| ID | Decision | Rationale |
|---|---|---|
| PD-02-1 | A malformed or conflicting discovery record is discovery.record_invalid; .well-known isn't consulted. |
Hides no operator mistakes; keeps verifiers consistent. |
| PD-02-2 | .well-known is consulted when there is no record, after a temporary DNS failure, and (servers MUST) to upgrade a cross-site non-DNSSEC record; a .well-known-only delegation gets same-site or wellknown evidence; a disagreement is discovery.delegation_conflict. |
The domain's own HTTPS origin is what wellknown means; disagreement signals an attack or a half-done move. |
| PD-02-3 | The canonical domain must resolve back to the same base URL (discovery.canonical_mismatch). |
Prevents display spoofing through canonicalize(). |
| PD-02-4 | Web clients treat definitive /v1/resolve answers as final and use DoH only when the home server is unreachable. |
Web clients keep the protection of their home server's pins. |
| PD-02-5 | ServerKey time members are NumericDate: nbf, exp, retiredAt, rvt. |
JOSE convention; direct comparison with iat. |
| PD-02-6 | A base-URL change with weak evidence is accepted only through a URL-bound KeyRotation. | Public keys can be copied; signatures can't. |
| PD-02-7 | Pins are administered through /v1/resolve/pins…, with discovery.peer_suspended and discovery.peer_resumed events for admins. |
Interoperable admin handling of suspensions. |
| PD-02-8 | Clients send session tokens only to the base URL that issued them, unless the client's own pin accepts the change under §10.2. | A DNS attacker never receives existing users' tokens, and a properly made move keeps users signed in. |
| PD-02-9 | Revoked keys never extend trust through keyChain; recovery uses a pinned standby key, strong evidence or an admin. |
A thief can backdate rotations. |
| PD-02-10 | KeyRotation carries url; mls-external-sender keys are vouched for by the active sign key. |
Enables verified moves; one continuity root. |
| PD-02-11 | discovery.metadata_changed (client and S2S) triggers immediate metadata refetches, urgent within 10 s after a revocation. |
Bounds the window in which a revoked key is still accepted to seconds for known peers. |
| PD-02-12 | Server-side resolution refuses non-public target addresses (discovery.forbidden_target). |
Server-side request forgery protection. |
| PD-02-13 | same-site evidence justifies a pin change only when the base-URL host is the queried domain, a subdomain of it, or the pinned host. Adopted as D-081. |
Registrable domains are often shared by parties that don't trust each other. |
| PD-02-14 | Servers pin each peer's secure flag and never accept true → false (secure_downgrade). |
Enforces D-073 at federation level; protects 12's DM hosting rule and SM-10. |
| PD-02-15 | Continuity runs forwards from the pinned chain head: a chain ending before it is a rollback, new elements must be an unbroken run signed by a pinned next or active sign key (or one vouched for earlier in the run), and only the highest element's url binds a base URL. |
Stops truncated-chain rollbacks to an old base URL and chain extension with long-retired keys. |
| PD-02-16 | A retired sign key verifies only JWSs whose iat is at most its retiredAt; a stale key set verifies newly signed objects for at most 24 h; rvt decides which already-verified objects a verifier may keep. |
Bounds what a leaked retired or revoked key can do. |
| PD-02-17 | A links.join template's host must be the base-URL host or one of the server's domains, and clients check it by discovery (01 §11.2, §11.4). |
Stops a server from capturing other servers' share links through 01's template matching. |
| PD-02-18 | Clients recover a rejected pin of another server through their home server's /v1/resolve; a rejected home-server change shows only "temporarily unreachable", and a later self-started sign-in can't start an upgrade, reset, pairing, backup upload or key deletion unless the IdentityState names the device's identity key. |
Clients have no admin; prompting a sign-in would lead people to an attacker's server. |
23. References
23.1 Normative
- RFC 2119, RFC 8174 — requirement key words
- RFC 1034, RFC 1035 — DNS concepts and TXT records; RFC 2181 — DNS clarifications; RFC 2308 — negative caching
- RFC 4033, RFC 4034, RFC 4035 — DNSSEC
- RFC 8484 — DNS queries over HTTPS (DoH)
- RFC 8552 — underscored DNS node names
- RFC 8615 — well-known URIs
- RFC 3986 — URI syntax and normalization
- RFC 6570 — URI Template
- RFC 5890, RFC 5891 — IDNA2008; Unicode UTS #46 — IDNA compatibility processing (as applied by 01)
- RFC 6761, RFC 6762 (§3,
local), RFC 7686 (onion), RFC 8375 (home.arpa), RFC 9476 (alt) — special-use domain names; IANA Special-Use Domain Names registry - RFC 6890 — special-purpose IP address registries
- Public Suffix List (https://publicsuffix.org/), ICANN and PRIVATE sections
- RFC 5234 — ABNF; RFC 8259 — JSON; RFC 7493 — I-JSON
- RFC 3339 — timestamps; RFC 4648 — base64url
- RFC 9110 — HTTP semantics; RFC 9111 — HTTP caching
- RFC 9457 — problem details
- RFC 8446 — TLS 1.3; RFC 9525 — service identity in TLS
- RFC 7515 — JWS; RFC 7517 — JWK; RFC 7519 — JWT (NumericDate); RFC 8037 — EdDSA in JOSE; RFC 7638 — JWK thumbprint
- RFC 8032 — Ed25519
- RFC 8030 — Web Push; RFC 8292 — VAPID
- Sloppy Voice v2: 00 (overview), 01 (addressing), 03 (transport), 04 (crypto conventions)
23.2 Informative
- RFC 7208 — SPF (the TXT string-concatenation rule follows its §3.3)
- RFC 8555 — ACME
- RFC 1918, RFC 4193, RFC 6598 — private and shared address space
- RFC 6962 / RFC 9162 — Certificate Transparency
- RFC 9420 — MLS (external senders); RFC 9750 — MLS architecture
- RFC 8252 — OAuth 2.0 for native apps (sign-in after discovery, 05)
- Sloppy Voice v2: 05, 06, 07, 09, 10, 12, 13, 15, 19, 20, 21, 22;
spec/DECISIONS.md