Skip to content

Releases

rusty-conduit v2.2.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:26

New

  • MITM upstream TLS certificate trust controls: When MITM is enabled, you can now relax upstream certificate verification for specific hosts, wildcards, IPs, or CIDRs with --mitm-insecure-host <RULE> (RUSTY_CONDUIT_MITM_INSECURE_HOST, [mitm] insecure_hosts), or for all upstreams with --mitm-insecure (RUSTY_CONDUIT_MITM_INSECURE, [mitm] insecure = true). Strict verification remains the default, TLS handshake signatures are still verified, and relaxed modes log explicit WARN: lines on startup and validate.
  • HTML proxy error pages & custom templates: Proxy-generated HTTP errors (400, 403, 407, 502, 504, etc.) now serve a clean, unbranded built-in HTML5 error page instead of plain text. You can supply a custom HTML template via --error-page <PATH>, RUSTY_CONDUIT_ERROR_PAGE, or top-level TOML error_page = "/path/to/error.html" using {{status}}, {{reason}}, {{message}}, and {{target}} placeholders. Upstream origin 4xx/5xx responses are always passed through untouched.

Changed

  • validate checks that any configured error_page template file exists and is readable (unless --settings-only is passed) and reports any relaxed MITM TLS trust warnings.
  • Updated rusty-conduit-engine to v0.5.0.

Full Changelog: v2.1.0...v2.2.0

rusty-conduit v2.1.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 23:05

Changed

  • validate now also checks the files your configuration names, as startup would: it loads the MITM CA (files, passphrase, validity, and that the key matches the certificate), checks that each log file can be opened without creating it, and prints the open-file NOTICE startup would log. config OK now means the configuration will not stop the proxy at startup.

New

  • validate --settings-only keeps the previous behaviour and checks only the settings. Use it where the files exist only on the server, for example in CI.

Docs

  • The Docker guide suggests --restart on-failure:5 (Compose: restart: on-failure:5) while you set things up, so a broken configuration stops after five failed starts instead of restarting forever.

If you run validate somewhere the CA or log directory does not exist, add --settings-only.

rusty-conduit v2.0.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 22:29

Breaking changes

  • Removed the retired name for SOCKS web blocking. The hidden --socks-block-web-in-mitm flag, RUSTY_CONDUIT_SOCKS_BLOCK_WEB_IN_MITM, and the [mitm] socks_block_web TOML key are gone. Use --socks-block-web, RUSTY_CONDUIT_SOCKS_BLOCK_WEB, or the top-level socks_block_web key. The old flag is now a usage error and the old key fails with unknown field. The startup summary prints socks_block_web=.
  • Container user and group are now 10001:10001. The image sets a numeric USER 10001:10001; the group ID was 999 before. Update anything that grants access by the old group.

New

  • validate subcommand: rusty-conduit validate --config proxy.toml loads and checks CLI flags, environment variables, and the TOML file without binding listeners, then exits 0 or 1.
  • Automatic open-file limit: on Unix, the soft RLIMIT_NOFILE is raised at startup to fit --max-connections, with a NOTICE when the hard limit is too low.
  • Allowlist exceptions: when both are set, --allow entries are exceptions to --block (they were mutually exclusive).
  • SOCKS web blocking without MITM: --socks-block-web works with or without a CA.
  • Engine v0.4.1: listeners request a 4096 listen backlog, and access-log files are written as records arrive instead of in 8 KiB blocks.

Changes

  • Default --mitm-cert-cache-max-entries is 10240 (was 10000).
  • Container image: MALLOC_ARENA_MAX=2 keeps memory at about 7 MB idle and 26 KB per open tunnel on any CPU count (it grew to 42 MB idle on 18 CPUs), and /var/log/rusty-conduit is writable for named volumes.
  • --help wording matches the rest of the family.
  • Docs: new Docker guide with tested Compose examples; sizing guide covers somaxconn and memory; release archives include the whole docs/ folder. Docs now pin the image as ghcr.io/jpbaking/rusty-conduit:2.

