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

Closed
jupiter wants to merge 2 commits from jupiter/cookie-loopback into main
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 18 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 18 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 mcl-mail#17 template. 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.
Member

Squash-landed by hand as 2e01ad9aee on main (gated; clean subject).

Squash-landed by hand as 2e01ad9aee4e42794b15bc2b37e05aaff5541131 on main (gated; clean subject).
terra closed this pull request 2026-11-23 20:18:32 +00:00

Pull request closed

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-bookclub-observer!1
No description provided.