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

+16
View File
@@ -1,8 +1,12 @@
package bootstrap
import (
"bytes"
"errors"
"log/slog"
"testing"
legolog "github.com/go-acme/lego/v5/log"
)
func TestReconcileJobsAfterRecoveryRunsOnlyAfterSuccessfulRecovery(t *testing.T) {
@@ -26,3 +30,15 @@ func TestReconcileJobsAfterRecoveryRunsOnlyAfterSuccessfulRecovery(t *testing.T)
t.Fatalf("successful recovery result = %v, reconcile called=%v", err, called)
}
}
func TestConfigureACMELoggerDoesNotWriteToTerminal(t *testing.T) {
original := legolog.Default()
defer legolog.SetDefault(original)
var output bytes.Buffer
legolog.SetDefault(slog.New(slog.NewTextHandler(&output, nil)))
configureACMELogger()
legolog.Info("dns01: waiting for record propagation.", slog.String("domain", "*.example.com"))
if output.Len() != 0 {
t.Fatalf("ACME logger escaped to terminal: %q", output.String())
}
}