Repository navigation
A certificate renewal is not a TLS warning - #2
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Symptom: the public relay logged
WARN TLS is not being served yetonce 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".Fix:
Report()stays empty unless the latest issuance failed.Obtained()returns the success details.Tests: the success test now asserts the opposite of what it pinned.
TestASuccessAloneIsNotAWarningcovers the production case: a renewal with no failure before it.go test ./...passes all 18 test packages.🤖 Generated with Claude Code