Skip to content

fastls-fetch ​

Current v0.3.2 pins Go v0.2.1, profile v0.1.1, ftransport v0.1.2 and imitate v0.1.3. Explicit chrome158, edge158 and firefox160 select the updated Windows profiles. Policy, audit and shutdown contracts remain unchanged.

Service 0.1.2: destination policy and upgrade ​

The standalone binaries pin core v0.1.3-0.20261030152832-0dc4eea0f32e. Start with -address-policy /trusted/path/policy.json to load a strict operator-owned policy before accepting traffic. The policy is disabled by default and cannot be replaced through request JSON or headers; restart to change rules. Unsupported backends fail startup. Old binaries must be upgraded explicitly.

With policy enabled, every new connection checks all resolved addresses and dials only approved numeric IPs, preserving the original TLS identity. Unspecified destinations 0.0.0.0, ::, and IPv4-mapped zero are rejected as invalid_ip, including broad allow rules combined with loopback denies. Empty allow lists do not automatically block private networks. See policy and configuration.

Fetch, JSON-RPC and gRPC preserve their address_denied result envelopes. MITM rejects denied CONNECT targets before success, binds SNI and decrypted requests to that origin, and sends every upstream request through core policy checks. Preflight alone never authorizes an unchecked dial. Keep certificate verification configured: enable MITM -verify-cert and configure trusted roots for private CAs. Explicit outbound H3 is available in v0.2.0; UDP proxying and Alt-Svc remain unsupported.

Archives cover Linux/Windows/macOS amd64 and arm64. Main runs service CI; development archives are manual. Releases require successful CI at the exact source commit, plus service integration for RPC, and build each official archive once. Downloaded bytes are checked for hash, signed source, embedded modules, version/help and real policy behavior on all six targets.

An HTTP JSON service that turns a URL, headers, cookies, proxy, and TLS fingerprint options into a server-side request and returns a structured result.

Stable v0.3.1 binaries are distributed through GitHub Releases, not PyPI/npm/container registries. Download the matching OS/architecture, verify hashes/provenance, and unpack it. Binary users do not need Go.

Capabilities ​

POST /fetch issues HTTP/HTTPS requests; GET /health checks the service. Browser selectors, JA3/JA4R, per-request proxies, redirects, timeouts, cookies, User-Agent, trailers, automatic decoding, and CORS are supported. SIGINT/SIGTERM stops new work and allows active requests up to five seconds before forced shutdown. Dependencies use fastls/ftransport, not fhttp.

The default -addr :8800 listens on all available interfaces. The examples explicitly use loopback; configure access controls before exposing the service.

Run from source ​

Go 1.26+ is required; CI covers 1.26.10 and 1.27.3. Use the repository go.mod, preferably GOWORK=off.

bash
git clone https://github.com/FastTLS/fastls-fetch.git
cd fastls-fetch
go mod download
go build -o fastls-fetch .
./fastls-fetch -addr 127.0.0.1:8800

On Windows build fastls-fetch.exe and run it with -addr 127.0.0.1:8800. Discover the installed binary's flags/version:

bash
./fastls-fetch -help
./fastls-fetch -version
./fastls-fetch -addr 127.0.0.1:8800 -debug

First request ​

bash
curl http://127.0.0.1:8800/health

curl -X POST http://127.0.0.1:8800/fetch \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "https://example.com/",
    "method": "GET",
    "browser": "chrome"
  }'

Use rolling service selectors chrome/edge/firefox/safari/opera/chromium, or supported versioned selectors such as chrome150..160, edge150..160, and firefox151..158 for fixed experiments. Check the installed version. Explicit JA3/JA4R takes precedence over browser; absent selection uses the service default. These are service adapter names, not Go Provider canonical IDs.

Behavior and architecture ​

The request adapter maps explicit options into the core; parent_proxy overrides proxy. Browser presets and custom H2 settings must be valid for the installed service. Consult the complete API for field names, response shape, defaults, and examples.

text
fastls-fetch
  └─ fastls
      ├─ ftransport       HTTP/1.1 and HTTP/2 (H3 is a separate core path)
      ├─ fastls/profile   Fingerprint model
      └─ imitate          Browser profiles

ftransport provides H1/H2; H3 is a separate restricted core path and does not imply every service option supports H3. CI rejects local replace directives and reintroduction of the fhttp module.

Development and artifacts ​

bash
go mod verify
go test ./...
go test -race ./...
go vet ./...
go build ./...

Windows/Linux/macOS and both Go toolchains cover dependency policy, unit/integration/race checks, static validation, CLI smoke, and builds. Manual runs produce temporary development artifacts; v* tags issue six-platform releases, checksums, and signed provenance. See development, examples, and artifact verification.

Deployment boundaries ​

This is a controlled-network HTTP request service, not a browser, VPN, arbitrary-protocol gateway, or guaranteed streaming RPC transport. Caller-controlled destinations/proxies require deployment authentication, egress restrictions, quotas, tenant isolation, and auditing. CORS is not authentication. Bind to loopback unless deliberately providing a protected service. Example defaults do not provide those controls.

