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:
Meghdad committed 2026-07-13 06:53:45 +03:30
1 parent e925ade94a
commit 2518e345fc
15 files changed
+719 -44

No files matched your search

+7
View File
@@ -83,6 +83,9 @@ Cloudflare’s token-verification response does not disclose effective write sco
| `p` | Live-verify and set the selected zone’s preferred connection |
| `n`, `e`, `d` | Create, edit, or delete a DNS record |
| `n`, `u`, `i`, `x`, `d` | Issue, renew due, import, export, or revoke a certificate in the Certificates view |
| `↑` / `↓`, `PgUp` / `PgDn`, `Home` / `End` | Inspect the bounded activity history during certificate issuance or renewal |
| `b` / `o` | Background the certificate progress console or reopen it while navigating |
| `c` or `Esc` | Cancel an active certificate batch and wait for exact DNS challenge cleanup |
| `m`, `h`, `t`, `v` | Adjust the TLS mode, HTTPS, TLS 1.3, or minimum TLS version |
| `s` | Review and apply the Cloudflare TLS diff |
| `?` | Contextual help |
@@ -90,6 +93,8 @@ Cloudflare’s token-verification response does not disclose effective write sco
Long-running synchronization, certificate, and public endpoint jobs run outside the render loop. The TUI remains navigable while they work.
Certificate issuance and renewal use a dedicated progress console rather than writing ACME library logs to the terminal. It shows per-zone stages, DNS propagation waits, elapsed/deadline timing, completed and failed counts, and a scrollable 500-event activity history. Every individual ACME order has a ten-minute safety deadline; cancellation gives exact-record DNS cleanup a separate bounded window before the operation finishes.
## Certificate issuance
Wildcard certificates use DNS-01. A default plan for `example.com` contains both:
@@ -129,6 +134,8 @@ Production issuance always requires explicit confirmation. A large selection cre
Each order first verifies the active zone, exact preferred DNS credential, and nested challenge routing, then checks read-probed DNS-access and cached CAA signals. Cloudflare enforces write permission when the challenge is created, and Let’s Encrypt performs the authoritative live DNS and CAA checks.
DomainOps waits for the challenge value on Cloudflare’s authoritative nameservers. It intentionally does not require the machine’s recursive resolver to refresh first: recursive resolvers can retain an earlier NXDOMAIN for the SOA negative-cache period even after the authoritative TXT record exists. The CA still performs its own independent DNS validation.
Renew only certificates inside their stored renewal window:
```bash