cossacklabs / acra

Database security suite. Database proxy with field-level encryption, search through encrypted data, SQL injections prevention, intrusion detection, honeypots. Supports client-side and proxy-side ("transparent") encryption. SQL, NoSQL.
https://www.cossacklabs.com/acra/
Apache License 2.0
1.33k stars 128 forks source link

Extend type awareness with DataTypeIDs #596

Closed Zhaars closed 1 year ago

Zhaars commented 1 year ago

Extending functionality of TA - added ability to directly specify data_type_db_identifier in encryptor config. Backward compatibility is saved as data_type is mapped to DataTypeID in the encryptor config.

The idea is to have DataTypeEncoder interface implemented for each supported DB type which registers in DataTypeIDEncoders map. In such cases, we can achieve more flexibility by substituting/adding new DB types

Checklist