Skip to content

chat: validate SDK featured plugin marketplace trust - #340606

Merged
Paul (pwang347) merged 2 commits into
mainfrom
copilot/sdk-featured-plugin-trust-followup
Oct 9, 2026
Merged

Paul (pwang347) merged 2 commits into
mainfrom
copilot/sdk-featured-plugin-trust-followup

Conversation

@pwang347

@pwang347 Paul (pwang347) commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #339896 addressing the featured SDK plugin marketplace trust review finding. The parent PR merged while this follow-up was being prepared, so this targets main directly.

  • carry the SDK-registered marketplace source through Agent Host catalog search and provider installation metadata
  • derive the exact trust/policy reference from that SDK source rather than matching a policy-filtered local marketplace by name
  • include the source in catalog identity and fail closed when an older host does not advertise it
  • run the existing marketplace trust and strict enterprise policy gate before invoking SDK installation
  • cover same-name source substitution, declined trust, and policy-filtered marketplace paths

Testing

  • Passed: npm run build-fast -- --client-only
  • Passed (73 tests): ./scripts/test.sh --run src/vs/platform/agentHost/test/node/copilotCustomizationInstallations.test.ts --run src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHost/agentHostCustomizationMarketplaceInstallProvider.test.ts --run src/vs/workbench/contrib/chat/test/browser/aiCustomization/customizationMarketplaceInstallService.test.ts
  • Passed: npm run eslint -- src/vs/platform/agentHost/common/agent.ts src/vs/platform/agentHost/node/copilot/customizations/copilotCustomizationInstallations.ts src/vs/platform/customizationMarketplace/common/customizationMarketplaceService.ts src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationMarketplaceInstallProvider.ts src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplaceInstallService.ts src/vs/platform/agentHost/test/node/copilotCustomizationInstallations.test.ts src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHost/agentHostCustomizationMarketplaceInstallProvider.test.ts src/vs/workbench/contrib/chat/test/browser/aiCustomization/customizationMarketplaceInstallService.test.ts
  • Passed: npm run typecheck-client

Copilot AI balanced review requested due to automatic review settings October 8, 2026 23:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Marketplace name matching does not bind trust to the SDK installation source and mishandles strict-policy denial.

2 open findings
What changed in this PR

Adds trust validation before SDK-featured plugin installation.

Changes:

  • Resolves featured plugins through registered marketplaces and applies trust checks.
  • Adds approved and declined trust-path tests.
File Description
customizationMarketplaceInstallService.ts Adds marketplace resolution and trust gating.
customizationMarketplaceInstallService.test.ts Tests trust approval and rejection.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

roblourens
roblourens previously approved these changes Oct 8, 2026
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.

5 participants