Batch A1: #7 validity bounds + #8 honest partial revocation + #23 fail-closed renewal #48

Merged
amiryahaya merged 1 commit from fix/a1-lifecycle-policies into main 2026-11-15 02:32:07 +01:00
Owner

Three cert-lifecycle policy fixes from the audit.

  • #7 (H-3): server-side validity cap ({1,:year} default), :cert_validity honored in released mode, enrollment default 2d→1y, invalid config falls back (no bricking), bounded renewal carry-over bypass
  • #8 (H-4): RV201 + partialRevocation when local revoked but remote failed; idempotent for already-revoked; camelCase local responses
  • #23 (M-11): renewal fails closed (503) on SOAP faults, matching enrollment

187 tests green locally. Note: some previously-unstubsbed renewal tests silently depended on fail-open (and live network) — flagged for #33.

Fixes #7
Fixes #8
Fixes #23

Three cert-lifecycle policy fixes from the audit. - **#7 (H-3)**: server-side validity cap ({1,:year} default), :cert_validity honored in released mode, enrollment default 2d→1y, invalid config falls back (no bricking), bounded renewal carry-over bypass - **#8 (H-4)**: RV201 + partialRevocation when local revoked but remote failed; idempotent for already-revoked; camelCase local responses - **#23 (M-11)**: renewal fails closed (503) on SOAP faults, matching enrollment 187 tests green locally. Note: some previously-unstubsbed renewal tests silently depended on fail-open (and live network) — flagged for #33. Fixes #7 Fixes #8 Fixes #23
fix(cert-mgmt): bound certificate validity, honest partial revocation, fail-closed renewal
All checks were successful
Lint / lint (pull_request) Successful in 2m37s
Security / Dependency advisories (mix hex.audit) (pull_request) Successful in 28s
Security / Secret scan (gitleaks) (pull_request) Successful in 11s
Unit tests / test (pull_request) Successful in 3m1s
fb36268cf7
#7 (H-3): CertificateValidity now caps every resolved period at
:max_cert_validity (default {1,:year}) regardless of license mode; the
:cert_validity config applies in :released too (previously ignored,
forcing the 2-day enrollment default — now {1,:year}); invalid config
falls back to the default with a warning instead of bricking issuance;
renewal carry-over (365d + remaining, bounded) bypasses the cap via
skip_maximum_check since it is server-computed.

#8 (H-4): revoke no longer reports unqualified success when the remote
(Trustgate) revoke failed while local state changed — returns
iErrorCode RV201 + partialRevocation:true; already-revoked/expired
targets stay idempotent 000; local responses normalized to the ICD
camelCase contract.

#23 (M-11): standalone renewal classifies SOAP faults/errors as
:certificate_status_unavailable (503) like enrollment, instead of
silently waiving the remote eligibility check.

Fixes #7, Fixes #8, Fixes #23
Sign in to join this conversation.
No description provided.