docs(security): a `security.txt` and a vulnerability handling process

Aperta Adatta ai principianti
#607 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
Mezza giornata
Idoneità per principianti
74/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, node.js

Direzione di ricerca

Inizia leggendo SECURITY.md, apps/web/vercel.json e apps/web/scripts/check-deploy.mjs, quindi ispeziona apps/web/public/.well-known/ per了解 la struttura esistente delle risorse web. Aggiungi il file RFC 9116, documenta il processo di segnalazione dopo che i maintainer hanno confermato i tempi di risposta ed estendi il controllo del deploy per rifiutare un file mancante o scaduto. Done significa che /.well-known/security.txt viene servito come testo semplice, la policy copre i passaggi di gestione richiesti e il controllo del deploy passa per un file valido e fallisce per uno scaduto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

documentation good first issue help wanted security

Summary

Publish /.well-known/security.txt (RFC 9116) pointing to the private reporting channel in SECURITY.md, and write down how reports are handled: acknowledgement time, assessment, fix, coordinated disclosure and credit.

Why this matters

Researchers look for security.txt first, and a visible process makes people report privately instead of publicly. It costs one small file and one short document, and it makes the project look as serious as it is.

Proposed solution

  • Add apps/web/public/.well-known/security.txt with Contact, Expires (renew yearly; add a reminder in docs/RELEASING.md), Preferred-Languages, Policy and Canonical. Check it is served as text/plain by the web host and not rewritten to the app shell (see the rewrites in apps/web/vercel.json).
  • Extend SECURITY.md: how to report (GitHub private advisories), what to include, our target response times, what is in and out of scope, safe harbour wording, and how we credit reporters.
  • Add a check to check-deploy.mjs that the file exists and has not expired.

Where to start in the code

  • apps/web/public/, apps/web/vercel.json, SECURITY.md, apps/web/scripts/check-deploy.mjs

Acceptance criteria

  • /.well-known/security.txt is served as plain text and is valid
  • SECURITY.md describes the process and timelines
  • The deploy check fails when the file has expired

Tests

  • The deploy check; validate the file with a security.txt validator and attach the result

Notes

  • Comment with the response times you propose so the maintainers can confirm them.

Want to work on this?

Comment on this issue to claim it, then follow First contribution and CONTRIBUTING.md. Keep the pull request to this one feature, use a conventional title (for example docs(security): a security.txt and a vulnerability handling process), write Closes #<this issue> in the description, and run npx prettier --write on the files you changed before pushing. Questions are welcome here or on Discord.


Generated by Claude Code

Lingua principale
TypeScript
Stelle
6
Fork
6
Merge medio
6h 7m
PR unite (30g)
167

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Haseeb-MernStack/commune

Tutte le issue di Haseeb-MernStack/commune

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.