Closed cr0hn closed 1 year ago
I will try it a bit later. But first fast try showed that you create tables with incorrect types. AcraServer encrypts data and pass it as binary values. Database should store BYTEA (postgresql) types. data_type: str
helps to hide actual data type on DB side for application. App can deal as with string value instead of binary. But real data type on DB side should be BYTEA.
So, database should return error for your insert due to invalid syntax of values. AcraServer will encrypt your string values and pass it as binary values. And in case of JSON type it will be invalid syntax.
@cr0hn can you try recreating database table using BYTEA type for fields that should be encrypted?
For example, for request_cookies
:
Database: bytea for encrypted field (currently wrong) Acra encr config: string (data type that app expects) (currently ok) App: string (probably ok)
Hi @Lagovas! I did it and it worked! Thanks a lot for your help.
As a suggestion: I don’t find a warning or something else in the documentation. Maybe It helps more people.
Thanks a lot for your help and your work. It’s a really nice project
thank you @cr0hn ! w3e will definitely put a note to the docs
Describe the bug
When I insert a row from a Python script, data is not encrypted in PostgreSQL, and got this error in the terminal:
Column count in RowDescription packet not same as parsed query count of columns
To Reproduce
Example of query that doesn't encrypt data:
But, when I use an SQL UI App and insert a new row, information is encrypted
Expected behavior
Encrypted fields
Acra configuration files For AcraServer:
Environment (please complete the following information):
Additional context