Skip to content

feat: add security hardening and dependency audit - #62

Merged
suradet-ps merged 1 commit into
mainfrom
feat/phase-6-security-hardening
Aug 2, 2026
Merged

feat: add security hardening and dependency audit#62
suradet-ps merged 1 commit into
mainfrom
feat/phase-6-security-hardening

Conversation

@suradet-ps

Copy link
Copy Markdown
Owner

Phase 6: Security & Supply-Chain Hardening

Changes

  • Dependency audit: Added bun audit --audit-level=high step to CI (non-blocking)
  • Audit script: Added bun audit to package.json for local use
  • CSP hardening: Added object-src 'none' (blocks plugins) and upgrade-insecure-requests (auto-upgrades HTTP to HTTPS)

Already in place (verified)

  • SECURITY.md: 160 lines, comprehensive (CSP, RLS, IP hashing, disclosure process)
  • CodeQL: SHA-pinned, minimal permissions, weekly schedule
  • .env: properly gitignored
  • CI: contents: read (least privilege), all actions SHA-pinned
  • HSTS: 2-year max-age with preload

Acceptance (from ROADMAP)

  • CSP has no unnecessary unsafe-* (documented why unsafe-inline is needed)
  • bun audit runs in CI
  • All GitHub Actions pinned to SHAs
  • SECURITY.md exists

Verification

  • Lint: ✅
  • Tests: 37/37 ✅
  • Build: 100 pages ✅

- Add bun audit step to ci.yml (non-blocking, audit-level=high)
- Add 'audit' script to package.json for local use
- Harden CSP: add object-src none and upgrade-insecure-requests
- Mark Phase 6 items complete in ROADMAP.md

Verified:
- SECURITY.md already exists (160 lines, comprehensive)
- CodeQL workflow already exists (SHA-pinned, minimal permissions)
- .env properly gitignored
- CI permissions: contents: read (least privilege)
- All GitHub Actions pinned to commit SHAs
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
rxdevnotes Ready Ready Preview Aug 2, 2026 10:49pm

@suradet-ps
suradet-ps merged commit da80198 into main Aug 2, 2026
7 checks passed
@suradet-ps
suradet-ps deleted the feat/phase-6-security-hardening branch August 2, 2026 22:50
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