Skip to content

Harden the kits from the security audit - #29

Open
entity wants to merge 36 commits into
feat/nuxt-kitfrom
fix/kit-hardening
Open

entity wants to merge 36 commits into
feat/nuxt-kitfrom
fix/kit-hardening

Conversation

@entity

@entity entity commented Nov 29, 2026

Copy link
Copy Markdown
Member

Fixes from the security audit and the review rounds after it:

  • only answer for APP_URL's host and a headless frontend's, after TrustProxies, and forget a refused host
  • trust X-Forwarded-Prefix in headless mode only, as one plain path
  • security headers on the app's own pages, password reset links built from APP_URL
  • proxy limits: 256 KiB bodies with a 15s deadline, slow client and upstream timeouts, 404 for unmatched paths without reading /api/me
  • safer local redirects and enrollment continues
  • export checks for git deps in lockfiles, escaping or dangling symlinks, kit.json paths and leftover monorepo tags
  • pinned Node and Playwright image, re-run-safe releases that never ship an older tag over a newer one

PHP tests only pass with #30 on top, since that brings the migration Keyring main now needs. Stacked on #28.

….example/backend/x is never read with that host
…velopment or test, and warn at start-up when no proxy is trusted
… and say why the qr code's svg is safe to render raw
…s, escaping symlinks and kit.json paths, and scan every file's bytes
…ase tar, and never release an older tag over a newer one
… check at any host and refuse urls without one
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