Report redacted reproductions through issues. Owned code uses Apache-2.0, with repository NOTICE and third-party materials retained. Authorized use and disclaimer applies: no guaranteed availability, anonymity, browser equivalence, or third-party acceptance.


Source: FastTLS/fastls-fetch · README.md. Reviewed 2026-10-27.

Upgrading to v0.1.1 (historical) ​

Uses core v0.1.2 and ftransport/imitate v0.1.1; profile stays at v0.1.0. The services integrate admission and parsing resource boundaries, consistent response contracts, and opt-in redacted auditing. Auditing is disabled by default. Configure its file and shutdown budget explicitly; the bounded queue may drop events, so it is not a complete traffic log. See the audit configuration.

Roll back a verified complete service binary/configuration set. A deployment that requires address policy must not recover by disabling that policy.

Service v0.1.2 includes ingress quotas, response contracts and opt-in bounded audit events; older development notes do not imply these remain unpublished. Tool/documentation maintenance rechecks source evidence while archives keep their actual producer. See validation and recovery.

Maintenance source: fastls-fetch documentation; reviewed 2026-10-31.

Fetch / RPC 0.2.0: explicit outbound H3 ​

Fetch, JSON-RPC and gRPC add http_version: "h3"; omission/empty preserves H1/H2. gRPC uses additive field 16 without changing old fields or methods. H3 requires HTTPS and always verifies the server certificate. Operator-owned -h3-ca-file fixes private roots at startup; requests cannot replace trust or address policy.

json
{"url":"https://api.example.test/","http_version":"h3","method":"GET","timeout":5}

Replace the example with an approved H3 target; JSON-RPC puts the object in params. H3 rejects browser/fingerprint (including q), H2 settings, proxy/parent_proxy, Fetch X-Mitm-* controls and request trailers. It applies no default Firefox identity and never falls back to TCP, proxies or Alt-Svc. New connections dial approved numeric UDP peers only. Actual responses report HTTP/3.0 while existing response headers/trailers, bodies, errors, deadlines and quotas remain. Certificate/upstream failures keep ok=false; configuration failures use Fetch 400, JSON-RPC -32602 or gRPC InvalidArgument.

Only Fetch/RPC advance. MITM stays v0.1.2 with no inbound H3/QUIC interception, browser H3 fingerprint, UDP proxy or added platform. The pinned core and Python 0.6.0 / Node 0.15.0 are unchanged. See Fetch H3 and RPC H3.

H3 source: fastls-fetch H3 contract

Fetch 0.3.0 / RPC 0.3.1: optional cooperative shutdown ​

Fetch, JSON-RPC and gRPC add operator-owned -shutdown-cancel-after 1s. The default 0 disables it and preserves the five-second drain followed by a failing forced fallback. An enabled interval must be greater than zero and less than 5s; invalid values fail before listening. Request JSON, Protobuf and headers cannot override this setting.

A stop event closes admission immediately. Existing upstream work drains first; at the configured interval remaining requests are canceled and the server waits for actual handler/decoder, body, upload and permit release. Drain, cancellation, cleanup and auditing share one absolute five-second deadline measured from stop. -audit-drain-timeout may shorten audit waiting but cannot restart the budget. Completed work or cooperative cancellation with successful cleanup exits 0. Uncooperative work, incomplete transport handshakes, audit failure and forced fallback remain nonzero. Disabled mode retains the original separate audit budget.

sh
fastls-fetch -addr 127.0.0.1:8800 -shutdown-cancel-after 1s -audit-file /private/fetch.jsonl
fastls-jsonrpc -addr 127.0.0.1:8801 -shutdown-cancel-after 1s
fastls-grpc -addr 127.0.0.1:8802 -shutdown-cancel-after 1s

Original deadlines and caller cancellation remain; other instances are isolated. Requests still decoding cannot start new upstream work after stop. HTTP body reads are interrupted with a read deadline; non-interruptible decoders retain permits until actual completion. Existing error channels remain: Fetch and JSON-RPC use ok=false/error_code=cancelled; an active gRPC call may return Canceled. A closed transport may instead surface a connection error, so delivery of a complete response is not guaranteed. Auditing retains cancellation classification without request bodies or sensitive fields.

Unix supports SIGINT/SIGTERM. Windows consoles support Ctrl+C/Ctrl+Break; acceptance uses real Ctrl+Break in a private hidden console. This adds no Windows service-manager integration or remote stop API and gives no graceful guarantee after a process kill. Three entries, H1/H2/H3 and normal/cooperative/forced paths are checked separately. One five-minute mixed-protocol Linux resource observation is followed by shutdown; timings are recorded separately. MITM v0.1.2, the pinned core and Python 0.6.0 / Node 0.15.0 remain unchanged, with no new protocol or platform.

RPC v0.3.1 retains request ownership until response sending and statistics finish, avoiding premature cancellation at unary return. Normal auditing, large responses and context lifetime during sending are checked separately. Fetch reuses its original published v0.3.0 archives.

Apache-2.0 · Third-party materials retain their licenses