Repository navigation
Launch prep: security headers, push rate limit, link previews, community files - #19
Merged
Merged
Conversation
… community files Every response now carries a Content-Security-Policy, nosniff, a strict referrer policy, frame denial, COOP and a restrictive Permissions-Policy, and drops X-Powered-By. The LimeSurvey push route limits each client to 20 attempts per 10 minutes per instance. Link previews get Open Graph and Twitter tags, a generated 1200x630 image in the app's own fonts, robots.txt and a sitemap, with the address configurable through NEXT_PUBLIC_SITE_URL. Adds SECURITY.md, CONTRIBUTING.md, a code of conduct and issue/PR templates, stops tracking the old out/ script output, and renames the package to utilitylab. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #18; merge that one first.
Summary
Security
next.config.mjs):frame-ancestors 'none',object-src 'none',base-uriandform-actionset to self. Development also allows eval and websockets for hot reload.X-Content-Type-Options: nosniff,Referrer-Policy: strict-origin-when-cross-origin,X-Frame-Options: DENY,Cross-Origin-Opener-Policy: same-originand a restrictivePermissions-Policy.X-Powered-Byis dropped.lib/rateLimit.ts): 20 attempts per 10 minutes per client, per serverless instance, answering 429 withRetry-After. Instances don't share memory, so this brakes bursts; a global limit belongs in the Vercel firewall.Link previews
app/opengraph-image.tsx: a 1200×630 image (matrix-U logo, tagline, "Free and open source") rendered at build time in Bricolage Grotesque and Instrument Sans.summary_large_imagetags, a clearer title and description, keywords, andmetadataBase.robots.txt(with/api/disallowed) andsitemap.xml.lib/site.tsand can be overridden withNEXT_PUBLIC_SITE_URLwhen the app moves to its own domain.Repo
SECURITY.md, which points to GitHub private vulnerability reporting;CONTRIBUTING.md, including the terminology rule; andCODE_OF_CONDUCT.md, adopting Contributor Covenant 2.1 by reference.out/is no longer tracked: its files had the oldeu-urban-commutenames. The export and preview scripts now create the folder themselves.sp-designertoutilitylab.Test plan
npx tsc --noEmit,npm test(1038 passed, 4 new),npm run buildrobots.txtand the sitemap are served🤖 Generated with Claude Code