Repository navigation
chat: enforce managed customization lockdown - #327843
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds enterprise-managed lockdown controls for chat customizations, hooks, and MCP servers.
Changes:
- Registers and normalizes new managed policies.
- Enforces restrictions across prompt and MCP discovery.
- Adds policy documentation and tests.
Show a summary per file
| File | Description |
|---|---|
managedSettings.test.ts |
Tests server-setting adaptation. |
managedSettings.ts |
Adds managed response fields. |
mcpRegistry.test.ts |
Tests MCP collection lockdown. |
mcpTypes.ts |
Adds plugin provenance metadata. |
mcpRegistry.ts |
Filters blocked MCP collections. |
pluginMcpDiscovery.ts |
Marks plugin MCP collections. |
promptsService.test.ts |
Tests customization and hook restrictions. |
agentPluginEnablement.test.ts |
Tests policy-forced plugins. |
customizationLockdown.test.ts |
Tests lockdown helpers. |
promptsServiceImpl.ts |
Enforces prompt and hook policies. |
AGENTS_PLUGINS.md |
Documents enterprise controls. |
agentPluginEnablement.ts |
Detects policy-forced plugins. |
customizationLockdown.ts |
Defines shared lockdown logic. |
chat.shared.contribution.ts |
Registers configuration policies. |
fileManagedSettingsService.test.ts |
Tests normalization behavior. |
copilotManagedSettings.ts |
Defines and encodes managed settings. |
allowedMcpServersService.test.ts |
Tests authoritative allowlists. |
allowedMcpServersService.ts |
Enforces managed MCP allowlists. |
policyData.jsonc |
Updates generated policy metadata. |
Review details
- Files reviewed: 19/19 changed files
- Comments generated: 3
- Review effort level: Medium
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Contributor
|
Base:
|
joshspicer
marked this pull request as ready for review
July 30, 2026 22:47
Co-authored-by: Copilot <[email protected]>
joshspicer
force-pushed
the
agents/vscode-issue-8464-implementation
branch
from
July 30, 2026 22:49
4b62d6a to
3f52d22
Compare
roblourens
previously approved these changes
Jul 30, 2026
Block standalone instruction and agent-instruction files when strict plugin-only customization is enforced, while preserving plugin instructions. Co-authored-by: Copilot <[email protected]>
joshspicer
enabled auto-merge (squash)
July 30, 2026 23:58
Don Jayamanne (DonJayamanne)
approved these changes
Jul 31, 2026
Dmitriy Vasyura (dmitrivMS)
approved these changes
Jul 31, 2026
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes https://github.com/microsoft/vscode-internalbacklog/issues/8464
Summary
Adds VS Code-native enforcement for exactly three boolean managed-settings controls:
strictPluginOnlyCustomizationallowManagedMcpServersOnlyallowManagedHooksOnlyallowedMcpServersanddeniedMcpServersare pre-existing managed-settings data. This change does not add them as controls;allowManagedMcpServersOnlyonly changes which existing allowlist layer is authoritative.Code changes
strictPluginOnlyCustomizationis true, while preserving eligible plugin contributions.allowManagedHooksOnly, accepts plugin hooks only when managedenabledPluginsexplicitly force-enables that plugin.allowManagedMcpServersOnly, uses only the policy-provided existing MCP allowlist as the positive allow source, while continuing to compose deny entries restrictively.This PR intentionally covers VS Code-native enforcement only; it does not forward these settings into Copilot CLI or SDK sessions.
Validation
npm run typecheck-clientnpm run gulp compile-client