﻿# Osolix · PDPL Data Protection Impact Assessment (DPIA) — v1

**Status:** Wave-B Foundation evidence · 2026-Q2
**Jurisdictions:** UAE Federal Decree-Law 45/2021 (PDPL), KSA PDPL, EU GDPR, UK GDPR
**Owner:** Chief Compliance Officer
**Audit dimensions:** #13 Compliance · #19 Data integrity & migration

## 1 · Purpose of processing

Osolix is a B2B fixed-asset platform. Personal data is processed only to the extent required to operate the customer's account: authentication, authorisation, audit trail, and notifications. There is no marketing-data sale, no profile resale, no cross-customer data pooling.

## 2 · Data categories

| Category | Examples | Subjects | Retention |
|---|---|---|---|
| Account | Email, name, hashed password, MFA secret | Customer's employees | Active + 90 days post-termination |
| Custodian PII | Phone, national ID (optional), photo | Customer's employees / contractors | Per customer's retention policy; default 7 years |
| Audit trail | User ID, IP, user-agent, timestamp, action, before/after value | Every signed-in user | 7 years (financial-reg minimum) |
| Telemetry | Page load time, error events (no PII payload) | Customer's employees | 90 days |
| Support session | Operator user ID, reason, expiry | Customer + Osolix support staff | 1 year |

## 3 · Lawful basis

* **Contract** — processing is necessary to deliver the customer's subscribed service.
* **Legitimate interest** — security logging, fraud detection, audit trail.
* **Consent** — marketing emails (separate opt-in via NotificationPreferences), product analytics (cookie banner).
* **Legal obligation** — retention of financial records.

## 4 · Data flows

| Flow | Source | Destination | Protection / evidence |
|---|---|---|---|
| Browser → public site / app | Customer browser | Azure Static Web Apps; observed resource locations are Central US (`web-osolix-commercial`) and West Europe (`web-osolix-app`) | Azure-managed static hosting; the resource location is not a residency guarantee for every delivery, log, or support copy |
| Browser → API | Customer browser | `api.osolix.com` → Cloudflare Tunnel → live API on the founder-operated home host | HTTPS to the public endpoint and a tunnel to the origin; the origin's physical region and host/backup locations are not yet evidenced |
| Live API → primary data | Live API on the home host | `Osolix_Host` database in the host environment | Current home-host deployment; confirm database encryption and backup locations in the operations evidence before making a residency claim |
| Live API → Azure spare | Deployment process | `api-osolix-commercial` App Service in West US 2 | Stopped spare copy; code synchronization only per the deployment runbook, not the live request path |
| API → Anthropic | Live API | `api.anthropic.com` | TLS; only the anonymised question + tenant-scoped data summary; no PII payload |
| API → Stripe | Live API | `api.stripe.com` | TLS; tokenised payment data only |
| API → SendGrid | Live API | `api.sendgrid.com` | TLS; recipient email only |
| API → ERP (outbox) | Live API | Customer's allow-listed endpoint | HTTPS to customer's URL; payload signed |

## 5 · Sub-processors

| Sub-processor | Purpose | DPA on file | SOC 2 |
|---|---|---|---|
| Microsoft Azure | Hosting (compute, DB, storage, Key Vault) | ✅ | ✅ |
| Anthropic | LLM-powered AI chat polishing | ✅ | ✅ |
| Stripe | Subscription billing | ✅ | ✅ |
| SendGrid | Transactional email | ✅ | ✅ |

## 6 · Data subject rights — implementation

| Right | Endpoint / surface |
|---|---|
| Access | `GET /api/me/export` returns a JSON archive of the user's account + custodian records |
| Rectification | `Profile` page; email change uses verification flow |
| Erasure | `DELETE /api/me` triggers `DataRetentionService` workflow (immediate logical delete + 30-day purge) |
| Restriction of processing | TenantAdmin can suspend a user without deleting |
| Portability | Same `GET /api/me/export` endpoint returns a portable JSON archive |
| Objection | `NotificationPreferences` page lets the user opt out of every non-essential email |
| Avoid automated decisions | AI chat answers are advisory; every workflow approval requires a human |

## 7 · Risk assessment

| Risk | Likelihood | Impact | Mitigation | Residual |
|---|---|---|---|---|
| Cross-tenant data leak | Low | Critical | Tenant query filter + RBAC tests + cross-tenant probe suite | Low |
| Credential stuffing | Medium | High | Lockout after 5 failures + MFA + WebAuthn passkey roadmap | Low |
| LLM prompt-leak via Anthropic | Low | Medium | No PII payload in prompts; tenant data summarised before send | Low |
| Backup tape loss | Low | Critical | Geo-redundant copy + Key-Vault-managed encryption | Low |
| Insider abuse (Osolix staff) | Low | High | Support session step-up requires customer consent + time-boxed + fully audited | Low |
| Public concierge — visitor pastes PII/special-category into free text | Medium | Medium | "No sensitive data" input notice; inbound PII scrubber before LLM + before logging; transcripts not persisted | Low |
| Public concierge — cross-border transfer to US LLM without safeguard | Medium | High | Online path disabled until the executed Anthropic DPA/SCC (prod key unset → Offline-only); scrubbed payload only | High until DPA executed |
| Public concierge — hallucination / wrong public advice | Medium | Medium | Deterministic grounding + mandatory citations; cite-or-escalate; LLM only rephrases the grounded answer; RAI-ENG-02 eval gate in CI | Low |