v1.4.0 was tagged but never published (its release run failed a formatting check), so its changes, allowlist exceptions and standalone SOCKS web blocking, ship here for the first time.

rusty-conduit v1.3.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 21:11

What's Changed

Shared Engine Migration (rusty-conduit-engine v0.2.0)

  • Ported rusty-conduit onto the shared rusty-conduit-engine v0.2.0 crate (default-features = false, keeping the binary lean without the regex routing feature).
  • Preserved exact v1.2.0 CLI --help output, text/JSON access-log schemas, HTTP status codes (403/502/504), SOCKS reply codes, and DNS+IP allowlist filtering behavior.

Fixes & Divergence Ledger Notes (docs/DIVERGENCE-LEDGER.md)

  • E3-01 (option, logging): Uses AccessLogConfig::with_routing_fields(false) / AccessLogger::with_routing_fields(false) so the v1.2.0 access-log schema is unchanged (omitting rule, profile, and upstream fields).
  • E3-02 (option, filter, upstream::direct): Installs HostFilter on DialerOptions (DirectDialer) rather than the router so IP/CIDR-only allowlists continue checking resolved IPs at dial time.
  • E3-03 (keep, http, socks): Bad CONNECT target 400 response body updated from invalid CONNECT target to CONNECT target must be host:port, and diagnostic ERROR/INFO/DEBUG log wording now uses the engine's unified format. HTTP status codes (403/502/504) and SOCKS reply codes are unchanged.
  • E3-04 (option / fix, server, mitm): Explicitly retains rusty-conduit's defaults (max_connections = 4096, mitm_cert_cache_max = 10_000) via ServerOptions and MitmOptions, and inherits the E2 MITM CA loader fixes:
    • E2-01 (fix, mitm::ca): Unencrypted EC private keys with explicit P-256/P-384 curve parameters now load automatically; other explicit curves return CaError::ExplicitEcParameters with an openssl ec -param_enc named_curve hint.
    • E2-02 (fix, mitm::ca): Keys encrypted with PBES2 HMAC-SHA1 PRF now fail early with CaError::Pbes2Sha1Prf and a corrected OpenSSL/PKCS#12 re-encryption hint.

Full Changelog: v1.2.0...v1.3.0

rusty-conduit v1.2.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 14:18

Feature release for rusty-conduit: adds TCP keepalive on client and upstream sockets, so long-silent connections (AI agents and harnesses waiting on a slow model response, idle SSH sessions over SOCKS, long polls) are no longer dropped by NAT gateways, firewalls, VPNs, or cloud load balancers.


What's Changed

  • TCP Keepalive (on by default):
    • Once established, rusty-conduit connections have no idle or total-lifetime timeout. However, devices along the network path (NAT, stateful firewalls, OpenVPN servers, Docker/Kubernetes conntrack, cloud load balancers) silently expire connections that send no packets for a while. Keepalive probes now keep that state alive.

    • Enabled on every accepted client socket (HTTP, SOCKS, and multiplexed listeners) and every upstream connection (plain HTTP forwarding, HTTPS CONNECT, HTTPS MITM, SOCKS4/4a/5).

    • Defaults: first probe after 60s idle, then every 10s. The connection is closed after 5 unanswered probes, so dead peers are detected ~110s after they vanish.

    • Probes are empty TCP segments handled by the OS kernel. They are invisible to HTTP, TLS, SOCKS, and any tunneled protocol, and they don't interact with HTTP Connection: keep-alive.

    • Configurable via CLI, environment, or TOML:

      CLI Flag Environment Variable TOML Key Default
      --tcp-keepalive <DURATION> RUSTY_CONDUIT_TCP_KEEPALIVE tcp_keepalive 60s (0 disables)
      --tcp-keepalive-interval <DURATION> RUSTY_CONDUIT_TCP_KEEPALIVE_INTERVAL tcp_keepalive_interval 10s
      --tcp-keepalive-retries <N> RUSTY_CONDUIT_TCP_KEEPALIVE_RETRIES tcp_keepalive_retries 5
    • Out-of-range values are rejected at startup with exit code 1 (durations 1s–32767s, retries 1–127). The startup config summary now shows the active setting, e.g. tcp_keepalive=1m/10sx5 or tcp_keepalive=off.

    • On platforms without per-socket interval/retry control, only the idle time is applied.

  • Tests & Documentation:
    • Added unit tests for config precedence, disabling, and validation, plus tests that read back the socket options on accepted and dialed sockets.
    • New "Connection Lifetime & TCP Keepalive" section in docs/USER-GUIDE-ADVANCED.md, including guidance for SSH over SOCKS (ServerAliveInterval) and VPN tunnel restarts (642506f).

