Skip to content

fix(security): harden MCP, SDK, CLI and workflow boundaries - #487

Merged
dodeja merged 42 commits into
mainfrom
fix/security-boundaries-20261022
Oct 25, 2026
Merged

dodeja merged 42 commits into
mainfrom
fix/security-boundaries-20261022

Conversation

@dodeja

@dodeja dodeja commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

What changed

Validate caller identity before operator-key documentation search. Contain OAuth helper errors and stale refresh/login updates. Encode terminal controls in human CLI output, use private exclusive config writes, and preserve SDK cancellation through retries and body consumption. Replace live captures with deterministic synthetic public fixtures.

Pin CI actions and review-plugin inputs, validate release tags as data, separate read-only Postman validation from main-only publication, and minimize documentation analytics URL/referrer metadata. Root tests include security and fixture checks.

Scope and validation

PR #488 was merged into this branch, so this PR now includes its CI and telemetry changes. Both subsequent main updates are preserved. Latest fetched main is 29de6a6ad9e5b9ebf06f45c527a36424c2c93cb5. The current head c2c7fbe7c628a7c830f22a2c65f1367901975f44 has the exact tree that passed all seven npm run agent-verify steps locally. Real local CLI, SDK abort, helper and stdio smoke checks passed with synthetic credentials. Independent source reviews and Claude Opus review passed after correcting alternate referrer and refresh/login handling. A separate review accepted the main-merge resolution.

Human CLI control characters become visible escapes. JSON/NDJSON retains the data. SDK deadlines include response consumption, and unsafe existing config permissions are rejected.

Remaining validation

Final-head preview handshake passed, but live tool evaluation stopped at fixture discovery with upstream HTTP 401. All 32 live cases were skipped. This repeats the earlier-head failure. DEV-13958 tracks private credential/account/routing checks and rerunning the current-head gate. Other remote checks included pending jobs at handoff. The gate was not weakened. This PR is not merge-ready.

Historical-key revocation, deployed backend denial proof, npm publishing policy and native repository-rule decisions remain separate owner work. No production deployment, credential revocation or history rewrite is included. The development-only Faker/Postman advisory remains open in Dependabot #313; an isolated patched-Faker override broke legacy Postman initialization. Runtime-only audit reports zero advisories.

Review follow-up

All five original review threads on #487 and merged #488 are addressed. Restored SDK trade-intelligence response shapes and CLI demurrage/rail table contracts. Unrelated release families skip before checkout while selected/manual tags retain validation. A pinned official Segment standalone SDK test now captures initial and SPA page POST bodies with synthetic configuration and blocked external network. It also verifies the fix for an initial URL ending in undefined. The merge-commit separation thread was answered with actual scoped ancestor commits; follow-up SDK, CLI, workflow, test-tooling and docs runtime changes remain separate commits.

At c2c7fbe7c628a7c830f22a2c65f1367901975f44, full local agent-verify passes seven steps. Independent current-head source review passes. The five original threads have replies and are resolved. Fresh remote CI still has the authenticated preview failure with upstream HTTP401; DEV-13958 remains open. Existing unchanged zod/fast-uri dependency entries now have separate follow-up DEV-14059. No merge or production deployment was performed.

dodeja added 29 commits October 22, 2026 21:06
@mintlify

mintlify Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
terminal49 🟢 Ready View Preview Oct 25, 2026, 2:20 PM

@github-actions github-actions Bot added risk:unknown Advisory evidence unavailable or changed; no merge permission and removed risk:high Advisory path risk; current-head human review needed labels Oct 23, 2026
@dodeja dodeja changed the title fix(security): harden MCP and client boundaries with synthetic fixtures fix(security): harden MCP, SDK, CLI and workflow boundaries Oct 23, 2026
@github-actions github-actions Bot added risk:high Advisory path risk; current-head human review needed and removed risk:unknown Advisory evidence unavailable or changed; no merge permission labels Oct 23, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 03e505c517

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/segment.js
@github-actions github-actions Bot added risk:unknown Advisory evidence unavailable or changed; no merge permission and removed risk:high Advisory path risk; current-head human review needed labels Oct 25, 2026
@github-actions github-actions Bot added risk:high Advisory path risk; current-head human review needed and removed risk:unknown Advisory evidence unavailable or changed; no merge permission labels Oct 25, 2026
@dodeja
dodeja merged commit c599f5a into main Oct 25, 2026
39 of 40 checks passed
@dodeja
dodeja deleted the fix/security-boundaries-20261022 branch October 25, 2026 14:25
@github-actions github-actions Bot mentioned this pull request Oct 25, 2026

This branch was successfully deployed

2 active deployments
Preview — c2c7fbe7 Deployed Oct 25, 2026 by vercel[bot]
staging - docs — c2c7fbe7 Deployed Oct 25, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:high Advisory path risk; current-head human review needed risk-shadow:high Shadow-only risk signal: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant