-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for array of objects #11
Comments
A similar use case for decryption. There is no way to encrypt a single field from an object inside an array. So I have used field_mode OBJECT and wanted to decrypt it in the sink connector. Payload to encrypt: {
"_id":"gabd9a39-9856-38b6-b983-94513f746f34",
"currency":"ABC",
"fields":[
{
"fieldOne":"someValueOne",
"fieldTwo":"someValueTwo"
},
{
"fieldOne":"anotherValueOne",
"fieldTwo":"anotherValueTwo"
},
],
"nested":{
"value": 123,
"valueString":"abc"
}
} Config:
That works just fine, the output is something like:
But then I want to decrypt the value in the sink connector, so I use:
That fails with an error:
I have debugged the source code and I found that there is a TODO: |
Hi there. Thanks for reaching out and opening this issue. The answer to this one needs some context and explanation:
hope this clarifies why you see the behaviour you posted above. |
Thanks @hpgrahsl, I will try with the schemaless setup. |
@ArturKT did it work for you to go with a schemaless approach for your enc/dec scenario? |
Any plan to support ELEMENT encryption for an array of objects?
Example data:
I would like to encrypt all `fields[*].fieldOne'. I have tried that by setting:
But that fails with exception:
The text was updated successfully, but these errors were encountered: