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.35k stars 127 forks source link

improve unicode support #663

Closed Lagovas closed 1 year ago

Lagovas commented 1 year ago

Checklist

Lagovas commented 1 year ago

Unfortunately, I removed using unicode strings from the integration tests due to MySQL driver is outdated and works incorrectly with utf8 charset and need to be updated. I plan to do it in the separate PR. I already tested the freshest mysql-connector-python 8.1.0 and it looks like fixed a lot of problems (encodings, hardcoded TLSv1, conversion to python types) but now it correctly handles binary types and charset sent from the server. So, we need to merge our fixes in #662 to not hack tests with decoding bytearray type to string)

So lets do it in separate PR after merging #662