Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind to localhost #944

Open
tsloughter opened this issue Dec 23, 2024 · 1 comment
Open

Bind to localhost #944

tsloughter opened this issue Dec 23, 2024 · 1 comment
Assignees

Comments

@tsloughter
Copy link
Member

Security WG of EEF flagged the issue of EPMD binding to non-localhost interfaces. I think adding their suggestion of:

-env ERL_EPMD_ADDRESS "127.0.0.1"

-kernel inet_dist_use_interface '{127, 0, 0, 1}'

to vm.args template makes sense.

We'll still just rely on the user setting ERL_DIST_PORT to automatically disable boot of epmd and set a static port for distribution.

Only worry is, now that I think more about it, it is sort of a breaking change more than I was thinking. Now people who expect the defaults to work for deploying a cluster will discover they have to make changes.

I was mainly thinking I wanted a) not to remove -sname/-name from the defaults so the remote console continued to work and b) for local dev of a release to not have any issues.

Not sure if we want a relx 5.0 just for this... Or just do it in a minor release.

@tsloughter tsloughter self-assigned this Dec 23, 2024
@ferd
Copy link
Collaborator

ferd commented Dec 23, 2024

If we bump the template, technically nothing in existing releases will change. We can add a comment to the template going along the lines of "remove this argument if you want this to be publicly available, but see the following link for information"

I don't think this is going to be a breaking change if only because everybody's own stuff will keep working with their existing files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants