docs: add guide for securing npm installs against supply-chain attacks#46384
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
rdjsonl
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: lockfile (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: lockfile (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: transitives (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: Dependabot (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: Dependabot (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: lockfile (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: lockfile (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: Snyk (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: Bluesky (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: defenses (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: vendored (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: lockfile (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: exfiltrated (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: installable (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: sigstore (configure rule at supa-mdx-lint/Rule003Spelling.toml)
🚫 [rdjsonl] reported by reviewdog 🐶
[Rule003Spelling] Word not found in dictionary: Adnan (configure rule at supa-mdx-lint/Rule003Spelling.toml)
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds a consumer-facing MDX guide for hardening npm installs (lockfiles, transitive pinning, minimum-release-age quarantines, provenance checks, lifecycle-script controls, exotic-ref blocking, package-manager pinning, CI/lockfile hygiene), plus a navigation entry and expanded MDX-lint spelling allowlist; frontmatter contains unresolved merge-conflict markers. Changesnpm Security Hardening Guide
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
f30ddf4 to
ad567f2
Compare
…o docs/npm-safeguard # Conflicts: # apps/docs/content/guides/security/npm-security.mdx # supa-mdx-lint/Rule003Spelling.toml
…o docs/npm-safeguard
…o docs/npm-safeguard
…o docs/npm-safeguard
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/docs/content/guides/security/npm-security.mdx`:
- Around line 3-9: Remove the unresolved git conflict markers (<<<<<<<, =======,
>>>>>>>) from the MDX frontmatter and leave a single coherent title/description
pair; specifically, edit the frontmatter fields "title" and "description" to
remove the conflict blocks and keep the intended values (e.g., title: 'Securing
npm installs' and description: 'Consumer-side guide to hardening your npm
installs of Supabase packages against supply-chain attacks.'), ensuring the
frontmatter is valid YAML/MDX (no conflict markers remain) so the file
(apps/docs/content/guides/security/npm-security.mdx) parses correctly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: e6a19baa-930b-4db1-9f99-d124cfd154b8
📒 Files selected for processing (3)
apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsapps/docs/content/guides/security/npm-security.mdxsupa-mdx-lint/Rule003Spelling.toml
Braintrust eval report |
Adds a consumer-side guide for hardening npm installs of @supabase/* packages: lockfile hygiene, minimum-release-age quarantine across pnpm/yarn/npm/bun, private registries, provenance verification, lifecycle script controls, blocking exotic transitive refs, Edge Functions specifics, and an incident-response checklist.
Lives at guides/security/ alongside platform-security and product-security; filesystem-driven sidebar picks it up automatically.
Originally drafted in supabase/supabase-js#2382 and moved here per review.
Summary by CodeRabbit