1 minor finding · 3 suggestions
Earlier concerns neither republished nor resolved: 3 minor findings · 3 suggestions. See the Run archive for their assessments.
Findings
[minor] · Uncaught CRL HTTP errors are mistaken for replacement warnings
A malformed CRL response can escape as Python status 1, causing an empty replacement issue or a green deduplicated run; no such response from the endpoint was observed.
Location: contrib/devtools/check-code-signing-certificates.py:104 (head).
Details and suggested fix
Outside the expiry warning window, urlopen and copyfileobj can raise http.client.HTTPException subclasses such as BadStatusLine or IncompleteRead that the handler does not catch. Python then exits with status 1 before main() prints anything, leaving the report file empty. The workflow interprets that status as a replacement warning. If the issue lookup returns an existing warning, contains("") matches its body and the run succeeds as already reported; otherwise, the workflow opens a replacement issue with an empty report. Reserve a distinct warning status, such as 3, and update the workflow to recognize it so uncaught exceptions fail the job. Also reject empty warning reports before deduplication.
Optional improvements
[suggestion] · Revocation-versus-failure classification has no deterministic test
The new monitor has no deterministic tests for the OpenSSL diagnostic parsing that distinguishes a revocation alert from a failed check.
Location: contrib/devtools/check-code-signing-certificates.py:73 (head).
Details and suggested fix
Only the exact parsed error list [("23", "0")] produces a revocation warning; additional errors produce status 2 and no issue. A parser regression could therefore turn a genuine revocation into a failed check, while accepting error 23 alongside other errors could misclassify an unverified result. Add hermetic tests with a throwaway CA trusted only by the test, a leaf outside the 90-day window, and signed CRLs supplied through a mocked urlopen. Assert exit status and report text for a valid non-revoked leaf, confirmed revocation, stale-and-revoked CRL, bad CRL signature, and fetch failure. Since contrib/devtools has no Python test harness, give these tests an explicit invocation point.
[suggestion] · Only the first advertised CRL endpoint is tried
Before the expiry window, an outage of crl3.digicert.com would fail the weekly revocation check even if the certificate's advertised crl4.digicert.com endpoint remained available.
Location: contrib/devtools/check-code-signing-certificates.py:41 (head).
Details and suggested fix
re.search selects only the first CRL URI, although the checked-in leaf advertises the same CRL path on both hosts. If the first fetch fails with a caught network error, main() returns 2 without trying the alternate, losing that run's revocation result. Expiry alerts remain unaffected because they bypass the fetch. Use re.findall and try the advertised endpoints until one yields a conclusive verified result. Keep the existing distinction between successful verification, sole leaf revocation, and other verification errors; downloading a response alone must not count as success.
[suggestion] · Revocation inside the expiry warning window goes unreported
After an expiry warning is acknowledged, revocation during the remaining 90-day window produces no new issue, even though the certificate is no longer usable for release signing.
Location: contrib/devtools/check-code-signing-certificates.py:39 (head).
Details and suggested fix
When -checkend returns nonzero, the checker skips the CRL and always emits the stable expiry report, which also matches closed issues. Replacement has already been requested, but a rare subsequent revocation before expiry changes its urgency without changing the alert. Consider attempting the CRL check while the certificate is still unexpired and inside the warning window. Preserve the expiry report on any fetch or verification failure, and emit distinct report text only for confirmed revocation. This retains the intentional protection against CRL outages blocking renewal alerts.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [minor]: Closing the warning suppresses the later expired-certificate alert (earlier report)
- [minor]: Any user's matching issue can permanently suppress the expiry alert (earlier report)
- [suggestion]: A failed monitoring run does not alert maintainers with an issue (earlier report)
- [minor]: A checkend-only failure is classified as certificate expiry (earlier report)
- [suggestion]: CRL verification depends on the runner's default trust store (earlier report)
- [suggestion]: A failed certificate check would suppress another certificate's warning issue (earlier report)