PeerDB-io / peerdb

Fast, Simple and a cost effective tool to replicate data from Postgres to Data Warehouses, Queues and Storage
https://peerdb.io
Other
1.91k stars 60 forks source link

Encrypt credentials stored in peers table #1882

Closed iskakaushik closed 1 week ago

iskakaushik commented 1 week ago

This commit enhances security by encrypting peer options in the 'peers' table using AES encryption. AES was chosen for its reliability and widespread adoption in securing sensitive data. Changes include:

serprex commented 1 week ago

Need to also add decrypting to getPostgresPeerConfigs. Could revise that code to loop over peer names & use connectors.GetByNameAs[*connpostgres.PostgresConnector], but that'd have to make N queries instead of just 1