Skip to content

feat(traffic): say which key, app and machine sent a request - #99

Merged
fylorn merged 1 commit into
devfrom
feat/request-source
Sep 22, 2026
Merged

fylorn merged 1 commit into
devfrom
feat/request-source

Conversation

@fylorn

@fylorn fylorn commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

The traffic page's Client column, the request drawer's Client row and the security log all showed the gateway key's name. With keys named after apps, that read as "Codex sent this". It does not mean that: a key can be called anything, several apps can share one, and once the gateway is open to the local network, several machines can share one too.

What changes

  • The key is called a key everywhere: the traffic column, its filter and row menu, the search placeholder, the request drawer and the security log.

  • The key reads as it does on the keys page: masked, with its name in parentheses, tw-re…wb4e (claude-code). The mask is the one core recorded when the request arrived, so a rotated key does not put its new tail on old requests. Old records without a mask read "Key claude-code".

  • The app and the source sit next to it, in muted text:

    • the app the request headers point to (Claude Code, Codex CLI and so on), which is a guess and is only displayed;
    • for a request from another machine, "from 192.168.1.23".

    The drawer puts them on rows of their own and marks the app as guessed from the request headers.

  • The traffic page shows the key column whenever keys, apps or sources differ. One key shared by two apps, or used from another machine, is worth a column.

  • Search also matches the app and the source.

This pins core v0.21.0, which records the source and the app (ThinkWatchProject/ThinkWatch-Core#90) and the masked key (ThinkWatchProject/ThinkWatch-Core#93).

Checks

  • tsc, vitest (181 passed) and build pass.
  • cargo clippy -D warnings and cargo test pass in src-tauri.
  • The security log and request drawer were checked in the mock preview, including an entry from 192.168.1.23 with a masked key.
  • An isolated instance running the new core was checked with requests carrying Claude Code's and Codex's headers, one of them on a key named after a different app.

🤖 Generated with Claude Code

The traffic page, the request drawer and the security log showed the
gateway key's name as "client", which with keys named after apps read
as "Codex sent this". A key can be called anything, apps can share one,
and on a network-exposed gateway machines can share one too.

The key is now called a key and reads as on the keys page, masked with
its name (tw-re...wb4e (claude-code)); the mask is the one core took
when the request arrived. Beside it, muted, the app the headers point
to (a guess) and, for another machine, where the request came from. The
traffic page shows the key column when keys, apps or sources differ,
and search matches the app and source. Pins core v0.21.0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@fylorn
fylorn force-pushed the feat/request-source branch from baa091c to 495b41d Compare September 22, 2026 03:38
@fylorn
fylorn merged commit ca83440 into dev Sep 22, 2026
2 checks passed
@fylorn
fylorn deleted the feat/request-source branch September 22, 2026 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant