Re: [SQL] Replication and Field Level Encryption
От | Steve Midgley |
---|---|
Тема | Re: [SQL] Replication and Field Level Encryption |
Дата | |
Msg-id | CAJexoS+FFnLiYucoBk8WWuR45oUY-tzvJPBCvn5P+0PfFco+2g@mail.gmail.com обсуждение исходный текст |
Ответ на | [SQL] Replication and Field Level Encryption (Jason Aleski <jason.aleski@gmail.com>) |
Список | pgsql-sql |
On Aug 10, 2017 10:07 AM, "Jason Aleski" <jason.aleski@gmail.com> wrote:
- Should the encryption and decryption be at the client or server?
- Advantage to the client
- Data is secured end-to-end
- Disadvantage
- Managing application changes during security key changes.
- Advantage to the server
- Consolidates programming logic and reduces the encryption process on the client
- Disadvantage to the server
- Data relies on communications SSL/TLS for encryption
Any thoughts or items I should also consider?
If I were building this I'd put a middle tier api layer between the sql server and the various clients. I think you'll get more expressiveness in the api design and therefore even dumber clients (a good goal). You should also have an easier time building a test harness and all the tests you'll want.
You'd abstract the encryption and similar stuff into the api, and it can either be handled there are delegated down to postgres (and as you point out you can change your strategy over time).
Getting the api design right is an important early goal for the project. That and quality tests..
Common middle tier api options are ruby, python, node.js, and Java.
Steve
В списке pgsql-sql по дате отправления: