sp_compliance_field_masking able to search for LastName in cleartext
The test https://git.eliatra.com/eliatra-suite/eliatra-opensearch-integration-tests/-/blob/rename-basics/test/_testsuite_compliance_2/test_compliance_field_masking.sh#L19 failed with following error:
--------------------- Test LastName Search with field masking ------------
sp_compliance_field_masking able to search for LastName in cleartext. Result was 1, Raw response was {
"took" : 9,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 1,
"relation" : "eq"
},
"max_score" : 5.857933,
"hits" : [
{
"_index" : "humanresources",
"_id" : "1",
"_score" : 5.857933,
"_source" : {
"FirstName" : "298a31bfc228c9d54a4bc10bf3132f5c0fd469a3ae0edf438550920c77f3bb6a",
"LastName" : "538ddd9c3b288fe2c65f9719d2b14b44fb137416ec9de9d44f673cd67e68b7d2",
"Designation" : "CEO",
"Salary" : 154000,
"Address" : "445b90b9787ba5858b11247dc74da69a67a0147d7d57c8b07658ccdf09a13c1e"
}
}
]
}
}
and
--------------------- Test LastName Search with field masking ------------
sp_compliance_field_masking able to search for LastName in cleartext. Result was 1, Raw response was {
"took" : 9,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 1,
"relation" : "eq"
},
"max_score" : 5.857933,
"hits" : [
{
"_index" : "humanresources",
"_id" : "1",
"_score" : 5.857933,
"_source" : {
"FirstName" : "298a31bfc228c9d54a4bc10bf3132f5c0fd469a3ae0edf438550920c77f3bb6a",
"LastName" : "538ddd9c3b288fe2c65f9719d2b14b44fb137416ec9de9d44f673cd67e68b7d2",
"Designation" : "CEO",
"Salary" : 154000,
"Address" : "445b90b9787ba5858b11247dc74da69a67a0147d7d57c8b07658ccdf09a13c1e"
}
}
]
}
}
Edited by Piotr Chmielnik