#9 (H-5): remove Trustgate properties file + regression guard against burned credentials #47

Merged
amiryahaya merged 1 commit from fix/h-5-burned-creds into main 2026-11-14 19:28:15 +01:00
Owner

The legacy repository's git history permanently exposed the Trustgate keystore password and the legacy OAuth client secret.

Changes

  • docs/mobilepki.properties deleted (Trustgate/MIMOS-specific, unused by the eMudhra variant); NationalIDClient doc comment updated
  • new BurnedCredentialsTest scans tracked text files for both literals (fragment-assembled so it cannot match itself) and fails loudly if either reappears

External step still required (cannot be done from this repo): rotate the keystore password and the legacy client secret at Trustgate/source.

Full suite: 176 passed locally.

Fixes #9

The legacy repository's git history permanently exposed the Trustgate keystore password and the legacy OAuth client secret. **Changes** - `docs/mobilepki.properties` deleted (Trustgate/MIMOS-specific, unused by the eMudhra variant); `NationalIDClient` doc comment updated - new `BurnedCredentialsTest` scans tracked text files for both literals (fragment-assembled so it cannot match itself) and fails loudly if either reappears **External step still required** (cannot be done from this repo): rotate the keystore password and the legacy client secret at Trustgate/source. Full suite: 176 passed locally. Fixes #9
fix(security): remove Trustgate properties file, guard against burned credentials
All checks were successful
Lint / lint (pull_request) Successful in 2m36s
Security / Dependency advisories (mix hex.audit) (pull_request) Successful in 22s
Security / Secret scan (gitleaks) (pull_request) Successful in 12s
Unit tests / test (pull_request) Successful in 2m45s
59576260ee
docs/mobilepki.properties (from the legacy repo, password redacted at
import) carried Trustgate/MIMOS-specific identifiers the eMudhra variant
will never use — removed, and the NationalIDClient doc comment no longer
references it.

New regression test scans tracked text files for the two credentials
burned by the old repository's git history (legacy client secret,
keystore password) — assembled from fragments so the test cannot match
itself — and fails with the offending paths if either ever reappears.

Remaining external step (tracked in the issue): rotate the keystore
password and legacy client secret at Trustgate/source — that cannot be
done from this repository.

Fixes #9 (audit H-5)
Sign in to join this conversation.
No description provided.