cert import (#1429): design rev 3 (option A: one invariant per family)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+233
−242
docs/superpowers/specs/2026-11-25-cert-import-1429-design.md+233 −242
diff --git a/docs/superpowers/specs/2026-11-25-cert-import-1429-design.md b/docs/superpowers/specs/2026-11-25-cert-import-1429-design.md| index d0643a06a..5ed852f5a 100644 |
| --- a/docs/superpowers/specs/2026-11-25-cert-import-1429-design.md |
| +++ b/docs/superpowers/specs/2026-11-25-cert-import-1429-design.md |
| @@ -1,10 +1,17 @@ |
| # Imported certificates for custom domains before a DNS move (#1429) |
| -Rev 2, 2026-11-25. Discussion: amadan carlos/platform #1429 (ask), #1293 |
| +Rev 3, 2026-11-26. Discussion: amadan carlos/platform #1429 (ask), #1293 |
| (DNS-01 pre-issue, merged 042e1af and 49bcf97). Review budget: at most |
| three rounds each for Astra and Fable (AGENTS.md "Stopping rules"). |
| -Round 1: Astra NOT READY (3 P1, 2 P2), Fable READY AFTER FIXES (6 P2, |
| -6 P3); dispositions at the end. |
| + |
| +Round history: |
| +- R1: Astra NOT READY (3 P1, 2 P2); Fable READY AFTER FIXES (6 P2, 6 P3). |
| +- R2: Astra NOT READY (4 P1), with stopping rule 2 triggered for two fault |
| + families (binding to the claim; per-client selection); Fable READY AFTER |
| + FIXES (2 P2, 7 P3). |
| +- Paul chose option A on 2026-11-26: one invariant per family, each |
| + enforced in one function, with a randomized interleaving test; then |
| + round 3, the last. |
| ## Why |
| @@ -16,266 +23,250 @@ gives every name minutes of TLS errors (the 5 to 7 minute DNS stamp, then |
| the order). DNS-01 pre-issue (#1293) can't help: the zones are the |
| customers'. |
| -An operator who already holds a valid certificate and key for the name |
| -imports them. Every edge serves the import from that moment, the alias |
| -is relayed by every edge before DNS points here, and once DNS has moved |
| -CARLOS orders its own certificate, which takes over for every client it |
| -suits. The import is served to the clients only it suits until it |
| -expires. |
| +An operator who already holds a valid certificate and key imports them. |
| +Every edge serves the import from that moment, the alias is relayed by |
| +every edge before DNS points here, and once DNS has moved CARLOS orders |
| +its own certificate, which takes over for every client it suits. The |
| +import serves the clients only it suits until it expires. |
| ## Preconditions |
| -- Every box of the deployment runs a release with this change, and |
| - runs with the deployment bucket (the normal multi-edge shape; a box |
| - without one has no cert mirror and no edges file). An old edge does |
| - not serve imports and an old home box does not publish early, so an |
| - import before the roll finishes gives TLS errors on old edges. The docs |
| - and the import's answer say to check with `curl --resolve` on a |
| - non-hub edge before moving DNS. |
| +- Every box runs a release with this change. An old edge does not serve |
| + imports and an old home box does not publish early. The docs and the |
| + import's answer say to check with `curl --resolve` on a non-hub edge |
| + before moving DNS. |
| +- The edges that end TLS and the box that publishes the alias run with |
| + the deployment bucket. For a fleet app (Tito Pro: fleet |
| + tito-production, boxes without the bucket) that is the case already: |
| + the hub (IE) holds the fleet's forward rows and publishes their |
| + aliases in its edges file, and the region edges end TLS from |
| + `control/certs/` and relay to the hub and over the tunnel. The fleet |
| + boxes never see the certificate. Tested (host: a fleet forward row's |
| + alias on a hub publishes early with a usable import). |
| +- The console is not in host-claim mode (`CARLOS_HOST_CLAIM`); the door |
| + is closed there, as domain buying and fleet drain are. Tito production |
| + confirmed unset. |
| ## Who may import, and for which account |
| -`carlos domains cert import <host> --cert fullchain.pem --key key.pem |
| -[--allow-wildcard]`, sent to a new console door, |
| -`PUT /api/cli/apps/{account}/{app}/domains/{host}/cert`. All of these, |
| -in this order, else refused: |
| +`carlos domains cert import <host> --app <a> --cert fullchain.pem --key |
| +key.pem [--allow-wildcard]` and `carlos domains cert remove <host> --app |
| +<a>`, through `PUT` and `DELETE /api/cli/apps/{account}/{app}/domains/{host}/cert`. |
| +All of these, in order, else refused: |
| 1. `domainsGate`: signed in, a member of `{account}` with `{app}` |
| - (the domains family's byte-identical 404 for anyone else), rate |
| - limited, deployment bucket configured. Route declaration |
| - `Allow: svcrole.Set{}` (no service credential) and refused for linked |
| - credentials, like the other domain writes. |
| + (byte-identical 404 otherwise), rate limited, bucket configured. No |
| + service credential (`svcrole.Set{}`), refused for linked credentials, |
| + closed on host-claim consoles. |
| 2. `principalPlatformOperator`: a person who is an ops account owner or |
| - on `CARLOS_SYSTEM_OPERATORS`. Anyone else: 403 with the |
| - platform-operator message. An import is the deployment operator's |
| - act, inside an account they belong to, the rule |
| - `domains attach --platform` already uses. |
| -3. The claim `domains/<host>.json` exists, is held by `{account}` and |
| - `{app}`, is not pending (#215), and is an exact name (no `*.` claim, |
| - no instance catch-all). Otherwise the neutral 404, as detach answers. |
| - |
| -`DELETE` on the same path removes the import (gates 1 to 3; a missing |
| -import is 200 with `removed: false`). |
| + a system operator. Anyone else: 403. |
| +3. The claim exists, is held by `{account}` and `{app}`, is not pending, |
| + is exact (not `*.`, not an instance catch-all), and has a |
| + `created_at`. Otherwise the neutral 404. |
| ## Validation (console, before any write) |
| -The request carries the two PEM texts. The body is capped at 64 KiB. |
| - |
| -- **Key**: exactly one unencrypted private key block (PKCS#8, PKCS#1 RSA |
| - or SEC 1 EC). Encrypted PEM, a second key, or any other block in the |
| - key text is refused. RSA 2048 to 4096 bits; ECDSA P-256 or P-384. |
| - Anything else is refused. |
| -- **Chain**: one to five CERTIFICATE blocks, leaf first, nothing else. |
| -- **Key matches leaf** (`tls.X509KeyPair`). |
| -- **Chain is valid**: `leaf.Verify` with the supplied intermediates, |
| - `KeyUsage` server auth, `DNSName` = host, against the Mozilla root set |
| - from `golang.org/x/crypto/x509roots/fallback/bundle` (already in |
| - go.mod), not the console host's store. Self-signed and private-CA |
| - certificates are refused. |
| -- **Not a CA**: the leaf has no `IsCA`. |
| -- **SAN covers the name**: implied by `Verify(DNSName: host)`. If no SAN |
| - names the host exactly and only a wildcard matches, refused unless |
| - `--allow-wildcard`. With it, the import is still served for this one |
| - exact host only. |
| -- **Dates**: `NotBefore` ≤ now, and `NotAfter` more than 7 days away. |
| -- **Not revoked**: not checked (Let's Encrypt no longer runs OCSP). Said |
| - in the docs. |
| - |
| -Refusals are 400s that name the failed check by kind ("the key does not |
| -match the certificate"), never echo input bytes. The CLI reads the two |
| -files and sends both over the console's HTTPS connection. |
| +Body capped at 64 KiB (413 above). Key: one unencrypted private key block |
| +(PKCS#8, PKCS#1, SEC 1) and no other PEM block; RSA 2048 to 4096, ECDSA |
| +P-256 or P-384. Chain: one to five CERTIFICATE blocks, leaf first, |
| +nothing else. Key matches leaf. `leaf.Verify` with the supplied |
| +intermediates, server-auth usage, `DNSName` = host, against the Mozilla |
| +roots from `x509roots/fallback/bundle` (per-root constraints kept). Leaf |
| +not a CA. Wildcard-only coverage refused without `--allow-wildcard`. |
| +`NotBefore` ≤ now and `NotAfter` more than 7 days away. Revocation not |
| +checked. Refusals are fixed sentences, never input bytes. |
| ## Storage |
| -One object, `control/certs/<host>+import`, written by the console with |
| -the create-or-replace CAS (`putCAS` shape). The console writes it from |
| -what it verified, not the operator's bytes: a binding block, the key |
| -re-encoded as PKCS#8, then the leaf and the intermediates `Verify` |
| -used. The binding block is a PEM block of type `CARLOS IMPORT BINDING` |
| -whose headers are `Host`, `Account` (sqid), `App` and `Claim-Created` |
| -(the claim's `created_at`, which a detach and re-attach changes). |
| -`tls.X509KeyPair` skips it, and autocert never reads `+import` names. |
| - |
| -- **At rest**: the deployment bucket's default encryption (SSE-S3, |
| - AES256, infra/modules/deployment-buckets/main.tf), as every |
| - CARLOS-issued key in `control/certs/` is stored; on box disks, mode |
| - 0600 in the edge's cert cache directory, as autocert's entries are. |
| -- **Never logged**: no log line, error, audit row or API answer carries |
| - key or certificate bytes. The handler never logs the body; parse |
| - errors map to fixed sentences. Answers and audit rows carry the leaf's |
| - SHA-256, issuer CN, SAN count and `NotAfter`. |
| -- **Its own name** (`+import`): autocert never reads it, so no autocert |
| - renewal timer and no order starts from an import; the backfill never |
| - republishes it (old binaries too: `ownsCertName` trims only `+rsa`, |
| - certsync.go:1368), so a deletion sticks without a tombstone; and a |
| - CARLOS certificate is told from an import by name. |
| -- The console becomes a writer of `control/certs/` (imports only). The |
| - writer-map note in certsync.go is amended to say so. |
| - |
| -## Binding to the claim |
| - |
| -An import authorizes a name for one claim acquisition: the binding's |
| -account, app and `Claim-Created`. Three places enforce it. |
| - |
| -- **The issuer reconciles** every minute (`importReconcileInterval`), |
| - from the mirror's snapshot and the claims it already reads through a |
| - `ClaimCache`: an import whose binding is unreadable, whose claim is |
| - gone, pending, or held by another account, app or acquisition, is |
| - deleted with `release.DeleteIfMatch` on the revision it read (a |
| - refusal deletes nothing and is retried). This is the one cleanup for |
| - every detach path (API, browser, attach rollbacks, catch-alls, claim |
| - lapses) and for an import door that died mid-write. At most five |
| - deletes a pass, one log line each. |
| -- **Early publication** (below) requires the alias row's account to |
| - equal the binding's `Account`. |
| -- **Serving** requires the name to be a deployment host (exact, some box |
| - publishes it or this box routes it), so a detached name stops being |
| - served at the next home map refresh even before the reconcile. |
| - |
| -Between a detach and the reconcile (up to a minute) a re-attach by |
| -another account can see the old import served for its name. The |
| -certificate is valid for the name and its key never leaves our edges; |
| -the new holder gets no early relay (account check) and the import is |
| -gone within the minute. |
| - |
| -## How edges serve it |
| - |
| -1. **Mirror.** `<host>+import` is parsed like any cert entry (the snapshot |
| - keeps the binding beside it). Locally it is reconciled by identity, |
| - not by expiry: the disk copy is rewritten whenever its bytes differ |
| - from the bucket's, and on every successful listing (full or |
| - changed-only) a scan of the cache directory deletes any `*+import` |
| - file whose key the listing did not return. A failed listing deletes |
| - nothing; a listed key whose Get failed is not deleted. The backfill |
| - skips `+import`. |
| -2. **Handshake layer**, a new wrapper between the mirror's |
| - `wrapGetCertificate` and the wildcard wrapper, so the warm (which |
| - calls `perHostCert`, below it) never sees it. In order: |
| - - a hello offering only `acme-tls/1` goes straight to the inner |
| - chain (a tls-alpn-01 validation must reach its token); |
| - - if the mirror snapshot holds a usable CARLOS entry (`<host>` or |
| - `<host>+rsa`, in date, names the host) that the hello supports |
| - (`hello.SupportsCertificate`), pass through; |
| - - else, if it holds a usable import the hello supports, for a |
| - deployment host, serve the import; |
| - - else pass through. |
| - Imports are served from mirror memory only, never from the local |
| - disk fallback, so a removed import is never served by a box that has |
| - not listed since. |
| -3. **No order before DNS points.** The issuer's HostPolicy refuses a |
| - name for which the mirror holds a usable import unless some box, |
| - this one included, publishes it pointing (the warm set's own source: |
| - `homes.OwnServedHosts()` and `homes.ServedHosts()`). This covers the |
| - issuer as home box (Astra R1 P1-2): an incompatible hello that falls |
| - through to autocert neither orders nor loads a cached entry nor arms |
| - a timer. |
| -4. **Relay before DNS points.** The home box's edges-file writer already |
| - publishes a not-pointing alias, `dns_pointing: false`, when it is in |
| - the DNS-01 scope with a usable pre-issued certificate (49bcf97). It |
| - now also does so when the edge's cert cache directory holds a usable |
| - `<host>+import` (regular file, key matches, names the host, in date) |
| - whose binding `Account` equals the alias row's account. The issuer's |
| - `AliasNotPointing` refusal and the warm set's `dns_pointing` filter |
| - then apply unchanged. |
| - |
| -Before the move, `curl --resolve <host>:443:<edge IP>` on any edge shows |
| -the imported certificate and a relayed answer. |
| +`control/certs/<host>+import`: a `CARLOS IMPORT BINDING` PEM block |
| +(headers `Host`, `Account`, `App`, `Claim-Created`), the key re-encoded |
| +as PKCS#8, then the leaf and the intermediates `Verify` used. Same at-rest |
| +protection as CARLOS-issued keys (SSE-S3 bucket default; 0600 on disk). |
| +Nothing logs key or certificate bytes; answers and audit rows carry the |
| +leaf's SHA-256, issuer, SAN count and expiry. Autocert never reads |
| +`+import` names and the backfill never republishes them (old binaries |
| +too), so deletions stick without a tombstone. |
| + |
| +## Invariant 1: an import stays bound to the claim acquisition that authorized it |
| + |
| +Stated once, in `internal/domains/certimport_invariant.go`: |
| + |
| +> `control/certs/<host>+import` holds only an entry whose binding matched |
| +> the host's claim at the moment it was confirmed; an entry is withdrawn |
| +> only by the revision that was read, so no writer or deleter acting on a |
| +> stale view can replace or delete an entry bound to a newer acquisition; |
| +> an unreadable claim is never read as a detached one. |
| + |
| +Authority is (Host, Account, App, `created_at`). `acq` is a host-claim |
| +field, and those consoles refuse this door. Two acquisitions that collide |
| +on all four within one second are the same account and app, so the same |
| +authority. |
| + |
| +Enforced by three functions in `internal/domains`, each the only |
| +implementation of its decision: |
| + |
| +- **`WriteImport`**, the only writer (the console door calls it). Each of |
| + at most three attempts starts from fresh reads: the claim (refused |
| + unless the caller's account and app hold it, live and exact), then the |
| + object's revision, then a `Put` conditioned on that revision |
| + (create-only when absent). A conflict starts a new attempt from fresh |
| + reads; it never retries with only a fresh ETag. After the `Put` it |
| + re-reads the claim; if the claim no longer matches, or the re-read |
| + fails, it withdraws its own write with `DeleteIfMatch` on the revision |
| + it wrote, and fails. |
| +- **`RemoveImport`**, the operator's remove: read, then `DeleteIfMatch` |
| + on that revision; a conflict re-reads. Never an unconditional delete. |
| +- **`StaleImport`**, the issuer reconcile's only delete decision: stale |
| + when the binding doesn't parse or names another host, when the leaf |
| + expired more than 30 days ago, when the claim was read and is absent, |
| + or when it is present and doesn't match the binding. A claim the |
| + listing named but could not read (`ClaimCache.ListWithUnread`) keeps |
| + the import; a failed listing decides nothing. The reconcile deletes |
| + with `DeleteIfMatch` on the ETag it read, never on an unknown ETag, at |
| + most five a pass, on the issuer only. |
| + |
| +The generic cert sweep skips `+import` names (it deletes unconditionally), |
| +so the reconcile is the only expiry path for imports. |
| + |
| +Two consumers check the binding without being deleters: the home box's |
| +early publication requires the alias row's account and app to equal the |
| +binding's, and serving requires a deployment host. Between a detach and |
| +the next reconcile pass, an import bound to the old acquisition can still |
| +be served for the name. It is valid for that name and its key never |
| +leaves our edges. The new holder gets no early relay from it, and the |
| +reconcile removes it. |
| + |
| +**Guard:** a randomized interleaving simulation |
| +(`internal/domains/certimport_sim_test.go`). Over thousands of seeds it |
| +interleaves writes by two accounts and apps, detaches, re-attaches |
| +(including same-second ones), removes, reconcile passes, and injected |
| +read, list and CAS failures. After every step it checks: a successful |
| +write leaves its own binding matching the claim; no write leaves a |
| +non-matching binding of its own behind; a reconcile never removes an |
| +in-date import bound to the current claim; after a clean pass every |
| +remaining import matches; nothing but the holder's own write or remove |
| +replaces or deletes an import bound to the current claim. Each rule is |
| +mutation-checked (blind retry, unconditional delete, unread as absent). |
| + |
| +## Invariant 2: each hello gets a certificate it supports |
| + |
| +Stated once, beside `chooseCert` in `internal/edge`: |
| + |
| +> For a name with a usable import, the certificate returned is one the |
| +> hello supports (`hello.SupportsCertificate`) whenever any usable |
| +> candidate is; a supported CARLOS certificate is preferred over the |
| +> import; nil only when no usable candidate is supported. |
| + |
| +The handshake layer (between the mirror's `wrapGetCertificate` and the |
| +wildcard wrapper, above the warm's `perHostCert`): |
| + |
| +1. A hello offering only `acme-tls/1` goes to the inner chain. |
| +2. A name with no usable import (in date, binding names the host) for a |
| + deployment host goes to the inner chain: every other name is |
| + unchanged. |
| +3. Otherwise the candidates are the mirror snapshot's usable `<host>` and |
| + `<host>+rsa` entries and the import, and the layer returns |
| + `chooseCert`'s answer itself. It never asks the inner chain to choose, |
| + so no second choice can disagree (Astra R2 P1-4: the inner mirror |
| + classifies TLS 1.3-only hellos by cipher suite). A nil answer goes to |
| + the inner chain, where the HostPolicy below refuses before pointing. |
| + |
| +On the issuer, autocert's renewal timers for these names are armed by the |
| +warm, which calls the chain below this layer every pass. |
| + |
| +**Guard:** a randomized test over hello shapes (TLS 1.2 and 1.3, |
| +TLS 1.3-only suites, ECDSA-only, RSA-PSS-only, P-384 or not) and |
| +candidate sets (CARLOS ECDSA and RSA present, absent or expired; an RSA |
| +or ECDSA import), plus the R2 P1-4 regression through the whole chain |
| +on a non-issuer. Mutation-checked. |
| + |
| +## Imports are served from mirror memory only |
| + |
| +Never from the local disk fallback. A box that restarts with a stale disk |
| +copy does not serve it, and a box that boots while the bucket is |
| +unreachable serves no import until its first listing (CARLOS entries |
| +still come from disk). A running mirror whose refresh fails keeps its |
| +last good snapshot, imports included, until it lists again. |
| + |
| +## No order before DNS points |
| + |
| +The issuer's HostPolicy refuses a name for which the mirror holds a |
| +usable import unless some box, this one included, publishes it pointing |
| +(`homes.OwnServedHosts()`, `homes.ServedHosts()`). That includes the |
| +issuer as home box. A box with no label fails closed. |
| + |
| +## Relay before DNS points |
| + |
| +The home box's edges-file writer publishes a not-pointing alias, |
| +`dns_pointing: false`, when the edge's cert cache directory holds a |
| +usable `<host>+import` bound to the alias row's account and app (beside |
| +49bcf97's DNS-01 rule). `AliasNotPointing` and the warm set's |
| +`dns_pointing` filter then apply unchanged. |
| + |
| +## Mirror |
| + |
| +`<host>+import` is parsed into its own snapshot map (binding and |
| +certificate), never into the map the existing serving paths read. Disk |
| +copies are reconciled by identity: rewritten when the bytes differ, and |
| +deleted after every successful listing (full or changed-only) whose key |
| +set lacks them. A failed listing, or a listed key whose Get failed, |
| +deletes nothing. The backfill skips `+import`. |
| ## After the DNS move |
| -The home box stamps the alias pointing on its next DNS sweep (5 to 7 |
| -minutes; the import serves throughout). The alias joins the warm set, |
| -the HostPolicy stops refusing it, and the warm orders an ECDSA |
| -certificate over HTTP-01 within its normal budget. From then on every |
| -client that supports ECDSA gets CARLOS's certificate. An RSA import keeps |
| -serving RSA-only clients until it expires; after that they get what |
| -every other custom domain gives them today (the issuer orders an RSA |
| -certificate on such a hello, now that the name points). |
| - |
| -There is no early retirement: an import stays until it expires and the |
| -existing sweep removes it 30 days later, or until an operator removes |
| -it or the reconcile does. |
| - |
| -## Expiry and replacement |
| - |
| -- An import is served while its leaf is in date, never after. |
| -- CARLOS cannot renew an import before DNS points. If the move is |
| - delayed past its expiry, the operator imports the renewed cert-manager |
| - certificate; a re-import replaces the object, and every box's disk |
| - copy follows by identity. |
| -- `carlos domains get <host>` shows an import's issuer, SHA-256 and |
| - expiry. |
| - |
| -## Removal |
| - |
| -`carlos domains cert remove <host>` deletes the object; detaching the |
| -name gets it deleted by the reconcile. Every mirror stops serving it on |
| -its next listing (seconds, through the `control/certs` change index; at |
| -worst the mirror's full-rebuild backstop) and deletes its disk copy; the |
| -home box stops publishing the alias early on its next edges-file pass. |
| -Nothing republishes it. An old box keeps a disk copy it never serves or |
| -publishes, deleted when it upgrades. |
| +The home box stamps the alias pointing on its next sweep (5 to 7 |
| +minutes; the import serves throughout). The warm orders an ECDSA |
| +certificate over HTTP-01, and from then on every client that supports it |
| +gets CARLOS's certificate. An RSA import keeps serving RSA-only clients |
| +until it expires. After that, those clients are treated as on any other |
| +custom domain. No early retirement. |
| + |
| +## Expiry, replacement, removal |
| + |
| +- An import is served while its leaf is in date. CARLOS can't renew it |
| + before DNS points; if the move slips past its expiry, the operator |
| + imports the renewed certificate. A re-import replaces the object, and |
| + disk copies follow by identity. |
| +- The import's answer, and the console's GET of the hostname |
| + (`imported_cert`, shown only when its binding matches the current |
| + claim), carry the issuer, SHA-256 and expiry. No new CLI read verb in |
| + this slice. |
| +- Remove deletes the object. Mirrors stop serving it on their next |
| + listing, normally seconds through the `control/certs` change index and |
| + at worst the mirror's full-rebuild backstop (30 minutes). The docs say |
| + so for a compromised key. Old boxes keep a disk copy they never serve, |
| + deleted when they upgrade. |
| ## Audit |
| -`domain-cert-import` and `domain-cert-remove` rows on the app's |
| -Activity, as the operator: host, leaf SHA-256, issuer CN, `NotAfter`, |
| -and `--allow-wildcard` if used. The reconcile logs one line per deleted |
| -import (host and reason, no bytes). |
| +`domain-cert-import` and `domain-cert-remove` Activity rows as the |
| +operator: host, SHA-256, issuer, expiry, "(wildcard allowed)" when the |
| +flag was sent. The reconcile logs one line per delete (host, reason). |
| ## Not in scope |
| -Imports for wildcard claims, catch-alls or names under the apps domain's |
| -account namespaces; revocation checking; a browser door; automatic |
| -re-import from Kubernetes. |
| - |
| -## Tests (built first) |
| - |
| -- Console door: each gate and validation refusal (fixture CA with an |
| - injected root pool), the wildcard flag, RSA 8192 refused, re-encoded |
| - storage with the binding, no key bytes in any response, log or audit |
| - row; remove. |
| -- Mirror: `+import` parsed and synced; replaced on equal or earlier |
| - expiry; disk copy deleted when unlisted; kept on a failed listing and |
| - on a failed Get; never backfilled. |
| -- Handshake: ALPN pass-through with an import present; CARLOS wins when |
| - compatible; RSA import serves an RSA-only hello beside an ECDSA CARLOS |
| - cert; expired import not served; import not served for a non-deployed |
| - name; warm path never sees it. |
| -- HostPolicy: refuses an imported name homed on the issuer before |
| - pointing, for an incompatible hello and with an ordinary cached |
| - entry; allows it once published pointing. |
| -- Edges file: early publication with a matching account; none with |
| - another account, no import, or an unusable one. |
| -- Reconcile: deletes on claim gone, other account, re-acquired claim, |
| - pending; keeps a matching one; conditional delete refused deletes |
| - nothing. |
| -- End to end across an issuer and a second edge: import, relay before |
| - pointing, pointing, the warm's order, CARLOS preferred, removal. |
| - |
| -## Round 1 dispositions |
| - |
| -Astra R1: |
| -- P1-1 (orphaned import, binding): accepted. Binding block, issuer |
| - reconcile with conditional deletes, account check on early |
| - publication, deployed-host check on serving. |
| -- P1-2 (order before pointing on the issuer as home): accepted. HostPolicy |
| - refusal for imported names until published pointing, own file |
| - included. |
| -- P1-3 (retirement drops RSA coverage): accepted by cutting retirement |
| - and selecting by `SupportsCertificate`. |
| -- P2-4 (ALPN): accepted. |
| -- P2-5 (disk copy by expiry): accepted. Identity reconcile, and imports |
| - served from memory only. |
| - |
| -Fable R1: |
| -- P2-1 (ALPN): accepted, as above. |
| -- P2-2 (binding by hostname): accepted, as Astra P1-1. Deleting in every |
| - detach path is replaced by the one issuer reconcile. |
| -- P2-3 (three meanings of "usable"): gone with gate 4 and retirement. |
| -- P2-4 (local-delete mechanism, rollout wording, change-index latency): |
| - accepted. |
| -- P2-5 (home box without a mirror): stated as a precondition. |
| -- P2-6 (mixed fleet): stated as a precondition, with the curl check. |
| -- P3s: `SupportsCertificate`, snapshot-only lookup, re-encoded storage, |
| - RSA cap 4096 and the console as a writer all taken. |
| +Wildcard claims, catch-alls, apps-domain names, revocation, a browser |
| +door, automatic re-import, host-claim consoles, a CLI read verb. |
| + |
| +## Dispositions, round 2 |
| + |
| +Astra R2: |
| +- P1-1 (binding authority, stale writer, second-granular stamp): |
| + Invariant 1, `WriteImport` with fresh-read attempts and self-withdrawal, |
| + conditional deletes only, account and app on publication; the |
| + same-second case argued above. |
| +- P1-2 (unread claim as gone): `ListWithUnread`, unread keeps. |
| +- P1-3 (sweep deletes a replacement): the sweep skips imports; expiry |
| + goes through the conditional reconcile. |
| +- P1-4 (inner chain picks): Invariant 2, `chooseCert` returns the |
| + certificate itself. |
| +- P3 (memory-only overstated): reworded above. |
| + |
| +Fable R2: |
| +- P2-1 (unread claim): as Astra P1-2. |
| +- P2-2 (home box class): Preconditions, fleet apps via the hub, tested. |
| +- P3s: `created_at` required by gate 3, binding host checked by every |
| + reader, bundle root constraints kept, boot-in-outage stated, removal |
| + backstop stated, conditional delete supported by the production stores |
| + (S3 and dir). `ownership_state`: host-claim consoles are closed, so the |
| + ordinary claim states apply. |