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.34k stars 128 forks source link

Convert 'bytes' data_type to BYTEA oid for postgresql #519

Closed Lagovas closed 2 years ago

Lagovas commented 2 years ago

Found that bytes data_type not handled properly for postgresql

Checklist

Lagovas commented 2 years ago

actually not, because by default all data stored in the database as bytea... and DB returns it as bytea anyway. so this change just to be consistent. bytes type we support to allow configure default_data_value for cases where we want return something meaningful instead of acrablock/acrastruct from app side