oblivpg_fdw
oblivpg_ftw · Oblivious foreign data wrapper for table access backed by trusted hardware and ORAM
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100167 | oblivpg_fdw | oblivpg_ftw | 1.0 | FDW | Unknown | C |
Usage
Sources:
oblivpg_fdw is a research prototype for oblivious table access through Intel SGX and a Secure Oblivious Engine using Path ORAM or Forest ORAM. It is coupled to custom PostgreSQL source-tree builds, enclave libraries, shared memory, mirror tables, and manually supplied object identifiers. It is not a general-purpose or production-ready FDW.
Core Workflow
Creating the extension registers the wrapper and a server named obliv, and also creates the global mapping table obl_ftw. The README’s test flow then manually records the OIDs of a foreign table, mirror table, and mirror index before opening and initializing the enclave:
The numeric OIDs are only placeholders here; upstream requires resolving them from the exact test schema. Its sample foreign-table definition is commented out in the installation SQL, so there is no portable table contract to copy blindly.
Important Objects
oblivpg_fdwis the wrapper andoblivis the server created at installation.obl_ftwstores the foreign-table, mirror-table, and mirror-index OIDs plus block counts.open_enclaveandclose_enclavecontrol the SGX enclave lifecycle.init_soeinitializes the Secure Oblivious Engine for a mapping.load_blocks,attach_shmem, andset_nexttermexpose low-level test and data-loading hooks.
Security and Compatibility Notes
The build requires Intel SGX SDK and external SOE/ORAM libraries, with compile-time modes that can bypass the enclave or inject dummy queries. Hard-coded OIDs are unstable across restore and schema recreation. Installing the extension drops any existing server obliv and foreign table ftw_users, then creates global objects. The prototype does not provide a security proof, modern compatibility claim, key-management procedure, or recovery workflow; use it only to reproduce the original research in an isolated environment.