Skip to content

fix: default listening host to all interfaces for container compatibility#69

Merged
tembleking merged 3 commits intomainfrom
fix/default-listening-host
Mar 3, 2026
Merged

fix: default listening host to all interfaces for container compatibility#69
tembleking merged 3 commits intomainfrom
fix/default-listening-host

Conversation

@tembleking
Copy link
Member

@tembleking tembleking commented Mar 3, 2026

When running inside a container, binding to localhost only accepts connections from within the container itself. Traffic from port forwarding arrives via the bridge network interface, not loopback, causing connection resets.

Changing the default to bind on all interfaces (:port) ensures the server is reachable out of the box in containerized deployments, with dual-stack IPv4/IPv6 support. Users can set SYSDIG_MCP_LISTENING_HOST=127.0.0.1 for local-only access.

Also bumps the patch version to 1.0.3 and updates dependencies.

Copilot AI review requested due to automatic review settings March 3, 2026 10:01
@tembleking tembleking requested a review from a team as a code owner March 3, 2026 10:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the server’s default network bind address to improve out-of-the-box connectivity in containerized deployments, alongside a patch release bump and dependency/Nix lock refresh.

Changes:

  • Default SYSDIG_MCP_LISTENING_HOST from localhost to 0.0.0.0 (and update config tests/docs accordingly).
  • Bump package version to 1.0.3 and refresh Nix vendoring hash/flake lock.
  • Upgrade several Go dependencies and update go.sum.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
internal/config/config.go Changes default listening host to 0.0.0.0.
internal/config/config_test.go Updates expectations for the new default listening host.
README.md Updates documented defaults/examples and removes now-redundant K8s env var.
go.mod Bumps dependency versions.
go.sum Updates dependency checksums/pseudo-versions.
package.nix Bumps package version and vendor hash.
flake.lock Updates pinned nixpkgs revision/hash.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…lity

When running inside a container, binding to localhost only accepts
connections from within the container itself. Traffic from port
forwarding arrives via the bridge network interface, not loopback,
causing connection resets. Defaulting to all interfaces ensures
the server is reachable without requiring an explicit override.
@tembleking tembleking force-pushed the fix/default-listening-host branch from 19630ab to 19a9c3f Compare March 3, 2026 10:26
@tembleking tembleking changed the title fix: default listening host to 0.0.0.0 for container compatibility fix: default listening host to all interfaces for container compatibility Mar 3, 2026
@tembleking tembleking enabled auto-merge (squash) March 3, 2026 10:55
Copy link
Collaborator

@alecron alecron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tembleking tembleking merged commit 927323a into main Mar 3, 2026
6 checks passed
@tembleking tembleking deleted the fix/default-listening-host branch March 3, 2026 11:13
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.

3 participants