claude-code - 💡(How to fix) Fix [DOCS] Managed marketplace restrictions docs omit blockedMarketplaces pattern entries [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52611Fetched 2026-04-24 06:02:30
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3
RAW_BUFFERClick to expand / collapse

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/plugin-marketplaces

Section/Topic

"Managed marketplace restrictions" and the blockedMarketplaces managed setting

Current Documentation

The docs currently say:

For organizations requiring strict control over plugin sources, administrators can restrict which plugin marketplaces users are allowed to add using the strictKnownMarketplaces setting in managed settings.

  • For hostPattern sources: the marketplace host is matched against the regex pattern
  • For pathPattern sources: the marketplace's filesystem path is matched against the regex pattern

And the settings reference currently says:

blockedMarketplaces | (Managed settings only) Blocklist of marketplace sources. Blocked sources are checked before downloading, so they never touch the filesystem. See Managed marketplace restrictions | [{ "source": "github", "repo": "untrusted/plugins" }]

What's Wrong or Missing?

Changelog v2.1.119 includes: Security: blockedMarketplaces now correctly enforces hostPattern and pathPattern entries.

Current docs explain hostPattern and pathPattern matching only for strictKnownMarketplaces, but they do not document that blockedMarketplaces also accepts those entry types or how those matches are evaluated.

As written, the docs make blockedMarketplaces look like a simple exact-match blocklist with source objects such as { "source": "github", "repo": "untrusted/plugins" }. That leaves administrators without documentation for host-wide or filesystem-path-based marketplace blocking, even though v2.1.119 confirms those entries are intended and security-relevant.

Suggested Improvement

Add blockedMarketplaces documentation alongside the existing managed marketplace restrictions coverage.

At minimum, document:

  • that blockedMarketplaces supports hostPattern and pathPattern entries
  • the matching behavior for those regex-based entries
  • one example that blocks marketplaces from a specific host
  • one example that blocks filesystem-based marketplaces from a path prefix

Also add a short cross-reference from the blockedMarketplaces row in the settings and permissions references so admins can find the full schema quickly.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageContext
https://code.claude.com/docs/en/plugin-marketplacesManaged marketplace restrictions currently documents strictKnownMarketplaces pattern matching, but not the equivalent blockedMarketplaces behavior
https://code.claude.com/docs/en/settingsSettings reference lists blockedMarketplaces with only a GitHub example and no pattern-entry guidance
https://code.claude.com/docs/en/permissionsManaged-only settings table lists blockedMarketplaces but provides no schema or matching details

Total scope: 3 pages affected

Source: Changelog v2.1.119

Changelog entry: Security: blockedMarketplaces now correctly enforces hostPattern and pathPattern entries

extent analysis

TL;DR

Update the documentation for blockedMarketplaces to include information on hostPattern and pathPattern entries and their matching behavior.

Guidance

  • Review the current documentation for strictKnownMarketplaces and adapt the pattern matching explanation for blockedMarketplaces.
  • Add examples to the documentation to illustrate how to block marketplaces from a specific host and how to block filesystem-based marketplaces from a path prefix.
  • Update the settings reference to include a cross-reference to the full schema for blockedMarketplaces.
  • Verify the changes by checking the affected pages (plugin-marketplaces, settings, and permissions) to ensure the new documentation is accurate and consistent.

Example

No code snippet is necessary for this issue, as it is focused on documentation updates.

Notes

The changes should be made to the affected pages listed in the issue, and the documentation should be updated to reflect the correct behavior of blockedMarketplaces as described in the changelog entry for v2.1.119.

Recommendation

Apply workaround: Update the documentation to include the missing information, as this will provide administrators with the necessary guidance to use the blockedMarketplaces feature effectively.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [DOCS] Managed marketplace restrictions docs omit blockedMarketplaces pattern entries [1 participants]