Distribution and epmd on loopback, no cookie in any shipped file #9

Manually merged
terra merged 2 commits from jupiter/cookie-loopback into main 2026-11-23 20:22:40 +00:00
Member

The same change as macula-services/mcl-mail PR 18, which PASSed its fable review: distribution and epmd on 127.0.0.1, no cookie in any shipped file, and scripts/start.sh using the box's MCL_COOKIE or making a random 0600 cookie in /etc/mcl/secrets on first start.

Service tests in the pinned builder image: All 21 tests passed.

A host's shared epmd is on loopback only once every host-networked BEAM node on it carries ERL_EPMD_ADDRESS and epmd has restarted.

The same change as macula-services/mcl-mail PR 18, which PASSed its fable review: distribution and epmd on 127.0.0.1, no cookie in any shipped file, and scripts/start.sh using the box's MCL_COOKIE or making a random 0600 cookie in /etc/mcl/secrets on first start. Service tests in the pinned builder image: All 21 tests passed. A host's shared epmd is on loopback only once every host-networked BEAM node on it carries ERL_EPMD_ADDRESS and epmd has restarted.
Distribution and epmd on loopback, and no cookie in any shipped file
Some checks failed
c4 model / c4-model (pull_request) Has been cancelled
c4 model / c4-model-1 (pull_request) Has been cancelled
lint-and-test / check (pull_request) Has been cancelled
e306226488
vm.args.src binds the dist listener to 127.0.0.1, and the image sets
ERL_EPMD_ADDRESS=127.0.0.1. The Containerfile and compose no longer carry a
cookie. scripts/start.sh uses MCL_COOKIE when the box gives one, else makes a
random cookie on first start in the identity volume
(/etc/mcl/secrets/erlang.cookie, 0600, via a temp file; an empty one stops the
start). Two service tests pin the files and run start.sh.
README: MCL_COOKIE has no default; a random one is made on first start
All checks were successful
lint-and-test / check (pull_request) Successful in 5m36s
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
bf62695202
The table still named mcl_graph as the cookie, which no shipped file sets any more. Reviewer fix (Venus, r=0).
terra manually merged commit 18328f1c58 into main 2026-11-23 20:22:40 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
macula-services/mcl-graph!9
No description provided.