Skip to content

eng: add root NuGet.Config with package source mapping#215

Open
AlexAlves87 wants to merge 4 commits intoopenclaw:masterfrom
AlexAlves87:eng/root-nuget-source-mapping
Open

eng: add root NuGet.Config with package source mapping#215
AlexAlves87 wants to merge 4 commits intoopenclaw:masterfrom
AlexAlves87:eng/root-nuget-source-mapping

Conversation

@AlexAlves87
Copy link
Copy Markdown
Contributor

Repo Assist raised #214 as a fallback review issue while commenting on #159.
Since this is a legitimate repo-wide hardening improvement and the repo does
not rely on private feeds, I picked it up here as a small standalone change.

This adds a root NuGet.Config that clears any inherited machine- or
user-level package sources and restricts restore exclusively to nuget.org
via package source mapping, closing the dependency-confusion vector described
in #214.

OpenClaw.CommandPalette is unaffected: its local nuget.config already
uses <clear /> and the same mapping, so its behavior remains unchanged.

No code changes. Build and test results are unchanged.

Closes #214.

AlexAlves87 and others added 4 commits April 8, 2026 16:34
Without a root-level NuGet.Config, machine-level or user-level feeds
could accidentally resolve packages, opening a dependency confusion
vector. The <clear /> + packageSourceMapping locks all resolution
exclusively to nuget.org.

Mirrors the pattern already in src/OpenClaw.CommandPalette/nuget.config.
OpenClaw.CommandPalette is unaffected (its local config also has <clear />).

Closes openclaw#214.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

[Repo Assist] eng: add root NuGet.Config with package source mapping

1 participant