Batch B3: hardening nits #31–#35 #56
No reviewers
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra!56
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/b3-hardening-nits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Batch B3: low-severity hardening, #31–#35
#31 No default
RELEASE_COOKIE(compose requires it,start-docker-prod.shrejects empty/CHANGE_ME, dev script exports a dev-only cookie);mix precommitno longer runsdeps.unlock --unused(stops mutatingmix.lock);mix.exswarns when sibling path deps are auto-selected.#32 Docs: removed advertised
mdidtestcredentials, Alpine claims and the deprecated script reference; documented OCSP expired→good. The audit's "MyKad validation is absent" claim is stale —SubjectValidator(batch A2) enforces it — so the MyKad docs stay.#33 Live Trustgate tests tagged
:trustgate, excluded unlessTRUSTGATE_INTEGRATION=1(runTRUSTGATE_INTEGRATION=1 mix test_namedto include).#34 SOAP debug logs redact names, IC, CSR, certificate material (also prefixed/attributed tags and HTTP error bodies); lazy debug logging; telemetry: SOAP span,
[:mdid_ws,:cert,:issued](enroll + renew),[:mdid_ws,:cert,:revoked], metric definitions.#35 Serial first byte via rejection sampling; OCSP responses signed ECDSA/SHA-256 (was SHA-384 with a P-256 key). Decimal-serial fallback left (Trustgate reports decimal serials) and documented.
Not done / caveats
request_id; SOAP-only (remote-only) revocations are not counted.mix.exswarning prints on every mix invocation when sibling deps exist. Compose with-f … -f devneedsRELEASE_COOKIEexported (the dev script does); compose accepts a literalCHANGE_ME(only the prod script rejects it).TokenRevocationTest"token without a jti" failed twice in full runs, passes in isolation (cause not found).Review
Pass 1 (ponytail) and Pass 2 done. Pass 2 caught that I had wrongly removed MyKad docs (restored). Final fixes not re-reviewed by a second Pass 1.
Tests / coverage
293 pass, 4 excluded (
:trustgate), 0 failing in the last full run. New tests: redaction, SOAP telemetry, issued/revoked telemetry, serial first byte. CertSerialNumber 82%, NationalIDClient ~78%, total ~74%.🤖 Generated with Claude Code