[M-11] Contradictory SOAP-outage policy: enrollment fails closed, renewal fails open #23

Closed
opened 2026-11-14 18:28:51 +01:00 by amiryahaya · 0 comments
Owner

Finding

Enrollment returns {:error, :certificate_status_unavailable} → 503 on SOAP errors, but standalone renewal classifies any SOAP error as 'no remote certificate' and proceeds — the 30-day-window remote check silently vanishes during Trustgate outages.

Evidence

  • lib/mdid_ws/cert_management/enrollment.ex:142-143
  • lib/mdid_ws/cert_management/renewal.ex:302 — classify_renewal_soap_status(_result), do: {:ok, nil}

Impact

Inconsistent availability/security posture during upstream outages.

Fix

  • Pick one policy (recommend fail-closed for both) and implement it in a shared helper

Line numbers refer to the initial import commit 282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).

## Finding Enrollment returns `{:error, :certificate_status_unavailable}` → 503 on SOAP errors, but standalone renewal classifies *any* SOAP error as 'no remote certificate' and proceeds — the 30-day-window remote check silently vanishes during Trustgate outages. ## Evidence - `lib/mdid_ws/cert_management/enrollment.ex:142-143` - `lib/mdid_ws/cert_management/renewal.ex:302` — `classify_renewal_soap_status(_result), do: {:ok, nil}` ## Impact Inconsistent availability/security posture during upstream outages. ## Fix - [ ] Pick one policy (recommend fail-closed for both) and implement it in a shared helper _Line numbers refer to the initial import commit `282cb11`. Source: comprehensive audit, 2026-11-12 (first review of this codebase)._
Sign in to join this conversation.
No description provided.