WIP: form attachments docs (forms, email, security, storage, deployment, notifications), honeypot value sent
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
701bb420c1
commit
344574d6bd
@@ -483,6 +483,25 @@ data access, not just the UI.
|
||||
- Uploads: `buildUploadSecurityHeaders()` in `next.config.ts` (an SVG cannot run a script on the site's domain).
|
||||
- `users`: the plugin injects an auth collection when the project has none (roles and 2FA always attach).
|
||||
|
||||
## Form files (`forms.attachments`)
|
||||
|
||||
Files attached to a form are **never stored and cannot be downloaded**: they are checked in memory, attached to
|
||||
the company e-mail and dropped. The checks, in order — origin, rate limit, declared size, concurrency guard,
|
||||
honeypot, Turnstile, field validation and consent, then per file: count, name (double and refused extensions),
|
||||
size while reading, content signature, container and macro checks, an optional `scan` hook — are listed in
|
||||
[forms.md](./forms.md) "The security wall".
|
||||
|
||||
- There is **no antivirus**. The checks stop the wrong kind of file; they do not prove a file is harmless. Plug a
|
||||
scanner into `forms.attachments.scan` when the client needs one. The macro check for legacy `.doc` / `.xls` is
|
||||
best-effort.
|
||||
- Programs, scripts, macro-enabled Office files, archives, HTML and SVG are refused unless the project lists
|
||||
the extension in `allowRisky`.
|
||||
- The submit endpoint (`POST /api/ipal/forms/submit`) accepts same-origin requests only
|
||||
(`attachments.submit.allowedOrigins` adds others) and runs the same gates as the server action; REST creation
|
||||
of submissions stays "logged-in users only".
|
||||
- Microsoft Graph: files of 3 MB and more need `Mail.ReadWrite` — limit the app to the forms mailbox
|
||||
([email.md](./email.md) "Attachments").
|
||||
|
||||
## Access control (since the version after 1.12.3)
|
||||
|
||||
- Injected auth collection with roles: a `user` account reads and edits only itself; only an
|
||||
|
||||
Reference in New Issue
Block a user