Skip to content

Support fixed bridge port ranges#78

Merged
dallison merged 1 commit into
mainfrom
tcp_discovery
May 26, 2026
Merged

Support fixed bridge port ranges#78
dallison merged 1 commit into
mainfrom
tcp_discovery

Conversation

@dallison

Copy link
Copy Markdown
Owner

Summary

Adds firewall-friendly TCP bridge port configuration for Subspace servers. Operators can now constrain bridge listener allocation to a fixed port or inclusive range with --bridge_ports=PORT or --bridge_ports=START-END, while preserving the existing ephemeral-port default.
The same allocator is used for subscriber-side bridge listeners and reliable-channel retirement listeners. If a configured range is unavailable, --bridge_ports_fallback_ephemeral controls whether setup falls back to an ephemeral port or fails closed.

Test Plan

  • bazelisk test //client:bridge_test
  • Added coverage for fixed bridge ranges, fallback-to-ephemeral behavior, and fail-closed behavior when the configured range is occupied.

Allow deployments behind firewalls to constrain bridge TCP listeners to a configured range while preserving ephemeral defaults.
@dallison dallison merged commit ec37701 into main May 26, 2026
30 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