Upgrade note: Keepalive is enabled by default. To restore v1.1.0 behavior exactly, pass --tcp-keepalive 0.


Docker Image

# Publish to host loopback only (recommended — v1 has no proxy authentication)
docker run --rm \
  -p 127.0.0.1:3128:3128 \
  -p 127.0.0.1:1080:1080 \
  ghcr.io/jpbaking/rusty-conduit:1.2.0

Available tags: 1.2.0, 1.2, 1, latest (linux/amd64, linux/arm64).


Prebuilt Packages

Each archive includes the rusty-conduit binary, README.md, LICENSE (BSD-3-Clause), and docs/MITM-CA-GUIDE.md.

Platform Architecture Package
Linux x86_64 (amd64) rusty-conduit-v1.2.0-linux-amd64.tar.gz
Linux ARM64 (arm64) rusty-conduit-v1.2.0-linux-arm64.tar.gz
macOS Apple Silicon (arm64) rusty-conduit-v1.2.0-macos-arm64.tar.gz
macOS Intel (amd64) rusty-conduit-v1.2.0-macos-amd64.tar.gz
Windows x86_64 (amd64) rusty-conduit-v1.2.0-windows-amd64.zip
Windows ARM64 (arm64) rusty-conduit-v1.2.0-windows-arm64.zip

Verify downloads with SHA256SUMS.txt:

sha256sum -c SHA256SUMS.txt --ignore-missing

Documentation & Roadmap

Full Changelog: v1.1.0...v1.2.0

rusty-conduit v1.1.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 07:36

Feature release for rusty-conduit — adding destination allowlist/blocklist filtering across HTTP, HTTPS (tunnel and MITM), and SOCKS4/4a/5 with pre-connect DNS resolution checks.


What's Changed

  • Destination Allowlist & Blocklist Filtering:
    • Added mutually exclusive destination filtering via CLI (--allow / --block), environment variables (RUSTY_CONDUIT_ALLOW / RUSTY_CONDUIT_BLOCK), and TOML (allow / block). Supplying both is rejected at startup with exit code 1.
    • Supports IPv4/IPv6 addresses (including canonical IPv4-mapped IPv6 matching), CIDR subnets, exact FQDNs, and *.domain subdomain wildcards; repeatable or comma-separated (e.g., --block 127.0.0.0/8,::1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16).
    • Checks both requested hostnames and OS-resolved IPs before opening upstream connections (connect_upstream_filtered), preventing DNS-to-loopback and DNS-rebinding bypasses.
    • Enforced consistently across plain HTTP forwarding, HTTPS CONNECT tunneling, HTTPS MITM, and SOCKS4/4a/5: rejected requests return HTTP 403 Forbidden, SOCKS5 0x02 (not_allowed), or SOCKS4 0x5B, and SOCKS access logs record status=not_allowed.
  • Tests & Documentation:
    • Added an end-to-end integration test suite covering allowlists, blocklists, wildcards, CIDRs, and protocol-specific rejections (tests/filter_proxy.rs), and updated README.md, docs/USER-GUIDE-BASIC.md, and docs/USER-GUIDE-ADVANCED.md (dd9bbe1).

Docker Image

# Publish to host loopback only (recommended — v1 has no proxy authentication)
docker run --rm \
  -p 127.0.0.1:3128:3128 \
  -p 127.0.0.1:1080:1080 \
  ghcr.io/jpbaking/rusty-conduit:1.1.0

Available tags: 1.1.0, 1.1, 1, latest (linux/amd64, linux/arm64).


