2 minor findings · 5 suggestions
Earlier concerns neither republished nor resolved: 1 minor finding. See the Run archive for their assessments.
Findings
[minor] · Untrusted issues can acknowledge certificate warnings
An account allowed to open issues can suppress expiry and revocation reminders by posting the fixed title and predictable report, even if a maintainer subsequently closes the issue.
Location: .github/workflows/code-signing-certificate.yml:54 (head).
Details and suggested fix
The deduplication query checks the title and whether the body contains REPORT, but not who opened the issue. The report contains only fixed strings and OpenSSL output for the public certificate, so an account can compute it in advance and include both the expiry and revocation variants in one issue. Whenever that issue appears in the search results with the matching report, the workflow exits without creating its own warning. Closing it as spam does not clear the match because the query uses --state all; changing the report or removing the issue from the matching results does. Restrict acknowledgement to issues created by the workflow's identity. Closed workflow-created issues can still serve as acknowledgements.
[minor] · A checkend-only failure is classified as certificate expiry
If only the checkend invocation fails and surrounding commands succeed, the script requests certificate replacement and skips the CRL check instead of returning check-failure status 2.
Location: contrib/devtools/check-code-signing-certificates.py:33 (head).
Details and suggested fix
subprocess.run() does not raise for a nonzero child exit, and this branch treats every such result as expiry, including termination by a signal. OpenSSL also uses exit 1 for both an expiry result and command errors, so the exit code alone cannot distinguish them. The surrounding extension, end-date, and details calls correctly turn persistent executable or certificate-reading failures into status 2. No current condition producing a failure confined to checkend was identified, so production impact is unconfirmed. Determine expiry from the already-read notAfter value in Python rather than interpreting every nonzero process result as a renewal warning.
Optional improvements
[suggestion] · Certificate check failures have no shared issue notification
Persistent CRL or verification failures stop revocation monitoring but produce only failed Actions runs, leaving discovery dependent on notifications or someone checking the job.
Location: .github/workflows/code-signing-certificate.yml:40 (head).
Details and suggested fix
Outside the 90-day expiry window, each weekly check downloads a CRL and can fail on network errors, the 30-second timeout, or chain verification. These failures return status 2, while the workflow opens issues only for status 1. Diagnostics and the failed run remain visible, but maintainers who do not receive or inspect those failures have no issue indicating that revocation monitoring is unavailable. Add a separate, deduplicated check-failure issue linking to the run, optionally after repeated failures to avoid transient-outage noise. Keep operational failures distinct from certificate replacement alerts. CRL outages must continue to leave expiry warnings working; extension-check failures can block both checks. This notification cannot cover a broken issue client or a schedule that stops running.
[suggestion] · CRL verification depends on the runner's default trust store
The bundled root is passed only through -untrusted, so the revocation check fails if the runner's default trust store lacks DigiCert Trusted Root G4.
Location: contrib/devtools/check-code-signing-certificates.py:43 (head).
Details and suggested fix
openssl verify receives no explicit trust anchor. Although win-codesign.cert bundles the leaf, intermediate, and root, -untrusted supplies chain-building material rather than trusted anchors. If the root is absent from the runner's store, verification produces a chain error and the script returns status 2 instead of completing the revocation check. The checkout does not establish whether the current runner contains this root, so this is conditional hardening, not a demonstrated failure. Extract the bundled self-signed root and supply it explicitly with -CAfile <root.pem> -no-CApath -no-CAstore. This retains chain and CRL-signature checks without depending on the runner's TLS root store.
[suggestion] · Revocation inside the expiry window produces no new alert
After an expiry warning is acknowledged, revocation during the remaining 90-day window goes unreported because the script skips CRL verification and emits the same expiry report.
Location: contrib/devtools/check-code-signing-certificates.py:36 (head).
Details and suggested fix
The CRL check runs only when -checkend succeeds. Inside the warning window, the script always emits the stable expiry report, which a closed matching issue continues to acknowledge. Replacement has already been requested, and this additional event is rare, but revocation means the unexpired certificate can no longer serve an urgent release. Attempt revocation checking independently inside the window and report confirmed revocation under a separate report or deduplication key. Preserve the expiry report unchanged when CRL verification is indeterminate so outages cannot block renewal warnings. If the check also covers already-expired leaves, its classification must account for expiry-related verification errors rather than requiring a lone revocation error.
[suggestion] · A failed certificate check would suppress another certificate's warning issue
With multiple configured certificates, any check failure forces status 2 and prevents issue delivery for warnings collected from other certificates.
Location: contrib/devtools/check-code-signing-certificates.py:93 (head).
Details and suggested fix
main() continues after an entry fails and prints accumulated warnings, but failure takes precedence in its return status. The workflow creates a warning issue only for status 1, so a CRL outage or OpenSSL failure for one certificate would leave another certificate's expiry or revocation warning only in the job log. This cannot occur with the single configured entry today. Before extending the list, expose warnings and failures separately so the workflow can post known warnings and still fail the run. A distinct combined status handled by the workflow would suffice; simply returning warning status first would instead hide the failed check.
[suggestion] · Revocation classification lacks deterministic regression coverage
The weekly certificate check does not deliberately exercise revoked and indeterminate results, so regressions in stderr classification can suppress the intended revocation issue.
Location: contrib/devtools/check-code-signing-certificates.py:58 (head).
Details and suggested fix
Confirmed revocation requires the parsed OpenSSL errors to equal exactly [("23", "0")]; other results become status 2 and produce no replacement issue. There are no deterministic assertions protecting that distinction. Add tests using captured diagnostics for lone leaf revocation, revocation combined with a stale CRL, and chain errors, plus a mocked subprocess timeout. Keep the test certificate outside the 90-day warning window so these cases reach verification. Also assert that the same certificate's expiry report remains identical before and after notAfter, since deduplication relies on that stability. There is no existing Python test harness in contrib/devtools, so this includes choosing where to run the tests. Captured samples protect the intended parser behavior but do not establish compatibility with future OpenSSL diagnostic formats.
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)