Skip to content

docs(security): clarify that static repository transport config is out of scope - #16599

Merged
zkochan merged 1 commit into
mainfrom
docs/clarify-untrusted-repo-npmrc-security
Oct 5, 2026
Merged

zkochan merged 1 commit into
mainfrom
docs/clarify-untrusted-repo-npmrc-security

Conversation

@zkochan

@zkochan zkochan commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Clarify in SECURITY.md that static configuration settings in repository-level .npmrc or pnpm-workspace.yaml (such as strict-ssl=false, cafile, registry, or proxies) reflect standard package manager behavior matching npm and Yarn.

Disabling or ignoring these literal settings would break valid enterprise and intranet projects that legitimately rely on repository-level .npmrc (e.g., internal registries with self-signed certificates). These settings are therefore considered out of scope.

Squash Commit Body

Clarify that static configuration settings in repository-level .npmrc or
pnpm-workspace.yaml (such as strict-ssl=false, cafile, registry, or proxies)
are standard package manager configuration supported by npm and Yarn for
enterprise and intranet deployments. Suppressing or ignoring these literal
settings would be a breaking change and diverges from upstream package managers,
so these configurations are considered out of scope.

Checklist

  • I checked the referenced issue and verified that none of the PRs already linked to it solves it.
  • New features are implemented only in the Rust pnpm v12 CLI. Bug fixes are implemented in every affected version.
  • Updated the documentation if needed.

Generated by Antigravity using Gemini 3.8 Flash


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Documentation
    • Clarified that static repository-level network and TLS settings, including custom certificate authorities, registries, and proxies, are supported configuration and are not considered vulnerabilities.
    • Added examples covering .npmrc and pnpm-workspace.yaml settings that do not use environment variable expansion.

…t of scope

Clarify that static configuration settings in repository-level .npmrc or
pnpm-workspace.yaml (such as strict-ssl=false, cafile, registry, or proxies)
are standard package manager configuration supported by npm and Yarn for
enterprise and intranet deployments. Suppressing or ignoring these literal
settings would be a breaking change and diverges from upstream package managers,
so these configurations are considered out of scope.
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (1)
AGENTS.md — auto-discovered

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: pnpm/pnpm/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b4425e83-e04a-48d7-b35c-d39270b8bd2e
📥 Commits

Reviewing files that changed from the base of the PR and between 1e5d031 and 3540ddb.

📒 Files selected for processing (1)
  • SECURITY.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.


📝 Walkthrough

Walkthrough

SECURITY.md now identifies static repository-level transport and TLS settings as supported configuration. It also lists static settings without environment variable expansion as examples that are out of scope for vulnerability reports.

Changes

Security policy clarification

Layer / File(s) Summary
Document supported settings and report scope
SECURITY.md
The policy describes static repository .npmrc or pnpm-workspace.yaml transport and TLS settings as supported configuration. It adds examples of static settings that are out of scope for vulnerability reports.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 3540d

No actionable merge-blocking issue remains with the security-policy clarification.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 3540d

The change clarifies vulnerability-reporting scope without changing package-manager behavior. Disabled TLS verification remains security-sensitive, but the reviewed change does not introduce or enlarge that exposure. Historical credential-handling questions remain unresolved.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — When certificate validation is disabled, an attacker able to intercept the affected network connections can impersonate a registry peer and potentially observe credentials attached to those requests. Independently attackable scope is the affected invocations and connections; downstream credential impact depends on token permissions and reuse, which were not established.

Security Findings and Attack Paths

  • inferred — The retained TLS finding concerns an existing insecure-configuration capability. This PR neither introduces that capability nor changes its runtime exposure, so it is recorded as a pre-existing architecture fact rather than an active PR architecture concern. The supplied finding remains retained.
  • observed — The legacy unscoped-user-token candidate remains deferred. Current registry-wide fallback for unscoped packages does not prove that an unrestricted user token can be redirected to an arbitrary repository-selected host. SECURITY.md lists 10.x and 11.x as supported, but affected patch-level behavior still requires release-specific configuration-to-request evidence.

Trust Boundaries and Controls

  • observed — The documented hardening distinction remains unchanged: project-level registry/proxy destinations, URL-scoped keys, and credential values containing environment placeholders are ignored with a warning, while trusted user-level authentication may expand environment variables. The new exclusion addresses literal settings, not removal of this protection.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zkochan
zkochan marked this pull request as ready for review October 5, 2026 10:50
Copilot AI balanced review requested due to automatic review settings October 5, 2026 10:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can turn on the rule miner and Qodo learns your standards from review history

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Clarify the security scope of static repository transport settings

📝 Documentation 🕐 Less than 10 minutes

Grey Divider

AI Description

• Clarifies that static repository transport and TLS settings follow standard npm and Yarn behavior.
• Excludes reports about those settings alone while preserving the distinction from
 environment-variable expansion.
Diagram

graph TD
  Repo["Repository config"] --> Static["Static transport settings"] --> Parity["npm and Yarn parity"] --> Scope["Out-of-scope reports"]
  Repo --> Expansion["Environment expansion"] --> Hardening["Existing hardening"]
Loading
High-Level Assessment

Clarifying the existing security policy is the right approach: it identifies the precise out-of-scope case without changing package-manager behavior. A code-level restriction would break legitimate repository configurations.

Files changed (1) +10 / -0

Documentation (1) +10 / -0
SECURITY.mdDefine the scope of static repository transport settings +10/-0

Define the scope of static repository transport settings

• Explains why literal transport and TLS settings in repository configuration remain supported for enterprise and intranet projects. Adds reports based on those settings alone, without environment-variable expansion, to the out-of-scope examples.

SECURITY.md

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Oct 5, 2026
@zkochan
zkochan merged commit 20e77aa into main Oct 5, 2026
28 checks passed
@zkochan
zkochan deleted the docs/clarify-untrusted-repo-npmrc-security branch October 5, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants