Skip to content

fix(security): close residual scope and detection gaps - #1272

Merged
Dumbris merged 1 commit into
mainfrom
codex/106-security-residual-fixes
Sep 13, 2026
Merged

Dumbris merged 1 commit into
mainfrom
codex/106-security-residual-fixes

Conversation

@Dumbris

@Dumbris Dumbris commented Sep 12, 2026

Copy link
Copy Markdown
Member

Description

Code-execution activity could miss secrets after the 8 KiB display boundary or in the parent script, while server-edition tokens retained stale grants after revocation or unsharing. Scoped status/SSE paths also had residual fail-open and credential-display gaps.

This change scans full detector-only payloads while keeping stored/event output bounded, revalidates owned token scope and SSE authorization against live state, adds owner-qualified admin revocation, commits sharing changes atomically, and makes scoped statistics and status URLs fail closed. The runtime now keeps detector-only event data away from public subscribers.

Closes #1265
Closes #1179
Closes #1184

Testing

  • Real personal-edition daemon with a stdio MCP fixture: detected a synthetic secret after 9,000 response characters in child and parent activity, with redacted bounded storage.
  • Real server-edition daemon with two owners using the same opaque token name: owner-qualified revocation, live unsharing, and restart persistence verified.
  • Default table/JSON/YAML status output masks credentials; explicit --web-url safely percent-encodes reserved characters.
  • Full race-enabled internal unit suite passed with the repository's CI exclusions.
  • Server-edition/config/OAuth/storage race suite passed.
  • Personal and server-tagged CLI race suites passed.
  • golangci-lint reports zero issues.
  • Push hooks passed OpenAPI, roadmap, formatting, and build verification.

OpenCode cross-review used github-copilot/claude-fable-5, the closest exposed Claude Fable model because the requested claude-fable-5.1 identifier was unavailable, plus github-copilot/gpt-6-astra. All actionable findings were fixed; the final focused Astra review returned CLEAN.

Detailed commands and real-instance evidence are recorded in specs/106-security-residual-fixes/verification.md.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7765346
Status: ✅  Deploy successful!
Preview URL: https://47f3ede7.mcpproxy-docs.pages.dev
Branch Preview URL: https://codex-106-security-residual.mcpproxy-docs.pages.dev

View logs

@codecov-commenter

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: codex/106-security-residual-fixes

Available Artifacts

  • archive-darwin-amd64 (29 MB)
  • archive-darwin-arm64 (27 MB)
  • archive-linux-amd64 (17 MB)
  • archive-linux-arm64 (16 MB)
  • archive-windows-amd64 (29 MB)
  • archive-windows-arm64 (26 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (24 MB)
  • installer-dmg-darwin-arm64 (21 MB)
  • smart-mcp-proxymcpproxy-goMY0LD2.dockerbuild (0 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 34710130573 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@Dumbris
Dumbris merged commit 2666437 into main Sep 13, 2026
57 of 63 checks passed
@Dumbris
Dumbris deleted the codex/106-security-residual-fixes branch September 13, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants