Skip to content

Conversation

@joshp123
Copy link
Contributor

@joshp123 joshp123 commented Jan 28, 2026

Summary

  • force raw file endpoints to serve text/plain with CSP sandbox + nosniff
  • add regression coverage for skill/soul raw file headers
  • block SVG files in text file validation
  • add security headers middleware (CSP + hardening) for HTML responses

Testing

  • bun run lint:biome
  • bun run lint:oxlint

@vercel
Copy link
Contributor

vercel bot commented Jan 28, 2026

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

Project Deployment Review Updated (UTC)
clawdhub Ready Ready Preview, Comment Jan 28, 2026 8:43pm

- force text/plain for raw file downloads and add nosniff/CSP headers
- add regression coverage for sanitized headers on skill/soul file endpoints

Tests: not run (bun not available)
- reject svg extensions/content types in isTextFile validation
- add tests covering svg rejection in text file detection

Tests: not run (bun not available)
- add Nitro middleware to set CSP + security headers for HTML responses
- normalize raw file CSP string literal for Biome

Tests: bun run lint:biome; bun run lint:oxlint
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.

2 participants