[M-6] SOAP profile defaults to the Trustgate pilot test site in every environment #18

Closed
opened 2026-11-14 18:28:48 +01:00 by amiryahaya · 1 comment
Owner

Finding

The default profile/endpoint is the mobilePKI pilot service and no config :mdid_ws, MdidWs.CertManagement.NationalIDClient block exists in config/ — SOAP status checks (which feed enrollment authorization decisions) hit the pilot unless ops explicitly configure otherwise.

Evidence

  • lib/mdid_ws/cert_management/national_id_client.ex:26, 352-359

Impact

Pilot-system answers drive production authorization (ensure_no_active_certificate_via_soap).

Fix

  • Explicit per-env profile/endpoint config; fail loudly in :prod if unset
  • For eMudhra, replace the endpoint/profile defaults entirely (see M-14)

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

## Finding The default profile/endpoint is the mobilePKI **pilot** service and no `config :mdid_ws, MdidWs.CertManagement.NationalIDClient` block exists in config/ — SOAP status checks (which feed enrollment authorization decisions) hit the pilot unless ops explicitly configure otherwise. ## Evidence - `lib/mdid_ws/cert_management/national_id_client.ex:26, 352-359` ## Impact Pilot-system answers drive production authorization (`ensure_no_active_certificate_via_soap`). ## Fix - [ ] Explicit per-env profile/endpoint config; fail loudly in :prod if unset - [ ] For eMudhra, replace the endpoint/profile defaults entirely (see M-14) _Line numbers refer to the initial import commit `282cb11`. Source: comprehensive audit, 2026-11-12 (first review of this codebase)._
Author
Owner

Verified fixed on main (1b6216b): prod runtime.exs requires MDID_SOAP_PROFILE and MDID_SOAP_ENDPOINT; no pilot default (B2).

Verified fixed on main (1b6216b): prod runtime.exs requires MDID_SOAP_PROFILE and MDID_SOAP_ENDPOINT; no pilot default (B2).
Sign in to join this conversation.
No description provided.