Read this before you host this project for other people. It says what the project defends against and, as plainly, what it does not — a limit written down here is a known limit, not a vulnerability to report. Writing a limit down does not make it acceptable under the law, and a limit that is exploited with personal data affected is still a personal data breach.
{{SECURITY_PROTECTS}}
{{SECURITY_NOT_PROTECTED}}
{{SECURITY_OUT_OF_SCOPE}}
If you discover a security vulnerability in this project, please report it responsibly.
Do NOT open a public issue.
- Preferred — GitHub private vulnerability reporting: on the repository's Security tab,
click Report a vulnerability. The report stays private between you and the maintainers.
(Only exists on public repositories, once the maintainers turn it on — see
src/docs/github-security.md.) - Or email {{SECURITY_EMAIL}} — the only channel on a private repository.
Include:
- Description of the vulnerability
- Steps to reproduce
- Potential impact
- Suggested fix (if any)
You will receive a best-effort response acknowledging receipt.
Coordinated disclosure. We ask you to keep the report private until a fix is released, or for 90 days from your report, whichever comes first. If you get no reply at all within 14 days, write again (on the other channel above, if there is one); if the 90 days pass, you may disclose publicly — please tell us the date first.
Please access or keep no more personal data than you need to show the problem, and never publish anyone else's data. If a report shows that personal data was actually accessed, we also follow Personal data breach from the moment we receive it — the disclosure deadline above does not pause that.
The section Security model lists what is out of scope: a report about one of those limits is welcome as an idea, but it is not handled as a vulnerability.
| Version | Supported |
|---|---|
| Latest | Yes |
| Older | No |
This template enforces security through:
- CI Pipeline: Automated
npm audit --audit-level=highon every PR — reported, but non-blocking by default (continue-on-errorinci.yml), since transitive high-severity advisories are often unfixable without a breaking bump. Removecontinue-on-errorto make it a hard gate once your dependency tree is clean. - Dependabot: Weekly automatic dependency updates
- CodeQL: static analysis — in a project, GitHub's "Default setup" on a public repository,
turned on by hand; none on a private one without a license (see
src/docs/github-security.md) - Security Tests: {{TEST_FRAMEWORK}}-based security test suite (headers, XSS, auth bypass, CSRF, IDOR)
- Auth / access control: each project documents its roles and per-page gating, if any, in
.agent/rules/pages-architecture.md, generated by the bootstrap (backend policies such as RLS go in the project's own rules) - Zero Secrets: No credentials in committed files — enforced by rules, PR checklist, and automated scanning (below)
These are repository settings, not files: a project created from this template does not
inherit them, and an /upgrade does not change them. What is free on a public vs. a private
repository, and how to read and enable them with gh api, lives in
src/docs/github-security.md — one place, so that deleting this file
does not delete the reminder.
The rule "ZERO sensitive data in committed files" (.agent/rules/core-rules.md) is enforced at three layers:
- Prevention — GitHub Secret Scanning + Push Protection (public repositories; see
src/docs/github-security.md):Settings > Advanced Security→ Secret Protection and Push protection. Push protection blocks the push if a secret is detected — the cheapest, strongest gate. - CI gate — Gitleaks (
.github/workflows/ci.yml,secret-scanjob): scans the commits of every PR and every push (#372: a direct web-UI commit onmainincluded). Runs even on the bare template, on any plan — the layer that covers a private repository without secret scanning. Note: on organization-owned reposgitleaks-actionneeds a freeGITLEAKS_LICENSE(set it as a repository secret — the env line inci.ymlis already there); personal repos need nothing. - Human — PR checklist (
.github/pull_request_template.md) and/review.
If a secret is ever committed: rotate it immediately (assume it is compromised), then purge it
from history (git filter-repo / BFG). Removing it from HEAD alone is not enough.
{{DATA_BREACH_SCOPE}}
A personal data breach is a security incident that, accidentally or unlawfully, destroys, loses, alters, discloses or gives unauthorised access to personal data — a leaked database dump, a backup in a public bucket, a bug that shows one user another user's records, but also a deleted backup with no other copy, or ransomware that locks the data. A limit listed in the Security model does not change this: if it is exploited and personal data is affected, it is a breach.
Who acts depends on the role. If the project runs for a client who decides what the data is for (the project is a processor), it does not notify the authority: it tells the client without undue delay, and the client follows the steps below. When the breach happens at a provider (hosting, a managed database), you become aware when the provider tells you — the deadlines start then.
What to do, in order:
- Detect and record the time you became aware of it: the deadlines below run from that moment.
- Contain it: close the access, rotate the credentials involved, take the exposed copy down.
- Assess the risk to the people whose data it is (to their rights and freedoms): which data, how many people, can it be used against them.
- Notify the competent supervisory authority without undue delay, and within 72 hours of becoming aware, unless the breach is unlikely to result in a risk to people. In Portugal, for a controller established only there, the CNPD, which has a form for it. The notification says: what happened, the categories and approximate number of people and records, a contact point (the DPO, if there is one), the likely consequences, and the measures taken or proposed. What is not yet known can follow in phases, without further undue delay; a notification after 72 hours says why it is late.
- Tell the people affected without undue delay when the risk to them is high, in plain language: what happened, a contact point, the likely consequences, what was done, and what they can do. Not needed if the data was unintelligible to whoever got it (encrypted, with the key safe) or later measures removed the high risk; if telling each person would take a disproportionate effort, a public notice replaces it. The authority can still require it.
- Record the incident — the facts, the effects and the action taken — even when no notification was made, and in that case also why: the record is how the decision is shown to the authority later.
Other laws may set shorter deadlines (for example NIS2, for the entities it covers). The legal obligation and how it
fits the project's other privacy rules live in .agent/rules/privacy.md; this section is the procedure for the people
who run the project.