Practice & Techclinic data security

Clinic Data Security: Passkeys, Database RLS, and Consent-First Patient Lookup

How European clinics protect patient charts with WebAuthn passkeys, TOTP 2FA, PostgreSQL row-level security, exact-ID deduplication without leaking external records, and EU-hosted private AI coming soon.

Mihai FarcasMihai FarcasLead Software Architect
7 min read

Key takeaways

  • Combine phishing-resistant WebAuthn passkeys and TOTP 2FA with active session controls so compromised passwords never expose clinical charts.
  • Enforce access boundaries in PostgreSQL row-level security (RLS) rather than hiding buttons in the browser UI.
  • Deduplicate patients across practices using exact identifiers while keeping external clinical records locked until the patient grants explicit consent.

Medical practices handle some of the most sensitive personal data regulated in Europe. Under Article 9 of the EU General Data Protection Regulation (GDPR 2016/679), health records carry strict requirements around lawful basis, data minimization, technical safeguards, and auditability. Yet many clinics still rely on shared receptionist logins, static passwords reused across tabs, and software that hides restricted screens only in the front-end interface.

In Innovi Care, security is layered from the browser sign-in flow down to individual PostgreSQL rows, while giving patients direct control over who sees their records across practices. Here is how those controls work together in daily clinical operations.

Why clinic security fails at the edges

Most real-world clinic data leaks do not begin with exotic server exploits. They happen during routine shifts through three predictable gaps:

  1. Weak or shared credentials. Front-desk terminals and shared consultation rooms invite password reuse or sticky notes under keyboards, making credential stuffing and phishing easy.
  2. UI-only permission checks. When an application hides a "Clinical Notes" tab in JavaScript without enforcing isolation at the database layer, a misconfigured API endpoint or direct query can still return another practitioner's records.
  3. All-or-nothing patient lookup. Multi-practice networks either allow every doctor to browse a patient's full history on sight, violating patient confidentiality, or isolate clinics completely and create fragmented duplicate charts for the same person.

Closing all three gaps requires pairing strong authentication with database-enforced isolation and explicit patient consent.

Passkeys (WebAuthn), TOTP 2FA, and session visibility

Clinicians move between consultation rooms, laptops, and mobile devices throughout the day. Asking them to type long, rotated passwords twenty times a week pushes teams toward shortcuts. W3C WebAuthn passkeys solve this by binding authentication to hardware biometrics or security keys rather than typed secrets.

Inside Innovi Care's Sign-in & security settings, practitioners and patients can configure:

  • Passkeys (WebAuthn): Fast, phishing-resistant sign-in using Touch ID, Face ID, Windows Hello, or a physical FIDO2 hardware security key. Because the cryptographic challenge is bound to the exact origin domain, a lookalike phishing page cannot replay a credential.
  • Authenticator app (TOTP 2FA): A time-based 6-digit verification step from any standard authenticator app whenever signing in on a new device.
  • Active sessions overview: Visibility into every browser and device currently holding an active session, allowing clinicians or staff to spot unfamiliar logins and revoke access immediately.
Innovi Care sign-in and security screen showing authenticator app 2FA setup, WebAuthn passkeys, and active session controls.
The Sign-in & security view in Innovi Care combines TOTP authenticator verification, WebAuthn passkeys, and active session visibility in one place.

Row-level security enforced inside PostgreSQL

Authentication proves who is making a request; authorization decides which rows that person is allowed to read or modify. Instead of trusting application code alone to remember WHERE clinic_id = ... on every endpoint, Innovi Care enforces PostgreSQL Row-Level Security (RLS) directly on the clinical tables.

On every authenticated request, the GraphPG data layer attaches the caller's verified OIDC identity claims to the database transaction. PostgreSQL policies evaluate those claims before returning a single row:

  • Front-desk vs. clinician isolation: Reception staff can manage scheduling, arrival status, and registration tasks without reading consultation notes, imaging studies, or diagnostic summaries.
  • Per-practitioner boundaries: Even inside a shared multidisciplinary clinic, a therapist's confidential session notes remain isolated from unrelated specialists unless an explicit care relationship or patient consent permits access.
  • Append-only audit integrity: Clinical actions, consent grants, and revocations tie back to authenticated actors rather than anonymous service accounts.

Because the rule lives in the database engine itself, no UI bug or forgotten filter can accidentally leak another patient's chart across clinic boundaries.

Cross-practice lookup without leaking external records

A recurring tension in outpatient healthcare is balancing clean patient identity with strict privacy. If a patient visits a GP in one practice and a dentist or physiotherapist in another, creating a brand-new unlinked patient profile at each clinic leads to duplicate demographics, mismatched phone numbers, and fragmented reminders.

At the same time, a new doctor must never be able to browse notes written by an unrelated doctor just because both clinics use the same platform.

Capability Traditional shared network EHR Isolated single-clinic software Innovi Care consent-first model
Duplicate prevention High risk or open name search Creates separate duplicate profiles Exact lookup by National ID (e.g. CNP), email, or phone
Default visibility of other clinics' notes Often visible across network None (siloed) Locked and hidden by default
Booking and own-visit charting Immediate Immediate Immediate for the treating clinic
Cross-practice clinical sharing Often implicit or opt-out Manual PDF exports Explicit patient approval via FHIR Consent

Innovi Care resolves this with exact-identifier lookup paired with locked external charts:

  1. When registering a returning patient or verifying an identity, a clinic can look up the patient using an exact match on National ID (such as a Romanian CNP), email address, or phone number—never open wildcard browsing across other practices' directories.
  2. If the patient already holds an account, the clinician can schedule a visit and record notes for their own care interactions immediately, avoiding duplicate patient records.
  3. All records authored by other doctors and external practices remain locked and invisible. The screen explicitly states that the chart is private and lets the clinician click Request access, while the patient chooses in their portal exactly what to share, with whom, and for how long—and can revoke that consent at any time.
Innovi Care private patient chart screen after exact lookup, keeping external records locked behind Request access and Schedule a visit controls.
After an exact-identifier lookup, the clinic can schedule a visit and document its own care while external doctors' records stay locked until the patient approves access.

Private AI on EU servers: coming soon, security-compliant by design

Clinics increasingly ask whether AI transcription or summary drafting compromises GDPR compliance. Sending patient dialogues to US-hosted consumer APIs that train on submitted prompts is incompatible with European clinical standards.

Innovi Care is preparing Private AI on dedicated EU servers (coming soon) built on the same consent and provenance principles as the rest of the chart:

  • EU data residency: Processing stays on European infrastructure under strict data-processing boundaries with zero model training on patient data.
  • Scoped draft assistance: AI outputs remain structured proposals marked with explicit source provenance rather than unverified chart mutations, requiring clinician review before sign-off.
  • Opt-in clinical governance: Practices decide when and where drafting assistance is enabled, keeping sensitive workflows such as psychotherapy fully under practitioner control.

Reviewing clinic security in practice

If you are evaluating practice software for a solo clinic or a multi-specialty medical center in Europe, look beyond marketing claims about "GDPR compliance" and inspect where the actual technical boundaries live: phishing-resistant passkeys, database-enforced RLS, exact-match identity lookup, and patient-controlled cross-practice consent.

To walk through Innovi Care's security model, EU hosting options, and early-access onboarding with our engineering team, request a guided walkthrough or explore the product overview.