Closed iskakaushik closed 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
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:
enc_key_id
column to thepeers
table.LoadPeer
andCreatePeerNoValidate
functions to handle encryption/decryption.