SECURITY.md
Before any real data
This is the security note for the prototype. The same text is SECURITY.md in the repository. The help section points here.
What it is defending
If these screens ever held real operations, the sensitive parts would be drive schedules, sponsor names, chapter comments, and which staff cover which ZIPs. The prototype assumes a curious visitor, a demo user who can switch roles, and a later editor who might paste a real staff file into the lists. It does not claim to solve the production pilot’s hosting or network findings.
What the prototype already does
- No secrets in the code.
.env.exampledocuments optional settings and ships no credentials. - List import refuses any email that is not
@example.test, and refuses a handful of real stakeholder name fragments. - Every flag, acknowledgement, comment, star, reset, and the DRM switch is authorized on the server from the persona’s role and footprint.
- Form fields are validated, length-capped, and limited to plain text. Return paths cannot leave the app. Posts must be same-origin.
- The persona cookie is HttpOnly and is not a free-text role claim. Logs carry ids, not names or addresses.
- Security headers and a content security policy are set. Production adds HSTS. Dependency audit is clean.
What it is not
The persona menu is not single sign-on. Anyone who can open the site can choose the admin. The action log is not a retention-grade audit trail. Inline scripts are still allowed because the framework emits them. Development also allows unsafe-eval.
Required before real records
- Red Cross sign-in through Entra ID, with roles from an authoritative source.
- Written data-use approval from Biomedical Services and Humanitarian Services.
- Hosting in an approved Red Cross tenant, not a personal site and not jbf.com.
- Mail only through the approved Red Cross mail service.
- Audit logging, retention, and a privacy review.
- A security scan and a penetration test, then fixes.
- A recorded decision on the 7-day activity window and on how support is counted.
Leave the @example.test lock in place until that move. Removing it early makes a mistake easier.