Prebuilt Packages

Each archive includes the rusty-conduit binary, README.md, LICENSE (BSD-3-Clause), and docs/MITM-CA-GUIDE.md.

Platform Architecture Package
Linux x86_64 (amd64) rusty-conduit-v1.1.0-linux-amd64.tar.gz
Linux ARM64 (arm64) rusty-conduit-v1.1.0-linux-arm64.tar.gz
macOS Apple Silicon (arm64) rusty-conduit-v1.1.0-macos-arm64.tar.gz
macOS Intel (amd64) rusty-conduit-v1.1.0-macos-amd64.tar.gz
Windows x86_64 (amd64) rusty-conduit-v1.1.0-windows-amd64.zip
Windows ARM64 (arm64) rusty-conduit-v1.1.0-windows-arm64.zip

Verify downloads with SHA256SUMS.txt:

sha256sum -c SHA256SUMS.txt --ignore-missing

Documentation & Roadmap

Full Changelog: v1.0.1...v1.1.0

rusty-conduit v1.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 01:50

Maintenance and container-distribution release for rusty-conduit — adding official multi-arch Docker images on GHCR, fixing a MITM certificate-cache count race, and splitting the user documentation into focused guides.


What's Changed

  • Official Multi-Arch Docker Images (GHCR):
    • Published to ghcr.io/jpbaking/rusty-conduit for linux/amd64 and linux/arm64 on every release (1.0.1, 1.0, 1, latest).
    • Built on Ubuntu 26.04 LTS with apt-get dist-upgrade, ca-certificates (for upstream TLS verification in MITM mode), a dedicated non-root user (rusty-conduit, UID 10001), and RUSTY_CONDUIT_BIND=0.0.0.0 by default.
    • Multi-stage Dockerfile supports both local docker build . and fast native CI packaging.
  • MITM Certificate Cache Concurrency Fix:
    • Synchronized CertCache::len with insert_lock to prevent torn DashMap counts under concurrent insertions and evictions (725583e).
  • Documentation Restructure:
    • Streamlined README.md and split user documentation into dedicated guides: Basic User Guide, Advanced User Guide, and Performance, Footprint & Sizing (8038b18).
  • CI & Testing:
    • Added a Docker Build verification job to CI and pinned Linux amd64 release builds to ubuntu-24.04 for broad glibc compatibility.
    • Relaxed the MITM reaper TTL test window to avoid timing flakes on Windows CI runners (e218d92).

Docker Image

# Publish to host loopback only (recommended — v1 has no proxy authentication)
docker run --rm \
  -p 127.0.0.1:3128:3128 \
  -p 127.0.0.1:1080:1080 \
  ghcr.io/jpbaking/rusty-conduit:1.0.1

Available tags: 1.0.1, 1.0, 1, latest (linux/amd64, linux/arm64).


Prebuilt Packages

Each archive includes the rusty-conduit binary, README.md, LICENSE (BSD-3-Clause), and docs/MITM-CA-GUIDE.md.

Platform Architecture Package
Linux x86_64 (amd64) rusty-conduit-v1.0.1-linux-amd64.tar.gz
Linux ARM64 (arm64) rusty-conduit-v1.0.1-linux-arm64.tar.gz
macOS Apple Silicon (arm64) rusty-conduit-v1.0.1-macos-arm64.tar.gz
macOS Intel (amd64) rusty-conduit-v1.0.1-macos-amd64.tar.gz
Windows x86_64 (amd64) rusty-conduit-v1.0.1-windows-amd64.zip
Windows ARM64 (arm64) rusty-conduit-v1.0.1-windows-arm64.zip

Verify downloads with SHA256SUMS.txt:

sha256sum -c SHA256SUMS.txt --ignore-missing

Documentation & Roadmap

Full Changelog: v1.0.0...v1.0.1

rusty-conduit v1.0.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 20:46

Initial stable release of rusty-conduit — a lightweight, cross-platform Rust CLI proxy server supporting HTTP/HTTPS and SOCKS4/SOCKS4a/SOCKS5 with optional pure-Rust HTTPS MITM inspection.

