[H-5] Rotate credentials exposed in the old repo history (Trustgate keystore password, legacy mdidtest client secret) #9

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

Finding

The snapshot import redacted the two real credentials from the tree (docs/mobilepki.properties password → placeholder; 6 scripts now require CLIENT_SECRET), but both values live permanently in the old repo's history (chris/CA-MDID) and are therefore burned.

Evidence

  • Old repo history: docs/mobilepki.properties (keystore.password=NtiUD9E7), scripts 01/02/04/06/07/08 + schemas.ex + dev_doc.html.heex (legacy secret SSxvO8…)
  • This repo: redacted at import commit 282cb11

Impact

Anyone with read access to the old repo knows the Trustgate keystore credential and the legacy client secret; if mdidtest ever existed in a shared environment, it grants full API access.

Fix

  • Rotate the Trustgate keystore password and the legacy client secret at the source
  • Delete docs/mobilepki.properties (or move to secure env-injected config) — eMudhra won't use MIMOS Trustgate material
  • Treat both values as compromised; never reintroduce

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

## Finding The snapshot import redacted the two real credentials from the tree (`docs/mobilepki.properties` password → placeholder; 6 scripts now require CLIENT_SECRET), but both values live permanently in the **old** repo's history (`chris/CA-MDID`) and are therefore burned. ## Evidence - Old repo history: `docs/mobilepki.properties` (`keystore.password=NtiUD9E7`), scripts 01/02/04/06/07/08 + `schemas.ex` + `dev_doc.html.heex` (legacy secret `SSxvO8…`) - This repo: redacted at import commit `282cb11` ## Impact Anyone with read access to the old repo knows the Trustgate keystore credential and the legacy client secret; if `mdidtest` ever existed in a shared environment, it grants full API access. ## Fix - [ ] Rotate the Trustgate keystore password and the legacy client secret at the source - [ ] Delete `docs/mobilepki.properties` (or move to secure env-injected config) — eMudhra won't use MIMOS Trustgate material - [ ] Treat both values as compromised; never reintroduce _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.