lingex-personal-data
LingEx Personal Data
Source details
- Source revision
931a417c67d0eb1627b7fb717b636384a4ab1696- Source SHA-256
3dc16ad9a437436e6d6611573dfc8c11f1f17f0cb70445202b91285a9d65d2e3
LingEx Personal Data
lingex-personal-data is the service boundary for encrypted identifiable Personal Data and service-owned blind indexes. Its approved production target uses random per-record data-encryption keys and authenticated Key Broker operations. PHP/product consumers never receive the raw production master key or KEK, and the service does not expose keys, raw storage envelopes or credentials.
The service factory requires an injected BrokerOperationClient and exposes no raw operational-key method. fromBrokerSocket supplies the bounded Unix client; Auth issues a short-lived request-bound assertion, the trusted adapter validates it, and LXBI v2 reaches the Broker over its private inherited channel. LXBI v1 remains frozen, and privileged requests never downgrade to v1. Wrap, unwrap, rewrap and blind-index operations return only typed results; Broker capabilities and operational key material never reach PHP. Endpoint possession is not authority. The Broker executable remains sealed until trusted production providers and a separately approved activation are supplied. Unavailable operations fail closed. Existing rows without Broker key identity remain unreadable and have no environment or plaintext fallback. The production activation gate and canonical target are described in Platform's docs/architecture/KEY-CUSTODY.md.
Authentication remains owned by Auth, the database boundary by Core, and privacy export/erasure/anonymisation orchestration by Platform. Research subjects are random, non-derived and remain pseudonymous while a controlled mapping exists. The sole person-to-research mapping is owned here, is purpose-scoped, and can be revoked or irreversibly deleted through the service boundary.
Personal Data remains the schema and domain owner of its database tables. Persistence holds and resolves its executable migration files through the canonical migration catalogue. The module manifest retains the logical database/migrations root and each migration's original repository, root, path, key, ordering and applied-state identity remain unchanged.