fix(certificates): add reliable issuance progress and DNS propagation handling
- replace raw ACME terminal logs with a scrollable TUI progress console - check authoritative DNS servers to avoid stale recursive cache delays - add per-order timeouts and actionable failure messages - support safe cancellation with DNS challenge cleanup - add background progress, summaries, and activity history - expand certificate workflow and TUI regression tests
This commit is contained in:
15 files changed
+719
-44
No files matched your search
@@ -40,6 +40,8 @@ Credential identities and remote accounts are separate. One user token may expos
|
||||
|
||||
Operator-facing removal and routing retain immutable local credential/zone IDs across confirmation and reload. Removing a local connection can reassign preferred routes only after recent per-zone write evidence plus a fresh DNS read through the replacement. Explicit routing verifies DNS read immediately; write authority remains visibly unproven until Cloudflare accepts a real mutation.
|
||||
|
||||
ACME library output never owns stdout. Certificate stages are converted into persisted jobs and non-blocking application events; the TUI consumes those events in a bounded, scrollable progress console. Each order has an independent safety deadline, while cleanup detaches from an expired issuance context for one bounded attempt to remove the exact journaled TXT record.
|
||||
|
||||
After a successful full sync, a zone no longer visible to its preferred credential is retained as cached history but marked unknown and detached from that stale preference. DNS-read authority is also stored per credential and zone. An authoritative 401/403 on a later zone read atomically removes that evidence and detaches only the denied route, while transient transport, rate-limit, and server failures preserve the last successful observation. A later credential that rediscovers the zone can restore routing without trapping credential removal behind an unreachable zone.
|
||||
|
||||
Future providers should implement only their supported capabilities and register statically. A future third-party plugin system should be an out-of-process, versioned protocol rather than Go’s in-process plugin mechanism.
|
||||
|
||||
@@ -24,6 +24,8 @@ Tokens are masked during entry. Headless use accepts a token file or vault-passw
|
||||
|
||||
TUI connection removal and zone routing bind confirmation to immutable local IDs rather than filtered row positions or non-unique labels. Removal shows affected routes, uses a bounded long-running verification window, and refuses to remove a credential when any preferred zone lacks a live-readable replacement with recent observed write success. Explicit preference changes live-probe DNS read access and label write authority as unproven until an actual provider mutation succeeds.
|
||||
|
||||
Certificate progress is structured and bounded; third-party ACME logs are discarded rather than allowed to corrupt the TUI or JSON output. DNS readiness is verified against all authoritative nameservers, avoiding stale recursive negative caches. ACME orders terminate at an explicit per-order deadline, and operator cancellation retains a separate bounded cleanup context so an already-created TXT record is not abandoned merely because the issuance context ended.
|
||||
|
||||
## ACME safety
|
||||
|
||||
- Staging is the default issuance environment.
|
||||
|
||||
Reference in new issue
Block a user