[H-4] Revocation reports success even when the remote (Trustgate) revoke failed — silent local/remote divergence #8

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

Finding

render_revoke_result returns the local success response regardless of the SOAP outcome; the local record is revoked and CRL republished even on SOAP error.

Evidence

  • lib/mdid_ws_web/controllers/cert_management_controller.ex:334-336 — defp render_revoke_result(conn, _soap_result, {:ok, local_response}) ignores the SOAP result

Impact

Clients see 'Revoke success' while the certificate remains valid at Trustgate (network fault, missing signing key, etc.) — silent divergence with no reconciliation.

Fix

  • Fail the request or clearly flag partial revocation when the SOAP revoke errors
  • Add reconciliation of local vs remote revocation state

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

## Finding `render_revoke_result` returns the local success response regardless of the SOAP outcome; the local record is revoked and CRL republished even on SOAP error. ## Evidence - `lib/mdid_ws_web/controllers/cert_management_controller.ex:334-336` — `defp render_revoke_result(conn, _soap_result, {:ok, local_response})` ignores the SOAP result ## Impact Clients see 'Revoke success' while the certificate remains valid at Trustgate (network fault, missing signing key, etc.) — silent divergence with no reconciliation. ## Fix - [ ] Fail the request or clearly flag partial revocation when the SOAP revoke errors - [ ] Add reconciliation of local vs remote revocation state _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.