Skip to content

Bind Postgres port to loopback only - #66

Merged
cchwala merged 1 commit into
mainfrom
fix/postgres-loopback-binding
Oct 21, 2026
Merged

cchwala merged 1 commit into
mainfrom
fix/postgres-loopback-binding

Conversation

@cchwala

@cchwala cchwala commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Don't publish Postgres port on all interfaces

Problem

The database service in docker-compose.yml published 5432:5432 on all host interfaces. Anyone who could reach the host and knew a role password could read all tenants' data.

Change

  • docker-compose.yml: bind the mapping to loopback, "127.0.0.1:5432:5432".
  • README.md: note that the database at localhost:5432 is only reachable from the host itself.

Impact

  • Services connect over the internal Docker network (database:5432), so they are unaffected.
  • Host-side tools (psql, notebooks) can still use localhost:5432.
  • Remote access to Postgres is no longer possible. Use an SSH tunnel if it is needed.

Testing

  • CI passes.

@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.65%. Comparing base (ae41b24) to head (547b8e7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #66      +/-   ##
==========================================
+ Coverage   85.78%   86.65%   +0.86%     
==========================================
  Files          41       37       -4     
  Lines        3911     3424     -487     
==========================================
- Hits         3355     2967     -388     
+ Misses        556      457      -99     
Flag Coverage Δ
mno_simulator 86.12% <ø> (ø)
parser 90.14% <ø> (ø)
scripts ?
webserver 77.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cchwala
cchwala merged commit 0dd072e into main Oct 21, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

1 participant