[pkg firewall] docs only: record why VS Code needs a product.json patch - #24
Open
dekkagaijin wants to merge 1 commit into
Open
[pkg firewall] docs only: record why VS Code needs a product.json patch#24dekkagaijin wants to merge 1 commit into
dekkagaijin wants to merge 1 commit into
Conversation
Design note, no code. Lands ahead of the VS Code ecosystem implementation so
the mechanism can be agreed before the implementation is reviewed.
The obvious way to point VS Code's extension gallery at the firewall is the
ExtensionGalleryServiceUrl enterprise policy: MDM-delivered, survives updates,
not user-editable. It cannot carry this, for three reasons verified against the
shipping 1.131.0 bundle and upstream release/1.99 + main:
1. It expects an IExtensionGalleryManifest, not a marketplace API root.
2. VS Code gates it behind a GitHub entitlement — no Copilot
Business/Enterprise seat means a null manifest, which disables the
Extensions view entirely. A failed gate is worse than not deploying.
3. `code --install-extension` never consults it; cliProcessMain.js reads
productService.extensionsGallery.serviceUrl directly.
Patching product.json has no entitlement gate, needs no manifest endpoint, and
covers the CLI for free.
Also records what would unblock the policy path (a factory-side manifest
endpoint, which would make it an additional delivery option rather than a
replacement), why AllowedExtensions is left under admin control rather than
generated, and how to verify policy state on a machine.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
dekkagaijin
force-pushed
the
vscode-fw-1-policy-findings
branch
from
August 6, 2026 16:10
ecee534 to
001633c
Compare
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Design notes, no code. The proposed implementation in the RFC Lands ahead of the VS Code ecosystem implementation so the mechanism can be agreed before the implementation is reviewed.
The obvious way to point VS Code's extension gallery at the firewall is the ExtensionGalleryServiceUrl enterprise policy: MDM-delivered, survives updates, not user-editable. It cannot carry this, for three reasons verified against the shipping 1.131.0 bundle and upstream release/1.99 + main:
IExtensionGalleryManifestreturned from the marketplace API root. We currently return an HTTP400.code --install-extensionnever consults it;cliProcessMain.jsreads productService.extensionsGallery.serviceUrl directly. Without an upstream patch, we must have a solution for patching and maintaining VSCode'sproduct.jsondurably across updates.Patching
product.jsonhas no entitlement gate, needs no manifest endpoint, and covers the CLI for free.Also records what would unblock the policy path (a factory-side manifest endpoint, which would make it an additional delivery option rather than a replacement), why AllowedExtensions is left under admin control rather than generated, and how to verify policy state on a machine.
https://endorlabs.atlassian.net/browse/LM-452