Skip to content

feat(security): a log, global rules you can see and edit, and an MCP page - #96

Merged
fylorn merged 1 commit into
devfrom
feat/security-page
Sep 21, 2026
Merged

fylorn merged 1 commit into
devfrom
feat/security-page

Conversation

@fylorn

@fylorn fylorn commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Rebuilds the security page around the two protections that act on traffic, and moves everything about client configuration to a new MCP page. Pins core v0.18.0 (ThinkWatchProject/ThinkWatch-Core#85), where both protections became global.

Security page

Three tabs: Log, Outbound redaction, Tool-call inspection.

  • Log: one row per hit, with the time, the type, the rule plus the masked value or call excerpt, what happened to it (recorded, replaced or cut off), and the key → upstream and model. It filters by type and range and pages backwards. Clicking a row opens the request. The row menu can also show the rule or turn it off, which is the quick fix for a false positive.
  • Each protection: the mode (off / observe / enforce), with one line on what it does now and one on what enforce would change, followed by every rule. Built-in rules can be turned off one at a time. Custom rules are regular expressions, created and edited in dialogs. A sample can be tried against the rule being written, against one built-in rule (even one that is off) or against every rule that is on. Matches are highlighted at the offsets core reports, so the highlight agrees with the gateway.
  • The protections are global, so the per-upstream and per-route settings are gone: the upstream dialog loses its Security section (a new upstream takes three steps), the upstream list loses the Official endpoint badge, and route rules lose their security requirement.

MCP page

  • Servers: the client matrix. Columns are headed by client names. A server configured differently across clients shows a badge that opens a side-by-side comparison.
  • Skills and hooks: the two lists, with rows that matched a scan rule marked by level.
  • Findings: new findings first and marked, with Mark as read.

The sidebar badge and scan notifications now point here, and the page opens on Findings when something is new.

Overview

The credential-leak banner is gone. The security block keeps two rows. Their counts follow the selected range and are the same rows as the log. A non-zero count opens the log with that type and range; the live view opens the last 24 hours, which is what its counts cover.

Elsewhere

  • Traffic: the redaction and tool-call badges now come from history too, so they no longer disappear when the window reopens. A request sent with credentials in observe mode gets a Credentials badge.
  • Request details: the timeline has a Security row listing every hit.
  • Notifications: tool-call notifications name the rule, and only rules set to cut off raise one.
  • Chinese text for the new core messages; scan findings and tool-call errors name the rule instead of its id.

Checks

tsc, vitest (181 passed), and cargo clippy -D warnings plus cargo test in src-tauri all pass. Every screen was checked in an isolated mock preview, using the real rule data from core, in Chinese and English, dark and light, at 1100×720.

🤖 Generated with Claude Code

…page

The security page keeps only the two protections that act on traffic,
outbound redaction and tool-call inspection, and opens on a log of what
they caught. Each protection shows its mode and every rule: built-in
rules turn off one at a time, custom rules are regular expressions
edited in dialogs, and any rule can be tried on a sample first. Both
are global, so the upstream dialog, the upstream list and route rules
lose their security settings.

MCP servers, skills and hooks and the config scan move to a new MCP
page. The overview drops the leak banner; its security counts follow
the selected range, match the log and open it. Traffic badges now come
from history too, and request details list every hit.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@fylorn
fylorn merged commit af90141 into dev Sep 21, 2026
2 checks passed
@fylorn
fylorn deleted the feat/security-page branch September 21, 2026 17:28
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