Built with a pure-Rust TLS stack (rustls + ring, rcgen, p12-keystore) and zero OpenSSL or native system library dependencies.


Highlights

  • Zero-Caching Architecture:
    • Never caches HTTP responses (plain or decrypted MITM), DNS lookups, upstream connections, or full request/response bodies.
    • The only in-memory cache is for dynamically signed MITM leaf certificates, strictly bounded by --mitm-cert-cache-max-entries (default 10000) and --mitm-cert-ttl (default 1h) with lazy read-time expiry and a periodic background reaper.
  • HTTP/HTTPS Proxy (--http-port, default 3128):
    • Streaming plain HTTP forwarding with RFC 9110 hop-by-hop header stripping.
    • Opaque CONNECT tunneling when MITM is off.
  • SOCKS4, SOCKS4a & SOCKS5 (--socks-port, default 1080):
    • TCP CONNECT supporting IPv4, IPv6, and proxy-side domain resolution.
    • Optional --socks-block-web-in-mitm guard to reject HTTP/HTTPS traffic over SOCKS when MITM is active while keeping raw TCP and server-speaks-first protocols (e.g., SSH, SMTP, Postgres) working normally.
  • Flexible Port Layout:
    • Separate ports by default (3128 HTTP/HTTPS, 1080 SOCKS).
    • Set both ports equal to enable automatic single-port first-byte multiplexing (0x04 → SOCKS4/4a, 0x05 → SOCKS5, A–Z → HTTP).
    • Set either port to 0 to disable that listener.
  • Opt-In HTTPS MITM Inspection (OFF by default):
    • Never auto-generates a CA; loads user-supplied PEM (--mitm-ca-cert + --mitm-ca-key, including encrypted PKCS#8) or PKCS#12 (--mitm-ca-p12 + passphrase via env var or file).
    • Dynamically signs per-host ECDSA P-256 leaf certificates with a 5-minute clock-skew/grace buffer (now - 5m to now + TTL + 5m) and single-flight deduplication.
    • Supports HTTP/1.1, HTTP/2, and 101 Switching Protocols upgrades (e.g., WebSocket).
    • Full CA generation and OS/browser trust guide in docs/MITM-CA-GUIDE.md.
  • Resource Caps & Graceful Shutdown:
    • --max-connections (default 4096, 0 = unlimited) drops excess incoming connections immediately with no queueing.
    • --mitm-cert-cache-max-entries (default 10000, 0 = unlimited) reaps expired entries first, then evicts the oldest entries.
    • Clean Ctrl+C / Unix SIGTERM shutdown with bounded connection draining and log flushing.
  • Configuration & Logging:
    • Precedence: CLI flags > RUSTY_CONDUIT_* env vars > --config <file.toml> > defaults.
    • 6 diagnostic levels on stderr (QUIET, FATAL, ERROR, INFO, DEBUG, VERBOSE) plus structured text (logfmt) or json (NDJSON) HTTP access logs and SOCKS connection logs (also dumped to stdout at DEBUG/VERBOSE).

Prebuilt Packages

Each archive includes the rusty-conduit binary, README.md, LICENSE (BSD-3-Clause), and docs/MITM-CA-GUIDE.md.

Platform Architecture Package
Linux x86_64 (amd64) rusty-conduit-v1.0.0-linux-amd64.tar.gz
Linux ARM64 (arm64) rusty-conduit-v1.0.0-linux-arm64.tar.gz
macOS Apple Silicon (arm64) rusty-conduit-v1.0.0-macos-arm64.tar.gz
macOS Intel (amd64) rusty-conduit-v1.0.0-macos-amd64.tar.gz
Windows x86_64 (amd64) rusty-conduit-v1.0.0-windows-amd64.zip
Windows ARM64 (arm64) rusty-conduit-v1.0.0-windows-arm64.zip

Verify downloads with SHA256SUMS.txt:

sha256sum -c SHA256SUMS.txt --ignore-missing

Documentation & Roadmap

Full Changelog: https://github.com/jpbaking/rusty-conduit/commits/v1.0.0