fix(security): default dev service port bindings to loopback - #1168
Open
DevipriyaS17 wants to merge 2 commits into
Open
fix(security): default dev service port bindings to loopback#1168DevipriyaS17 wants to merge 2 commits into
DevipriyaS17 wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1168 +/- ##
=======================================
Coverage 44.45% 44.45%
=======================================
Files 144 144
Lines 13732 13732
=======================================
Hits 6105 6105
Misses 7054 7054
Partials 573 573 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
DevipriyaS17
requested review from
graikhel-intel,
madhavilosetty-intel and
sudhir-intc
July 30, 2026 14:00
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.
Summary
This PR fixes CM-353 by changing development Docker Compose port bindings to localhost by default.
Problem
Previously, dev services were exposed on all interfaces (
0.0.0.0) by default:820054328181This increased host attack surface in local dev environments and enabled unintended network access.
Validation
Executed:
docker compose up -ddocker compose psObserved bindings:
127.0.0.1:8181->8181/tcp127.0.0.1:8200->8200/tcp127.0.0.1:5432->5432/tcpServices are healthy and app routes initialize successfully.
To run locally
docker compose"
CONSOLE_HOST=0.0.0.0 POSTGRES_HOST=0.0.0.0 VAULT_HOST=0.0.0.0 docker compose upgo run directly
HTTP_HOST=0.0.0.0 go run ./cmd/app/ --config "./config/config.yml"