fix: renew the OCSP responder certificate before it expires (#64) #66

Merged
amiryahaya merged 3 commits from fix/64-ocsp-responder-renewal into main 2026-11-15 20:50:18 +01:00
Owner

Closes #64.

  • IssuerManager.renew_ocsp_responder/0 creates the delegated OCSP responder certificate when missing and replaces it in place (same row id, so one atomic write and KeyVault AAD stays valid) when it expires within :ocsp_renew_before_days (default 30).
  • CrlRepublisher runs it before every CRL publish (boot, every refresh_hours, retries). A failure is logged and retried; it never blocks the CRL publish.
  • Sub CA (20y) and Root CA (25y) lifetimes checked against 1-year leaves: fine; noted in docs. No code renews them.
  • Tests: not due, inside window, expired, and a failing renewal not blocking publish.

Review: dual-pass (ponytail-review: ship; superpowers reviewer: no critical or important findings; minor test-warning fixed).
Coverage: IssuerManager 88%, CrlRepublisher 88% (project total 84%). 334 tests pass.

🤖 Generated with Claude Code

Closes #64. - `IssuerManager.renew_ocsp_responder/0` creates the delegated OCSP responder certificate when missing and replaces it in place (same row id, so one atomic write and KeyVault AAD stays valid) when it expires within `:ocsp_renew_before_days` (default 30). - `CrlRepublisher` runs it before every CRL publish (boot, every refresh_hours, retries). A failure is logged and retried; it never blocks the CRL publish. - Sub CA (20y) and Root CA (25y) lifetimes checked against 1-year leaves: fine; noted in docs. No code renews them. - Tests: not due, inside window, expired, and a failing renewal not blocking publish. Review: dual-pass (ponytail-review: ship; superpowers reviewer: no critical or important findings; minor test-warning fixed). Coverage: IssuerManager 88%, CrlRepublisher 88% (project total 84%). 334 tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
test: avoid type warning in renewal republisher test
Some checks failed
Lint / lint (pull_request) Successful in 1m40s
Security / Dependency advisories (mix hex.audit) (pull_request) Successful in 26s
Security / Secret scan (gitleaks) (pull_request) Successful in 10s
Unit tests / test (pull_request) Failing after 2m30s
3cede8a102
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ci: re-run (unit tests job failed without a reproducible cause)
All checks were successful
Lint / lint (pull_request) Successful in 1m41s
Security / Dependency advisories (mix hex.audit) (pull_request) Successful in 18s
Security / Secret scan (gitleaks) (pull_request) Successful in 10s
Unit tests / test (pull_request) Successful in 2m26s
0a814d7627
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No description provided.