tobogganSe connecter

louise

The Louise language: compiler, runtime, std, tooling

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

packages/fetch: an HTTP/1.1 GET that refuses private addresses (ADR 0079)

fetch.get target headers Options(tls, policy, max_body, max_head,
deadline) -> Result<Response(status, headers, body, truncated), Error>.
It resolves the host once and, under PublicOnly, refuses it if any
address is private (fetch/address), then connects to the checked
addresses only; TLS verifies the host name (SNI); it sends
Connection: close and Accept-Encoding: identity, refuses CR/LF in
headers and drops the caller's framing headers; it skips 1xx, reads by
Content-Length, chunked or until close, keeps max_body bytes and says
when it cut; it never follows redirects. The exchange runs in a
monitored actor killed at the deadline (TimedOut).

fetch/address classifies IPv4 and IPv6 addresses (mapped and NAT64
ones by their IPv4 address); fetch/response holds the pure head,
framing and chunked parsers. Both have property tests in both back
ends. Loopback tests (std/http, a raw server, a TLS server with the
fixtures' CA, a stalling server) run natively when LOUISE_NET_TESTS is
set. CI checks and tests the package.

Needs engineering review: an SSRF surface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 2 sem. · b6074eaef40a8b6904a5c133aa726c4b9fab69d2

Parents 37f36f4

9 fichiers modifiés, 2652 ajouts, 1 suppressions