Security and privacy
Security you can check.
How Infra protects resident data on its Supabase stack. Every control below is in the product today, and each names the repo file behind it.
01Privacy promise
What we promise residents.
The plain-language version first. The rest of this page shows how each promise is kept.
Learn more about Privacy promise- 01We do not sell resident data.
Reports, photos and contact details are not sold, rented or shared for advertising.
- 02Faces and plates are blurred.
On the phone, before the photo is uploaded. Only the blurred copy is ever public.
- 03Originals are short-lived.
Kept in a staff-only store for 30 days by default for quality checks, then deleted.
- 04No personal data in links.
A status link uses an opaque token. No name, address or account is in the URL.
- 05No account is required.
Residents can file and track a report without signing up.
02Photos and video
Faces and plates are blurred before upload.
The blur runs on the resident's phone, so only the blurred copy is ever public. Originals and vehicle frames stay private, and both expire.
Originalphotos-rawStaff only · 30 days
Public copyphotos-publicFace and plate blurred
photos-publicThe blurred copy
The only photo the public ever sees. The blur runs on the resident's phone.
Kept
src/lib/privacy/blur.tsphotos-rawThe original
Staff only. A nightly job deletes it after the retention window, set per city.
Deleted after 30 days
supabase/migrations/20260709_046_retention_settings.sqlvideo-framesLens frames
Not blurred, so never public. Staff open one frame at a time through a link that expires in 10 minutes.
Deleted after 90 days
src/app/staff/evidence-actions.ts
03Access
The database decides who sees what.
Every query is filtered by role in Postgres before anything reaches a screen. Row-level security enforces each cell below, default deny, in the database rather than in app code.
| Data | ResidentAnonymous sign-in | City staffTheir city only | ContractorTheir assignments |
|---|---|---|---|
| Report statusOpen, dispatched, closed | Own only | Yes | Assigned only |
| Report details and photoThe blurred copy | Own only | Yes | Assigned only |
| Original photophotos-raw, 30 days | No | Yes | No |
| Lens frameA 10-minute link | No | Yes | No |
| Another city's dataAny role | No | No | No |
supabase/migrationstests/rlssrc/proxy.tssrc/components/report/ensure-anon-session.ts
1import { createHmac, timingSafeEqual } from "node:crypto";23const signature = req.headers.get("x-civic-signature") ?? "";4const expected = createHmac("sha256", secret)5 .update(rawBody, "utf8")6 .digest("hex");78const a = Buffer.from(expected, "hex");9const b = Buffer.from(signature, "hex");10const ok = a.length === b.length && timingSafeEqual(a, b);1112// Not ok? Reject the event. Forged events fail closed.
04Delivery and headers
Every delivery is signed.
Report events leave Infra as posts to your endpoint, and your endpoint can prove each one came from us.
Signed webhooks
Each POST carries X-Civic-Signature, an HMAC-SHA256 of the raw body. Your endpoint recomputes it, so a forged event fails.
src/lib/webhooks/deliver.tsStrict headers
A per-request content security policy with frame-ancestors none, plus nosniff and HSTS with preload. No Infra page can be framed.
src/proxy.ts · next.config.tsLeast data
Reports carry a photo, a location and a category. Open311 photo URLs are ignored unless they pass the same blur check.
src/app/api/open311/v2/requests/route.ts
05Compared
Next to a typical 311 setup.
A typical 311 or CRM system checks access in app code and stores what residents upload as it arrives.
| Capability | Infra | Typical 311 / CRM system |
|---|---|---|
| Photo privacy before upload | On-device blur, 30-day raw copy | Stored as uploaded |
| Access decided by the database | Row-level security, default deny | Checks in app code |
| Webhook authenticity | HMAC-SHA256 header | Partly |
| Change history on reports | Append-only event log | Partly |
| Independent security audit | Not yet | Varies |
Not yet.
No third-party security audit has been completed. We claim no SOC 2, HIPAA or ISO certification, for Infra or for our vendors. SAML single sign-on is not built yet.
When an independent audit happens, the result will be stated here. The privacy promise lists what we collect.
06FAQ
Security questions from city teams.
What IT and legal ask first, including the parts that are not built yet.
What happens to resident photos?
Faces and license plates are blurred on the device before upload. The unblurred original is kept in a restricted bucket and removed after a retention window, 30 days by default.
Has Infra passed an independent security audit?
Not yet. Our controls are documented internally and we walk through them during evaluation.
Do residents need an account?
No. A report can be anonymous and each one gets a public tracking link.
Can staff sign in with our single sign-on?
Not yet. SAML single sign-on is not built. Staff sign in with OAuth today.
Start with Atlas, Lens, or both.
Tell us which system you use and which parts matter. We will map the connectors with you.