Repository navigation
feat: a daily tool: filters, bodies, WebSocket messages, HTTP/2, sessions, upstream proxy (0.9.0) - #23
Merged
Conversation
…roxy
HTTP/2 to programs: where HTTPS is opened the leaf offers h2 and
http/1.1 by ALPN, and a program that picks h2 is served by the standard
library's HTTP/2 server. gRPC works: TE: trailers is carried, request
and response trailers pass, and a streamed body reaches the program as
the server sends it. Flows gain client_proto and server_proto; the HAR
export uses them.
WebSocket messages: each direction of a socket is read by a frame
reader that never holds or changes the bytes (RFC 6455, fragments and
control frames, permessage-deflate noted). Per flow 1000 messages and
1 MiB are kept, 64 KiB per message, with counts past that; the stream
carries flow.message events and GET /api/flows/{id}/messages pages
them.
An upstream proxy, kept in settings.json: http, https or socks5, with
Basic credentials and a bypass list. The guard still decides the
destination: loopback never goes upstream and FormNET's own addresses
are refused. GET and POST /api/upstream never return the password.
Sessions: Save writes <data>/sessions/<name>.formnet (gzip JSON, the
bodies and messages, user-only, never replacing a file); Open replaces
the recording with new ids marked from_session; a file can also be
uploaded. HAR import appends a browser's, Charles' or FormNET's HAR
within the Store's limits.
Filters on the server: status, method, type, size, duration, error,
rules, throttled, from_session, process, focus and ignore hosts, each
invertible with a leading !, and a body search bounded at 64 MiB of
decoded text that says when it stopped. The HAR, session and cURL
exports take the same filters. Copy all as cURL writes sh, PowerShell
or cmd, credential headers redacted unless asked.
The process of short requests: on a miss the proxy asks about that one
client port in the background (netlink and /proc on Linux, lsof and ps
on macOS) and names the flow when the answer comes. Measured on a
loaded 2-core Linux machine with 50 curls in a row: 45 to 50 of 50
named against a server that answers at once, 50 of 50 against one that
adds 20 ms. Windows keeps the netstat snapshot.
…he window Above Flows: a Body switch, a lane of chips (status classes, errors, methods, JSON, HTML, JS, CSS, images, media, WebSocket, other, from a session, changed by a rule, throttled) and More filters with size, duration, process, focus hosts and ignore hosts. The text box also takes typed filters as browser developer tools do: status-code:, method:, domain:, mime-type:, larger-than: and process:, each inverted by a leading -; a value it cannot read marks the box and its tooltip names the forms. The page judges every filter by the server's rules so a click never waits, and the server's answer to the same query decides the list; the body search is the server's alone and says when it stopped early. Export HAR, Export Session and Copy All as cURL take the same query and say when it holds more than the list. The detail pane: a body viewer for requests and responses (Pretty with indented, coloured JSON, HTML and XML and folding, Raw, Hex, Image, Form, find with a count), built in slices so a body of megabytes shows its first lines at once; a Messages tab for WebSocket flows, live, with direction and type filters; protocol, upstream and source rows. File menu: Open Session (Mod+O), Save Session (Shift+Mod+S), Export Session, Close Session, Import HAR, Copy All as cURL (sh, PowerShell or cmd). Saving and exporting a session first say that the file holds the passwords, tokens and cookies the requests carried. A session chip in the options bar while one is open. Preferences > Capture gains the Upstream Proxy group; the password is write only. Measured in Chromium with the CPU throttled 4x, studio and light, layout-shift entries without recent input: the chips, every typed filter, the viewer's modes, 2,400 live WebSocket messages, the session dialogs, Copy All as cURL and the upstream group: 0 each. Each typed filter's rows equal GET /api/flows with the same parameters. The window test 6 of 6.
Every string added since 0.6.0 is translated in the 29 tables besides English: the system proxy, recipes and resend (0.7.0); rules, breakpoints, throttling and capture from other devices, with the phone menu paths each system shows in that language (0.8.0); and the filters, the body viewer, WebSocket messages, sessions, HAR import, Copy All as cURL and the upstream proxy (0.9.0). Mexican Spanish and Canadian French keep only what they say differently. Counted phrases carry the language's other plural forms (Russian, Ukrainian, Polish, Czech and Serbian few and many; Arabic zero, two, few and many). Each table keeps the terms it already used; Bypass, the hosts the upstream proxy leaves out, is kept apart from Passthrough. Every key the window uses is present in every table, with its placeholders and no em dash; in Russian the Not supported pill on Setup now fits its fixed width.
Every version site moves to 0.9.0: Makefile, the README badge, web/package.json and its lock, src-tauri/tauri.conf.json, and src-tauri/Cargo.toml and its lock. CHANGELOG.md has the section for this version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: a daily tool: filters, bodies, WebSocket messages, HTTP/2, sessions, upstream proxy (0.9.0)
Built on 0.8.0 (
feat/rules-0.8.0). If the earlier pull requests are not merged yet, this zip carries their commits too.Summary
status-code:404,method:POST,domain:*.example.com,mime-type:image/,larger-than:100k,process:curl, a leading-inverts). The server judges every filter and takes!on each value; the page judges the same rules so clicks never wait. A Body switch searches the decoded bodies (bounded at 64 MiB per search, and says when it stopped)..formnet, user-only files that never replace one another), HAR import, Copy All as cURL for sh, PowerShell and cmd. Saving and exporting a session say first that the file holds the requests' passwords, tokens and cookies.Commits
Hashes change when the commits are signed.
Version
v0.9.0 (release commit is last). Bumped:
Makefile, the README badge,web/package.jsonand its lock,src-tauri/tauri.conf.json,src-tauri/Cargo.tomland its lock.Checks
Run on Linux:
npm ci,npm audit(0 found),make check,make test(82 Go tests),make build, the four cross-compiles, the window test (6 of 6),cargo check --lockedfor the Linux, Windows and both macOS targets (no Rust warning). Each commit builds, vets and type-checks on its own.GET /api/flows; the cURL scripts for sh run against a local server. The Process column with 50 curls in a row on a loaded 2-core machine: 45 to 50 of 50 named against a server that answers at once, 50 of 50 against one that adds 20 ms.Not run: macOS and Windows (the Process column on macOS, HTTP/2 in a real browser, a real gRPC client, a corporate upstream, SOCKS5, HTTPS through an upstream); a native speaker's read of the translations. Windows still names programs from the 2-second snapshot, so very short requests there may show none. The steps are in
TEST_PLAN.mdin the planning sidecar.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.