Repository navigation
security: dev databases are published on every interface without credentials - #782
Open
Shengcun-Scanner wants to merge 1 commit into
Open
Shengcun-Scanner wants to merge 1 commit into
Shengcun-Scanner wants to merge 1 commit into
Conversation
Co-Authored-By: Shengcun <business@rs-systems-web.com>
Shengcun-Scanner
force-pushed
the
shengcun/loopback-dev-databases
branch
2 times, most recently
from
November 17, 2026 21:58
c9b7aff to
932783f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The dev/test stack publishes its databases on every interface:
docker compose up -dtherefore listens on0.0.0.0, and everything on the samenetwork can connect to a database that has no password (postgres
trust, mysqlempty root, mongo unauthenticated, redis unauthenticated) or to the known
root:rootof the auth test instance. That is a real exposure on any machinethat is not a single-user laptop on a trusted LAN, and it costs nothing to close:
the tests connect to
localhost, which a loopback binding serves identically.Each port is now published as
127.0.0.1:<port>:<port>; container-to-containertraffic is unaffected because it uses the compose network, not the published port.
Verified with the compose parser: