Skip to content

Evidence

Path: /evidence

Evidence

The evidence repository stores documents, screenshots, and files that prove your controls are working. Evidence is stored in S3-compatible object storage (Cloudflare R2, AWS S3, or a self-hosted MinIO).

Prerequisites - object storage required

Evidence upload and download are not turnkey out of the box. They need an S3-compatible object store that you supply. A stock install ships with object storage unset, so the demo's all-green evidence repository reflects its pre-wired storage, not a default install.

To enable, configure one of:

  • Cloudflare R2 / AWS S3 / any S3-compatible endpoint - set R2_ENDPOINT_URL (or CF_ACCOUNT_ID), R2_ACCESS_KEY_ID, and R2_SECRET_ACCESS_KEY (plus the bucket), or
  • The bundled MinIO sidecar - enable the optional minio service in the Compose stack and point the same storage settings at it.

Without object storage configured, every upload, download, and listing call returns HTTP 503 - "Evidence storage service is unavailable"; the rest of the platform keeps working. The in-app Setup readiness checklist on the Dashboard flags Evidence Storage as Needs setup with the key to set. See Admin Settings to configure.

Key Elements

  • Upload button - Upload new evidence files (PDFs, screenshots, config exports).
  • Evidence list - Shows filename, type, upload date, linked controls, and verification status.
  • Verification - Evidence can be cryptographically verified using SHA-256 hashes.

How to Upload Evidence

  1. Click Upload.
  2. Select files from your computer (up to 100MB per file).
  3. Tag the evidence with the relevant control IDs.
  4. Add a description explaining what this evidence proves.

One file for several controls

A file is uploaded to one control, and can then be linked to others (POST /orgs/{org_id}/evidence/{evidence_id}/link-to-control). A linked file counts as evidence for every control it is linked to: it appears in each of those controls' evidence lists and Run Assessment reads it for each of them. A link made inside an assessment applies to that assessment. If the file is deleted, its links stop counting.

Accepted file types

Evidence uploads are limited to document, screenshot and text/configuration formats:

Kind Extensions
Documents .pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx
Screenshots .png, .jpg, .jpeg, .gif
Text and configuration exports .txt, .log, .md, .csv, .json, .xml, .yaml, .yml

The server enforces this list when an upload is requested, by file extension and by the content type the client declares — it is not only a file-picker filter, so it also applies to drag-and-drop and to direct API calls:

  • A file type that is not on the list is refused with HTTP 415 and a message naming the accepted types. Executables and scripts (.exe, .dll, .bat, .ps1, .sh, .js, .jar, .html, .svg and similar) are always refused. Only the final extension counts, so report.pdf.exe is an executable.
  • A declared content type that does not match the extension is refused with HTTP 415.
  • An empty (0-byte) file is refused with HTTP 422 and no evidence is recorded.
  • Files larger than 100 MB are refused.

