Repository navigation
fix(security): redact credentials in declared component paths - #301
Merged
Merged
Conversation
Component-path findings and inventory rows quoted the declared value as written, so a skills, commands, agents, hooks or other component entry holding a URL with userinfo or a query credential copied it into reports. Only mcpServers references were redacted. The MCP redactor now lives in plugin_paths as reported_ref, and every declared-path finding, broken inventory row and discovery message uses it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
requested review from
chrisknvidia,
mosheabr and
rmalani-nv
as code owners
October 30, 2026 20:14
rng1995
enabled auto-merge
October 30, 2026 20:17
Windows rejects '?' in file names, so a declared path such as 'styles?token=...' is reported as unsafe rather than missing, and that finding used the declared path, credential included, as its location. The location is now shown through reported_ref like the message. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
chrisknvidia
pushed a commit
that referenced
this pull request
Oct 30, 2026
* fix(security): redact credentials in declared component paths * fix(security): redact the location of an unsafe declared path Signed-off-by: Narendran Raghavan <[email protected]>
This was referenced Nov 2, 2026
Merged
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.
Summary
Follow-up to #260, from its "Not in this PR" list. Component-path findings and inventory rows quoted a declared manifest value as written. So a
skills,commands,agents,hooksor other component entry holding a URL with userinfo (https://user:pw@host/...) or a query credential (./hooks.json?token=...) copied the credential into finding messages,plugin_component_refmetadata and broken inventory rows. OnlymcpServersreferences were redacted (#260, R32).The MCP reference redactor moves from
plugin_mcp.pytoplugin_paths.pyasreported_ref. Every place that shows a declared path now uses it:styles?token=...cannot be opened (?is not allowed in file names), so it is reported as unsafe instead of missing, and that finding used the declared path as its location.A value with no credentials is shown exactly as before.
This is private, not-yet-activated plugin analysis, so there is no CHANGELOG entry. The manifest record itself still keeps the source as written, as before; only report-facing text changes.
Verification
I am familiar with the Contributing Guidelines
Added or updated focused tests
Updated documentation for user-visible changes
Ran
make lintRan
make testRan
make buildDid not add credentials, private datasets, or proprietary benchmark content
New tests: in
tests/test_plugin_discovery.py,test_declared_component_references_never_show_their_credentialscovers five Claude fields and a Codex non-path entry, andtest_unsafe_declared_path_location_never_shows_its_credentialscovers the unsafe-path location. Both fail on main and pass here. The Windows CI lane found the unsafe-path case.Other tests:
tests/test_plugin_discovery.pyandtests/validators/test_plugin_mcp.pypass (77 tests), andruff checkandruff format --checkare clean on the touched files. The full suite and the Windows lane run in CI.Release Impact
CHANGELOG.md🤖 Generated with Claude Code