Skip to content

sec: hardening after a security review - #30

Merged
Zee7X merged 1 commit into
mainfrom
sec/hardening
Nov 19, 2026
Merged

Zee7X merged 1 commit into
mainfrom
sec/hardening

Conversation

@Zee7X

@Zee7X Zee7X commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Found in a review of production and the code:

  • No CSP / framing protection: added CSP (self only, frame-ancestors none, object-src none, base-uri self, form-action self+github), X-Frame-Options DENY, nosniff, Referrer-Policy, Permissions-Policy, COOP; dropped X-Powered-By.
  • Sign out only deleted our session: it now also revokes the user's GitHub token at GitHub.
  • /api/local-poop trusted a localhost Host/X-Forwarded-For: never in production now (hook tokens only).
  • No rate limits: best-effort per-IP limits on pet, heal, readme, my pets and sign-in routes, so one visitor cannot burn the free quotas.
    Checked: no secrets in git history, npm audit 0 vulnerabilities, no dangerouslySetInnerHTML, badge text XML-escaped, open-redirect and forged-cookie attempts refused. 322 unit, 20 E2E (prod build with CSP, console clean).

…oken on sign out, no loopback trust in production
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
gitgochi Ready Ready Preview Nov 19, 2026 8:59am UTC

@Zee7X
Zee7X merged commit a2f05a5 into main Nov 19, 2026
3 checks passed
@Zee7X
Zee7X deleted the sec/hardening branch November 19, 2026 09:00
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