[L-1] Hardening nits: default RELEASE_COOKIE, precommit alias mutates mix.lock, silent local-deps switch #31
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#31
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Finding
A default Erlang distribution cookie (
mdid_ws_cookie) ships in the image/compose/.env.example;mix precommitrunsdeps.unlock --unusedwhich mutates mix.lock as a side effect of a check;use_local_deps?/0silently swaps git deps for sibling path deps based on directory presence — two machines can build different dependency graphs.Evidence
Dockerfile:102;docker-compose.yml:26;.env.example:8mix.exs:148(precommit),mix.exs:106-126(use_local_deps?)Impact
Weak distribution secret; surprising lockfile churn; non-reproducible builds across machines.
Fix
:-default)deps.unlock --unusedfrom precommit or make it read-onlyLine numbers refer to the initial import commit
282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).