-
Notifications
You must be signed in to change notification settings - Fork 465
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
Listen on 0.0.0.0:6876 through cli #31249
base: main
Are you sure you want to change the base?
Conversation
At the moment, we're exposing the default DB port 6876 only to localhost, but the internal one to all addresses. This makes it difficult to test the console locally because it needs access to 6876, and running it on the host's network can cause other port collisions. For this reason, open up connections to 6876 to all hosts. This is not a security regression as we're already opening the internal endpoint to all addresses. Signed-off-by: Moritz Hoffmann <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me, but deferring to @def- who defaulted these to bind to 127.0.0.1 in the first place. Perhaps we should just wholesale roll that change back? If 6876 and 6878 are exposed, there's no security benefit to leaving 6875 and 6877 closed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cared mostly about changing the defaults for the docker emulator so that people don't run our tutorials and accidentally expose Materialize to the world.
# Setting the listen addresses below to 0.0.0.0 is required | ||
# to allow Prometheus running in Docker (misc/prometheus) | ||
# access these services to scrape metrics. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe adjust the comment too? Otherwise someone might in the future realize that Prometheus only needs 6878 and revert the change.
At the moment, we're exposing the default DB port 6876 only to localhost,
but the internal one to all addresses. This makes it difficult to test the
console locally because it needs access to 6876, and running it on the
host's network can cause other port collisions.
For this reason, open up connections to 6876 to all hosts. This is not a
security regression as we're already opening the internal endpoint to all
addresses.
Checklist
$T ⇔ Proto$T
mapping (possibly in a backwards-incompatible way), then it is tagged with aT-proto
label.