qascade / dcr

A PoC framework to orchestrate interoperable Differentially Private Data Clean Room Services using Intel SGX hardware as root of trust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feat: Encrypted Data Migration from Postgres to EdgelessDB instance and Running Query on EdgelessDB instance.

qascade opened this issue · comments

Description

As we have decided to use postgres instances as data sources we want to pipe the data present in postgres instances through encrypted channels using TLS. Also, modify the contract yaml to have relevant decryption keys filled by collaborators. Then run a simple query on edgelessDB.

How are you planning to resolve on this issue?

Service Interface should have a MigrateEncrypted() method that takes necessary context parameters as input and populate the data on the edgeless db instance, which is a MySQL database on the interface.

Service should also have Run() method which takes query as an input. This Run() will later modified to use Validate SQL Compliance.

References

Code generated using chatgpt: https://gist.github.com/qascade/ec04c90d1cd93a1a208a157b17deca16

Deferring this issue, as we are not supporting Postgres for now.