Skip to content

chore: harden npm supply chain - #7

Merged
devrodri-com merged 2 commits into
mainfrom
chore/supply-chain-hardening
May 13, 2026
Merged

chore: harden npm supply chain#7
devrodri-com merged 2 commits into
mainfrom
chore/supply-chain-hardening

Conversation

@devrodri-com

Copy link
Copy Markdown
Owner

What changed

  • Pins direct npm dependencies to exact versions and declares packageManager.
  • Adds .npmrc defaults for exact future saves and quieter installs.
  • Updates firebase-admin, @vercel/node, and tsx to current stable versions in their existing major lines.
  • Adds targeted npm overrides for vulnerable transitive packages instead of changing application code.
  • Moves the CI typecheck into npm run build and adds dependency audit gates.
  • Adds a supply-chain hardening runbook for manual rotation and Vercel env checks.

Risk reduction

  • Production dependency audit is reduced to low-severity findings only.
  • Full dependency graph audit is reduced to low-severity findings only.
  • Lockfile sources remain npm registry only and all resolved packages keep integrity metadata.

External actions still required

  • Rotate and revoke the Firebase service account key that appeared in historical .env.admin.dev.
  • Verify Vercel Preview does not receive production Firebase/ImageKit/Mercado Pago secrets.
  • Confirm only the intended Vercel project deploys production from main.

Validation

  • npm ci
  • npm run build
  • npm run check:vercel-functions
  • npm run audit:prod
  • npm run audit:all
  • Parsed GitHub Actions and Dependabot YAML.
  • Checked lockfile for non-registry sources and missing integrity metadata.

@vercel

vercel Bot commented May 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mutter-games-admin-api Ready Ready Preview, Comment May 13, 2026 1:50pm
mutter-games-admin-api-prod Ready Ready Preview, Comment May 13, 2026 1:50pm

Request Review

@devrodri-com
devrodri-com marked this pull request as ready for review May 13, 2026 13:52
@devrodri-com
devrodri-com merged commit 38293b9 into main May 13, 2026
4 checks passed
@devrodri-com
devrodri-com deleted the chore/supply-chain-hardening branch May 13, 2026 13:53
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.

1 participant