## 8 · Open items
* Cookie consent banner + analytics opt-out toggle (P1.2).
* Right-to-erasure automation finish (`DataRetentionService` v1).
* DSR (Data Subject Request) intake portal at `/welcome/Company/privacy/request`.
* Execute the Anthropic DPA/SCC for anonymous public-concierge traffic before enabling the Online path in production (Decision 0071).

## 9 · Sign-off
* CCO: pending Q2 review
* CISO: pending Q2 review

## 10 · Connected Buildings processing record — Decision 0191 (2026-10-10)

**Status:** Technical inventory added; DPO/owner review is still required before a customer site is commissioned. This record does not certify regional residency or a complete occupant erasure path.

| Processing activity | Data and subjects | Purpose | Retention / rights |
|---|---|---|---|
| Building energy, BMS and comfort operations | Building/floor/room identifiers; utility and sensor readings; period, temperature, humidity, CO₂ and comfort values; optional occupancy estimates. Subjects may include employees, contractors, residents and other building occupants where readings or reports can be linked to a space or time. | Customer facilities, energy and maintenance teams monitor consumption, investigate faults and plan human-led maintenance. The system does not issue equipment control commands. | Raw energy/comfort retention is not yet defined here; tenant configuration and backup lifecycle must be recorded before commissioning. Do not use room-level occupancy to identify or score a person. |
| Occupant fault report | Reporter name, email and phone; free-text fault description; location, submission time and optional photo references. | Receive and route an occupant-submitted maintenance request to the customer's facilities team. | The entity schedule is 24 months after closure. Decision 0191 adds automatic redaction of reporter contact fields on resolved/rejected reports after that period. DSR requests for an external occupant still require a documented, verified operator process; account erasure does not identify anonymous occupants. |

**Access and minimisation:** normal tenant and location scopes apply; report/comfort screens expose only the location detail needed for facilities work. Patient, bed and medical-condition fields are excluded. Occupancy/comfort data can still reveal patterns about people in small spaces, so customer configuration must avoid person-level use and restrict room-level access.

**Hosting-location evidence (resource inventory read 2026-10-10):** the live Fixed Assets API runs on the founder-operated home host behind Cloudflare Tunnel; the deployment runbook identifies `api-osolix-commercial` as a stopped spare copy. A read-only Azure resource inventory of `rg-osolix-commercial` returned:

| Resource | Azure resource location | What this establishes |
|---|---|---|
| `web-osolix-commercial` (Static Web App) | Central US | Resource control-plane location only |
| `web-osolix-app` (Static Web App) | West Europe | Resource control-plane location only |
| `api-osolix-commercial` and `asp-osolix-commercial` | West US 2 | App Service state was read as `Stopped`; not the active API request path |
| `sql-osolix-prod` and its `OsolixDb` database | West US 2 | Azure SQL database state was read as `Paused`; Azure reports current and requested backup storage redundancy `Local` and `zoneRedundant=false`. Database contents and any runtime connection remain unverified |
| `kv-osolix-commercial`, `log-osolix-commercial`, `ai-osolix-commercial` (Application Insights) | UAE North | Resource locations; data categories, retention, exports and backups still need verification |
| Application Insights Smart Detection action group | Global | Azure global resource; not evidence of a regional data store |

The tracked `commercial.bicep` default and `commercial.parameters.json` specify `uaenorth`, while `commercial.deploy.parameters.json` specifies `eastus2`. The observed Azure inventory differs from both for several resources. This is a deployment-configuration discrepancy, not evidence that data was or was not stored in any one region. The home-host physical location, Cloudflare processing locations, live database connection target, home-host backup locations, Azure SQL database contents, logging exports, temporary files and recovery copies remain unverified. Do not make a regional-residency claim until the deployment owner reconciles these facts and records the applicable data flows.

**DPIA actions before commissioning:** the DPO/customer privacy owner must confirm lawful basis and customer notices for occupant/comfort data; approve the retention period for energy and comfort records; document and rehearse verified external-occupant access/correction/erasure handling; approve the residual small-space occupancy inference risk. The deployment owner must reconcile actual deployment parameters and record the live database target, backup/recovery, logging and temporary-file locations. These are owner decisions or operational evidence, not facts the application team can infer from source code. Do not describe them as approved until the accountable owner records sign-off.
