zeroclaw/src
argenis de la rosa c8d4ceee71 feat: add port 0 (random port) support for gateway security
When --port 0 is passed, the OS assigns a random available ephemeral
port (typically 49152-65535). The actual port is resolved after binding
and used for all log output and tunnel forwarding.

This prevents port-scanning attacks against a known fixed port.

Changes:
  src/gateway/mod.rs — bind first, extract actual_port from listener,
    use actual_port for addr formatting and tunnel.start()
  src/main.rs — update CLI help text, conditional log for port=0

8 new edge case tests:
  - port_zero_binds_to_random_port
  - port_zero_assigns_different_ports
  - port_zero_assigns_high_port
  - specific_port_binds_exactly
  - actual_port_matches_addr_format
  - port_zero_listener_accepts_connections
  - duplicate_specific_port_fails
  - tunnel_gets_actual_port_not_zero

943 tests passing, 0 clippy warnings, cargo fmt clean
2026-02-14 01:21:55 -05:00
..
agent feat: full-stack search engine — FTS5, vector search, hybrid merge, embedding cache, chunker 2026-02-14 00:00:23 -05:00
channels feat: full-stack search engine — FTS5, vector search, hybrid merge, embedding cache, chunker 2026-02-14 00:00:23 -05:00
config security: pass all 4 checklist items — gateway not public, pairing required, filesystem scoped, tunnel access 2026-02-14 00:39:51 -05:00
cron feat: initial release — ZeroClaw v0.1.0 2026-02-13 12:19:14 -05:00
gateway feat: add port 0 (random port) support for gateway security 2026-02-14 01:21:55 -05:00
heartbeat feat: initial release — ZeroClaw v0.1.0 2026-02-13 12:19:14 -05:00
integrations style: cargo fmt — fix all formatting for CI 2026-02-13 16:03:50 -05:00
memory test: 130 edge case tests + fix NaN/Infinity bug in cosine_similarity 2026-02-14 00:28:55 -05:00
observability feat: initial release — ZeroClaw v0.1.0 2026-02-13 12:19:14 -05:00
onboard security: pass all 4 checklist items — gateway not public, pairing required, filesystem scoped, tunnel access 2026-02-14 00:39:51 -05:00
providers feat: BYOP provider + tunnel wizard + SVG architecture diagram 2026-02-13 16:32:27 -05:00
runtime feat: initial release — ZeroClaw v0.1.0 2026-02-13 12:19:14 -05:00
security security: pass all 4 checklist items — gateway not public, pairing required, filesystem scoped, tunnel access 2026-02-14 00:39:51 -05:00
skills style: cargo fmt — fix all formatting for CI 2026-02-13 16:03:50 -05:00
tools feat: full-stack search engine — FTS5, vector search, hybrid merge, embedding cache, chunker 2026-02-14 00:00:23 -05:00
tunnel feat: agnostic tunnel system — bring your own tunnel provider 2026-02-13 16:25:01 -05:00
lib.rs feat: initial release — ZeroClaw v0.1.0 2026-02-13 12:19:14 -05:00
main.rs feat: add port 0 (random port) support for gateway security 2026-02-14 01:21:55 -05:00