Skip to content

A certificate renewal is not a TLS warning - #2

Merged
ZeeshanSultan merged 1 commit into
mainfrom
fix/acme-success-not-a-warning
Dec 5, 2026
Merged

ZeeshanSultan merged 1 commit into
mainfrom
fix/acme-success-not-a-warning

Conversation

@ZeeshanSultan

Copy link
Copy Markdown
Member

Symptom: the public relay logged WARN TLS is not being served yet once a minute for 17 days, about 25,000 times, while serving TLS correctly.

Cause:

  • ACMEStatus.Report() is documented as empty when nothing is wrong, but after a successful issuance it returned "certificate for X obtained N ago".
  • The server's ticker logs any non-empty report as that warning. The age made every report look new, so the dedupe never matched.
  • A restart only hides it: a certificate loaded from cache raises no event, so the next renewal starts it again.

Fix:

  • Report() stays empty unless the latest issuance failed.
  • New Obtained() returns the success details.
  • The ticker logs one INFO line when a reported problem clears.

Tests: the success test now asserts the opposite of what it pinned. TestASuccessAloneIsNotAWarning covers the production case: a renewal with no failure before it. go test ./... passes all 18 test packages.

🤖 Generated with Claude Code

ACMEStatus.Report is documented as empty when nothing has gone wrong, but
after a successful issuance it returned "certificate for X obtained N ago".
The server's status ticker logs any non-empty report as "TLS is not being
served yet", so every issuance or renewal started a warning that repeated
once a minute (the age made each report look new) until the process
restarted. The public relay logged it about 25,000 times over seventeen days
while serving TLS correctly. A restart only hid it: a certificate loaded from
the cache raises no event, so the next renewal would have started it again.

Report now stays empty unless the latest issuance failed. Obtained() gives the
success details, and the ticker uses them to log one INFO line when a
reported problem clears, instead of nothing.

The success test now asserts the opposite of what it pinned before, and
TestASuccessAloneIsNotAWarning covers the production case: a renewal with no
failure before it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ZeeshanSultan
ZeeshanSultan merged commit 70a35ce into main Dec 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants