Tighten known-domains allowlist - #496
Conversation
Narrow broad domain entries to specific paths/subdomains actually used: - aka.ms -> aka.ms/dotnet-trace, aka.ms/perfcollect - nuget.org -> api.nuget.org, www.nuget.org/account/trustedpublishing - npmjs.com/package/@modelcontextprotocol -> pinned to inspector/v/0.21.1 Remove unused domains: fluentassertions.com, speedscope.app Update skill content to match: pin MCP Inspector link, remove FluentAssertions link, remove speedscope hyperlink. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove the remaining nugettest.org publish example and drop the nugettest.org allowlist entry. Also normalize path-scoped entries to omit a hardcoded www prefix so both host forms match the existing ReferenceScanner logic. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
leslierichardson95
left a comment
There was a problem hiding this comment.
Still looks good!
There was a problem hiding this comment.
Pull request overview
This PR tightens the repository’s external-link allowlist (eng/known-domains.txt) to reduce the set of permitted outbound references in skill content, and updates affected skill documentation to comply with the narrowed allowlist (plus a small CODEOWNERS update for MCP C# skills/tests).
Changes:
- Narrow
eng/known-domains.txtentries to path-scoped allowlist items (e.g.,aka.ms/dotnet-trace,nuget.org/account/trustedpublishing) and remove no-longer-needed community domains. - Update skill/reference markdown files to remove or pin external links so they remain compliant (e.g., pin npmjs MCP Inspector to a specific version, remove FluentAssertions and Speedscope hyperlinks, remove NuGet test push example).
- Update CODEOWNERS entries for the MCP C# skill/test directories.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| plugins/dotnet-diag/skills/dotnet-trace-collect/references/dotnet-trace-collect.md | Removes the speedscope.app hyperlink while preserving the tool reference in the output formats table. |
| plugins/dotnet-ai/skills/mcp-csharp-test/SKILL.md | Removes the FluentAssertions external link from “More Info”. |
| plugins/dotnet-ai/skills/mcp-csharp-publish/references/nuget-packaging.md | Removes the NuGet test-environment push example (nugettest.org). |
| plugins/dotnet-ai/skills/mcp-csharp-debug/SKILL.md | Pins the MCP Inspector npmjs link to a specific versioned page. |
| eng/known-domains.txt | Tightens allowlist entries (path-scoped) and removes unneeded domains to reduce external-link surface area. |
| .github/CODEOWNERS | Updates ownership for MCP C# skill/test directories. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/evaluate |
Skill Validation Results
[1]
Model: claude-opus-4.6 | Judge: claude-opus-4.6 🔍 Full Results - additional metrics and failure investigation steps |
* Tighten known-domains allowlist Narrow broad domain entries to specific paths/subdomains actually used: - aka.ms -> aka.ms/dotnet-trace, aka.ms/perfcollect - nuget.org -> api.nuget.org, www.nuget.org/account/trustedpublishing - npmjs.com/package/@modelcontextprotocol -> pinned to inspector/v/0.21.1 Remove unused domains: fluentassertions.com, speedscope.app Update skill content to match: pin MCP Inspector link, remove FluentAssertions link, remove speedscope hyperlink. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * updated mcp skills codeowner * Refine scoped known-domain entries Remove the remaining nugettest.org publish example and drop the nugettest.org allowlist entry. Also normalize path-scoped entries to omit a hardcoded www prefix so both host forms match the existing ReferenceScanner logic. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Leslie Richardson <lerich@microsoft.com>
Tighten known-domains allowlist
Supersedes #495, recreated from an upstream branch so infra-related checks run with the expected permissions.
Narrows the known-domains allowlist to reduce the surface area of permitted external links in skill content.
Changes
known-domains.txt
aka.ms(broad) ->aka.ms/dotnet-trace,aka.ms/perfcollectnuget.org(broad) ->api.nuget.org,nuget.org/account/trustedpublishingnpmjs.com/package/@modelcontextprotocol(broad, nonexistent URL) ->npmjs.com/package/@modelcontextprotocol/inspector/v/0.21.1nugettest.org,fluentassertions.com, andspeedscope.appSkill content fixes
mcp-csharp-debug/SKILL.md: Pin MCP Inspector link to v0.21.1mcp-csharp-test/SKILL.md: Remove FluentAssertions linkmcp-csharp-publish/references/nuget-packaging.md: Remove the NuGet test-environment push exampledotnet-trace-collect.md: Remove speedscope.app hyperlink, keep tool name