Änderungsprotokoll der Relay-Spezifikation
Was sich in jeder Version der Relay-Spezifikation geändert hat, so wie es am Ende der Relay-Spezifikation selbst steht.
Abonniere den Atom-Feed, um neue Versionen im Feedreader zu bekommen.
Atom-FeedDie Einträge sind aus der Spezifikation zitiert und daher auf Englisch.
v0.1.0
In der Spezifikation The first version of the Relay Specification in its own repository. It requires SPEC-v0 v0.2.0,
and nothing in it is frozen yet (Section 11).
Section 8: a fifth class
issuancechecks what an operator claims withacme_casand its CAA records. The test tool, as the gateway of the second installation, obtains a certificate for its standard name from a CA ofacme_casthrough the operator's challenge records, and orders a certificate for the wildcard name and one with an account it never reported, which the CA must refuse for the CAA records; only this shows whether a CA sees the records that gateways see. It uses the CA's test environment by default; Certificate Transparency (SCTs of logs of at least two operators of Google's signed log list, inclusion proofs from the logs with-ct-verify, and no other certificate for the name since the pairing) is checked only in production, and a run is conformant only with the production environment and-ct-verify. Section 8.1 lists what no live test can check, and the report lists it as well; refusals of HTTP-01 and of a name without an account are among them. Section 8.4: a run in production obtains one real certificate.cas.mdnames the ACME directories and the account URI prefix of the test environment. The two refusals are ordered together, after the TTL of the earlier challenge value has passed, so that a resolver of the CA no longer holds it. Gateways are not affected; Section 12: none of this triggers an event.Section 8.3: a production run leaves a file without keys, and
-ct-verifywith it completes the run: inclusion of the certificate in every log of the list that gave it an SCT, from RFC 6962 logs by tree head and proof, from tiled logs (static-ct-api) by checkpoint and hash tiles, each tree head verified with the key from the list; before a log's maximum merge delay a missing entry makes the result incomplete, after it a failure, and a tree head that does not verify leaves the result incomplete. The snapshot counts a certificate for the standard name or a covering wildcard with another key that is valid at some time since the run. A search source is reached with TLS 1.2 or later, has two minutes for an answer and is asked up to three times, with pauses from the budget for waiting, when it cannot be reached, does not answer, limits the rate or fails with a server error.Normative change, Sections 3 and 6.4: before its
from, an operator MAY withdraw a planned set of relay addresses or move itsfromlater, never earlier; a set with other addresses is a new set with its own 30 days, and a withdrawal ends the duty to accept agent connections at the planned addresses. A gateway tells the household of a withdrawal or a new date, discards or replaces thefromit stored, and keeps it when the newfromis earlier, telling its administrator. Section 12: none of this triggers an event.Normative change, Section 5.2: an operator notifies the household on all its channels also when a pairing code for an existing installation is used, with the time.
Normative change, Sections 5.7, 6.7 and 7.4: after its pairing ended, a gateway SHOULD go on monitoring Certificate Transparency for its former standard name for 90 days and raise the alarm for every certificate it did not obtain; the CAA checks and the reads of the installation end with the pairing. After that, only the operator's monitoring of the name domain covers the name, for as long as the home ID is reserved. Section 12: the alarm triggers no event of audit/v1. Section 9 says what this gives against a replacement by an attacker.
Normative change, Section 6.4: during a move of the name domain (Section 7.9), the operator refuses own-domain names at or below the old and the new name domain for every installation, and a gateway checks both before it sends a name.
Sections 7.4 and 7.5: an operator keeps, without a link to a person, the times at which a reserved home ID was assigned and unpaired, which its monitoring needs.
Section 7.1: a request from a browser that changes anything (SPEC-v0 Section 11.7 item 5) is one that changes state and is accepted on the strength of a cookie, or that starts a session: the submission of a sign-in, a consent, an answer to an approval request and every change in the user interface. The authorization request is not one while it grants no more than a human already granted to the same client; otherwise a gateway changes no state on a request with a safe method. Requests without a cookie, such as those to the token endpoint, are protected by their credentials.
Section 6 names the gateway rules of Section 7.1 (
__Host-cookies, checks ofOriginor a token) and of Section 7.8 (backoff after a CA's limits), which bind every gateway that uses a relay.README: the table of contents names
schema/andexamples/(Apache 2.0) andconformance/enrollment-v0.json, in place of a row with an empty path.Section 11: until the core has an audit version 2, a change to this document keeps within the events, members and values of audit/v1. Section 12 says that every entry without the administrator as
actornames none, whoever caused it.Values a gateway records fit audit/v1 of the core:
acme_accounthas at most 508 characters, and atimesuch asreplacement_pending_untilis a date that exists, without the year0000and without a second 60; a message with another value does not follow the schemas. Section 12 namescaa_identityinrelay.acme_account_changedand theactorof each event.Certificate Transparency: the reference gateway follows the core, where a key presented under the public origin recognises no certificate (
t47,t49) and a certificate's time comes from a source, the earliest SCT or the first sight (t50tot52); each new fault fails its cases.New Section 12: each
relay.*event of the audit formataudit/v1of SPEC-v0 v0.2.0 is mapped to the event of this document that triggers it, with the causes for the end of a pairing, the states of an ACME account report, whether monitoring is possible, a key change, a pending replacement, a relay key that matches no pin, and what the gateway refuses: a pairing response that fails a check, a set of pins it ignores and metadata whose pins it does not know. Events that the relay or the operator can trigger again and again are recorded at most once within 60 minutes for each value. This version requires SPEC-v0 v0.2.0 for that format.Normative change, Section 4.7: over its connections with an active pin, a gateway stores at most one new set of pins an hour that adds a pin, and answers
ignoredto further sets; a set that only removes pins and a connection with a backup pin have no limit.pins-v0.jsonstates the time of a case (stored_minutes_ago,after_minutes) and the kind of another connection (kind), and has cases for the limit (n56ton63).The reference code reads requests and key changes with its own package, on top of the compact serialization and the signature checks of SPEC-v0's Go module, so that a rule of this document no longer needs a release of the core module. The reference gateway applies the acknowledgement of a public key and the key read again from the public origin of
conformance/ct-v0.json(SPEC-v0 Section 11.7 item 7).This specification moved from home-mandate/spec to its own repository, home-mandate/relay-spec, with its own versions (Section 11). Paths lose the prefix
relay/; the Go module isgithub.com/home-mandate/relay-spec. The cases of Certificate Transparency monitoring stay in SPEC-v0 (conformance/ct-v0.json). New Section 11.Sections 1.1, 6, 6.1, 6.7, 7.1 and 8.5: the rules that hold for every gateway reached from outside, whichever way, are now in SPEC-v0 Section 11.7: the public origin as OAuth issuer, Certificate Transparency monitoring (now from at least two independent sources) and pages under a public name. This document refers to them.
ct-v0.jsonand its schema moved toconformance/of the Home-Mandate Specification, withsincein place ofpairing. Section 6 points to the gateway rules of Sections 7.1 and 7.8.Normative change, Sections 3 and 5: the gateway fetches the metadata and talks to the enrollment endpoint with TLS 1.3 or later; TLS 1.2 is no longer enough.
Section 8.3: a run in which
acme_caslists no CA ofcas.md, or in which a check is skipped without an earlier failure, is incomplete, not conformant.Section 8.5 and the files
pairing-v0.json,pins-v0.json,proxy-v0.json,destination-v0.json,caa-v0.json,protection-level-v0.jsonandct-v0.json: cases for the decisions of a gateway, without classes of gateways and without a test tool for them. Section 3: a gateway MUST NOT connect to an address that is not globally reachable unicast; it resolves a name once per connection attempt, checks every address, opens the socket to the checked address itself (no proxy that resolves the name), follows no redirect of the metadata or the tunnel and checks the address of a redirect of an enrollment response too; in IPv6 only 2000::/3 and, by the embedded IPv4 address, 64:ff9b::/96 count, 2002::/16 never, and a text that is no address is refused; the rule on ranges of addresses in the metadata binds the operator, and a gateway MAY refuse such a document. Section 4.6: the gateway ignores the destination of the PROXY header, closes on a source port of 0, MAY refuse further ranges of source addresses and MUST NOT refuse 100.64.0.0/10. Section 5.2: a gateway refuses a pairing string that does not match$defs/pairing_string(maxLength273 in the schema) or has an operator domain longer than 253 characters, and shows the operator domain as an A-label.Normative change, Sections 4.1, 4.7 and 6.8: the kind of the pin of a connection is fixed at the handshake and judged for each
pinsagainst the pins stored at that moment; a set equal to the stored one is answeredstoredfirst, a set when the pin is no longer stored in that kind isignored, and the gateway closes a control connection, after the answer if the set arrived on it, as soon as a stored set leaves its pin no longer stored at all, also when the set arrived on another connection; a set need not contain the pin of the connection. A relay that listed its backup key among the active pins cannot announce a second set on that connection, and a new connection with that key cannot change the backup pins, so a change of the backup pins needs a second backup key.Sections 6.3, 6.5 and 6.7: records are compared by meaning (case of domain and tag, parameter tags and values byte for byte, flags disregarded, duplicates and further parameters differ, an empty value is
;, the order of parameters is irrelevant, malformed values); failed queries, NXDOMAIN, successful rounds and independent resolvers (a difference counts whenever a resolver that answered shows it; only the 24 hours depend on a successful round); CNAME or DNAME at the queried name or an ancestor is a difference, and the operator publishes none at the apex; a repeat only for resolvers that still differ; less than one hour for the excuse and none for the standard name before one hour has passed;unsignedandboguszones, the AD bit and providers in Section 6.5; names, wildcards, the lookback since the pairing, the first log entry and the replacement of a server key in the Certificate Transparency monitoring; a certificate that is not valid yet raises an alarm, and an acknowledgement names the digest of the TBSCertificate.Section 5.2: a pairing code is redeemed only when the installation is created, in one atomic step, so an installation key that is in use (
key-conflict) or a bad certificate request leaves the code usable; the check of the key, the redemption and the creation are one atomic step, so that two concurrent pairings with one key and two codes cannot create two installations, and akey-conflictfor a valid code counts against the per-source attempt limit like a failed code. Section 6.4: a token belongs to one registration; when it ends, the token is discarded and a later registration, also of the same name, gets a new one, and an operator MUST NOT use a token again.Section 8.1, 8.3 and Section 3:
metadataalso covers Sections 7.1 and 7.3, andrelaySection 6.8; the test tool is incmd/, it is conformant only with two pairing codes, an own domain and all classes,blocked,offline-too-longand replacement codes are checked offline only, DNSSEC and IPv6 are hints;relay_addressesMUST be globally reachable unicast addresses.Section 6.4: registering a name that is registered already makes the operator look up the TXT record again, so that a household does not wait a day for the first verification. Section 8.2:
enrollment-v0.json, the order of the checks of a request (Section 5.1). Section 8.3: the ACME account URI of the test has the form of the CA's account URIs and a number that no account has.Section 8: cases for certificate signing requests, issued tunnel certificates, frames of the control connection, the binding of data connections and TLS of tunnel connections. Section 5.4: the key of a request is a key in the sense of Section 5.1, a P-256 point uncompressed; the
notBeforeof a tunnel certificate is no later than issuance and before itsnotAfter; a tunnel certificate without a basic constraints extension hascA=false, and its extended key usage holdsserverAuthandclientAuthand no other usage. Section 4.2: a relay selectsX25519MLKEM768also when a ClientHello lists other groups. Section 4.4: astream-openthat arrives after the gateway'sdrainis refused withstream-close, not treated as an error.Section 8 specified: conformance classes of operators (
metadata,enrollment,dns,relay), machine-readable cases inconformance/with their own manifest, a live test of an operator withrelay-conformance, and a test account that an operator claiming conformance gives for repeated tests.Section 4 specified: the tunnel protocol, with the parameters of the operator from the metadata, the gateway's tunnel certificate and the relay authenticated by its pins alone, TLS 1.3 with the hybrid group
X25519MLKEM768only, frames and message types, control connection with heartbeat and one connection per installation, the relay as one logical service across instances, load balancers and regions, data connections bound by single-use tokens, warm data connections kept for a few heartbeat intervals, PROXY v2 with the agent's address also behind load balancers, the messagespinsandpins-ack, limits that the other side has to keep to and RECOMMENDED limits of the relay, and errors. Security considerations for the tunnel.Section 7 specified: separate domains, Public Suffix List where an operator qualifies,
__Host-cookies, what an operator does not do, both protection levels for every installation, monitoring of the name domain, retention within the law of the operator's jurisdiction, with data and periods published and changes told within 30 days, abuse measures without access to content, offline backup keys with tested recovery, limits of the CA, incidents and the end of a service, and what can be checked from outside.Section 10 specified: what an operator and others learn.
Skeleton: goal, terminology, operator metadata with schema and example, outline of pairing and issuance.
Section 6 specified: standard and own-domain names, protection levels, CAA at the apex and at each name, registration and verification of own-domain names, determining the protection level in the gateway, CAs that log every certificate and enforce RFC 8657 (informative list
cas.md), Certificate Transparency and CAA monitoring, active and backup pins; relay addresses in the metadata; errorname-unavailable.Section 5 specified: directory, nonces and signed requests, errors, pairing (including a pairing code for an existing installation), installation, tunnel certificate, renewal and re-issuance within
max_offline_days, key change, ACME support with a CAA binding to the gateway's ACME account, unpairing and blocking; schemaschema/enrollment-v0.schema.jsonwith examples. Security considerations for Section 5.Follow-ups for Sections 5 and 6 (#44): spelling-rule violations are
malformed, response timeout and fixed enrollment host, stray installations after a lost pairing response, failed response checks do not unpair, notification-channel changes before a replacement code, the gateway revokes foreign certificates after a pairing and asks for a new own-domain CAA record, CSR algorithms and the checks a gateway makes on its tunnel certificate, rejecting and expiring a pending ACME account, which CAA properties count as a deviation, earlier server keys in CT monitoring, relay address changes advised only once visible at the standard name, rules for announced pin sets and the lead time of a key rotation, what a gateway does after an unconfirmed ACME account change, no CAA alarm for the previous record in the hour after a change (TTL of at most 3600 seconds), when a gateway revokes after a pairing, a read of the installation at least every 12 hours, a warning before a replacement that a running gateway MUST give, past exposures reported by Certificate Transparency monitoring.