That check covers the file name and the declared type. The file itself is sent directly to object storage, so its content is checked in a second step, when the upload is confirmed (POST /orgs/{org}/evidence/confirm). GRCFlow reads the first 8 KB of the stored object and refuses the upload with HTTP 422 when:

  • the content is plainly an executable or a script, whatever the file is named: Linux (ELF), Windows (PE) and macOS (Mach-O) executables, Java class files, and scripts that start with an interpreter line (#!/...);
  • the content does not match the file type: a .pdf must start as a PDF, .png / .jpg / .gif must carry their image signature, .docx / .xlsx / .pptx must be ZIP containers and .doc / .xls / .ppt OLE2 containers;
  • a text format (.txt, .log, .md, .csv, .json, .xml, .yaml, .yml) contains binary (NUL) bytes. UTF-16 text with a byte-order mark, as written by Windows tools, is accepted.

A refused upload is not recorded as evidence and the stored object is removed. The refusal is written to the audit log (entity evidence, event upload_refused, with the reason and the object key). The removal uses the application's own storage credentials and does not depend on the uploader's permissions.

If the bucket retains the object (Object Lock), GRCFlow does not bypass retention. The object version stays in the bucket until its retention ends; the audit entry has orphan_object: true with the object key, version id and retention date, and the server log has a matching warning, so an operator can find it. Only an object uploaded within the last hour is removed by a refused confirmation; an older object is left as it is.

This is a file-type check on the leading bytes, not a malware scan: it does not open archives or documents (a macro inside a real .docx is not detected). Scan uploads with your own tooling if your policy requires it. To attach a file type that is not listed, put it in a .pdf or paste the relevant text with Paste Text Evidence.

Pasted text is evidence like an uploaded file: Run Assessment reads it for the control it was pasted on and for every control it is linked to. Pasting the same text again in the same assessment does nothing; in another assessment it is attached there as well.

When evidence is a table (a CSV export, a spreadsheet, pasted rows with a header), GRCFlow counts the columns that repeat a few values, such as a yes/no or status column, and gives the AI run the exact figures and the rows behind them. The AI is told to use those figures and not to count rows itself. A file too long to be read in full is not counted.

Note

Evidence storage requires S3-compatible object storage (R2/S3 or the MinIO sidecar) - see the prerequisites callout at the top of this page. Until it is configured, these upload/download actions return HTTP 503.

Evidence freshness

Evidence goes out of date. Each evidence item shows a freshness status based on how often its control must be performed:

Status Meaning
Current Collected within the control's interval.
Expiring soon In the last fifth of the interval (never more than 30 days before it ends).
Stale Older than the control's interval. Collect it again.
No interval The control has no set frequency, or is performed per event or on demand. Never shown as stale.

The intervals are 1 day for continuous and daily controls, 7 days for weekly, 31 for monthly, 92 for quarterly and 366 for annual. Use the freshness filter on the evidence list to see what is stale or expiring, and the Evidence freshness count on the dashboard for the organization-wide total.

Evidence storage

Evidence storage uses S3-compatible object storage (Cloudflare R2, AWS S3, or the bundled MinIO sidecar), configured as described in the prerequisites note at the top of this page. See Admin Settings to set it up.

WORM and retention

What actually protects an uploaded object depends on how the bucket is configured — not on the application. The browser upload path uses presigned PUTs that stamp no per-object retention header, so retention is never applied by the upload itself.

A default install does NOT enforce WORM

If the storage bucket does not have Object Lock enabled with a default retention rule, uploaded evidence is stored with a SHA-256 integrity hash but is not write-once and can be deleted. The upload dialog and the evidence library tell you the truth for the current configuration — they do not promise a retention period that nothing enforces.

For true WORM (write-once-read-many) you must enable Object Lock and a default retention rule on the bucket itself (at bucket-creation time for AWS S3; via the retention/lifecycle configuration for Cloudflare R2), so every object — including presigned browser uploads — inherits retention regardless of how it was written. GRCFlow reads the bucket's Object Lock default-retention rule and reports it through GET /orgs/{org}/evidence/storage-status (object_lock_enabled, default_retention_mode, default_retention_days); that is what drives the upload-dialog copy and the WORM badge in the evidence library.

Deletion

The normal delete path (DELETE /orgs/{org}/evidence?object_key=…, and the Delete button in the library) never bypasses Object Lock governance retention:

  • If an object is still under retention (RetainUntilDate in the future), deletion is refused with 409 Conflict and an explicit "under WORM retention until …" message. There is intentionally no privileged governance-bypass action exposed in the product.
  • A deletion that is allowed (no retention configured, or retention expired) always writes a tamper-evident audit entry recording the object key and the acting user, so every removal is accountable.

Note that the application-level default_retention_days setting (365) only applies to server-side uploads via EvidenceStore.upload_evidence; it does not affect presigned browser uploads, which is why bucket-level Object Lock is the only thing that enforces WORM for the standard upload flow.

See Admin Settings for where to configure the object store.