Security & Data Protection

Every claim below names the mechanism that makes it true. Where something is not in place, it is listed at the bottom rather than left out.

Tenant Isolation Enforced by the Database, Not the Application

One clinic can never read another clinic's records, and that is not a matter of the application remembering to filter. Every tenant-scoped table carries a row-level security policy that Postgres itself enforces on every query. The application connects as a restricted role that cannot bypass it; the migration role that can is never used to serve a request.

How: Postgres RLS with FORCE ROW LEVEL SECURITY on 142 tables, each with a tenant_isolation policy. The token table that must be looked up before a tenant is known has row-level security switched off; global tables with no tenant at all (users, tenants, public holidays) sit outside the count — each one documented in the schema with the reason.

Sensitive Fields Encrypted at Rest, Individually

PlannedKalinga’s outcome spec tracks this but hasn’t proven it yet, so this site labels it Planned until it does.

Disk encryption protects a stolen drive. It does not protect a leaked database dump. Specific columns holding contact and identifying data are encrypted individually, so the ciphertext is useless without a key held outside the database.

How: AES-256-GCM with a random 12-byte IV per write, keyed from a secret held outside the database; without it no encrypted field can be read or written. Applied to 19 columns, among them patient contact details, allergies, current medications, ID numbers and the doctor's clinical assessment, plus sign-in and integration secrets.

Encrypted in Transit and at Rest

PlannedKalinga’s outcome spec tracks this but hasn’t proven it yet, so this site labels it Planned until it does.

Traffic between the application and its database never crosses the public internet, and what's stored is encrypted on disk.

How: The API and background worker reach Postgres over the host's private network, which encrypts traffic between services (WireGuard); browsers reach the site and the API over HTTPS only. The host encrypts the database's storage at rest, and the nightly backup copies are encrypted where they are stored. The field encryption above sits on top of that.

Backed Up Daily, with Tested Restores

AvailableVerified by restore drill 13 Nov 2026

A database you can't restore is a database you don't have.

How: A full copy of the production database every night at 03:00 Manila time, kept in separate storage. Restores are rehearsed into a scratch database and checked: 8 September, 26 September and 14 October 2026.

Every Access to Clinical Data Is Recorded

Reads as well as writes. An audit trail that only records changes cannot answer the question that actually matters after an incident, which is who looked.

How: An audit_log row per operation carrying actor, action, entity, and IP. Requests authenticated by API key are recorded with an api_key actor type and a null user — indistinguishable in shape from staff access except in who made the call.

Multi-Factor Authentication and Single Sign-On

Two-step login is available on any account and required for administrators. Clinics that already run an identity provider can sign in with it instead of managing another set of passwords.

How: TOTP enrolment with verification, enforced at sign-in once enrolled; administrators can't continue without it. OIDC single sign-on, configured per organisation and switched on for a clinic by us on request.

Role-Based Access, Narrowable but Never Widenable

Each role has a ceiling defined in code. An administrator can tighten what a role reaches; they cannot grant a role more than its ceiling. A too-permissive default would be unrecoverable, so the direction of travel is one-way by design.

How: A permission matrix per role and module, with the hardcoded default as a hard maximum that a tenant override can only reduce.

Patient Rights Are Implemented, Not Promised

Access, portability and erasure exist as working endpoints rather than a process someone performs by hand on request.

How: Full per-patient JSON export, and anonymisation-based erasure requests that preserve the financial record's integrity while removing identifying data. Consent is tracked per purpose with its legal basis — including a distinct purpose for disclosing fit-for-work status to an employer, which never carries clinical findings.

Bulk-Export Monitoring

The realistic insider risk in a clinical system is not a break-in; it is a legitimate account exporting far more than it needs.

How: A scheduled detector that flags export volume anomalies into a security-events log.

What We Do Not Claim

  • No third-party penetration test has been performed. When one is, this page will name the firm and the date.
  • No SOC 2, ISO 27001 or HITRUST certification. We are not pursuing one at this stage and will not imply otherwise.
  • Published uptime history does not exist yet. An external monitor checks the API every minute and alerts us, but we don't publish its record, so the status page reports current health only and we quote no availability figure.

Re-checked against the code on 17 October 2026. The row-level security figures were recounted from the database migrations on 16 November 2026. Questions from a prospective clinic’s data protection officer are welcome and answered directly — hello@ygkalinga.com.