cassandra-lucene-index icon indicating copy to clipboard operation
cassandra-lucene-index copied to clipboard

Indexing Encrypted data

Open thanigaiv opened this issue 8 years ago • 5 comments

I have some data that is written to C* as encrypted data (client side encryption). Is it possible to decrypt the data before indexing it?

thanigaiv avatar Apr 11 '16 16:04 thanigaiv

Hi @thanigaiv,

It is not currently possible, but it probably could be done with a custom mapper designed for this purpose. Are you encrypting each cell value?

adelapena avatar Apr 14 '16 17:04 adelapena

Thanks. I have selected fields that are encrypted. Could you point me to the source where the mapper would be invoked?

On Thu, Apr 14, 2016 at 10:31 AM, Andrés de la Peña < [email protected]> wrote:

Hi @thanigaiv https://github.com/thanigaiv,

It is not currently possible, but it probably could be done with a custom mapper designed for this purpose. Are you encrypting each cell value?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/Stratio/cassandra-lucene-index/issues/116#issuecomment-210066621

thanigaiv avatar Apr 14 '16 19:04 thanigaiv

Mappers are here. The idea is that you can modify one of the existing mappers or maybe create an new SingleColumnMapper and decrypt your data in the method addIndexedFields before indexing them.

adelapena avatar Apr 15 '16 16:04 adelapena

@adelapena can you please provide example how to register that mapper to be recognized by the plugin?

pchlupacek avatar Jul 20 '16 16:07 pchlupacek

@adelapena: Hi, I'm trying to define an index for filtering file paths (& a value that's assigned to it) with or without wildcards. Here's the index I created: CREATE CUSTOM INDEX search_idx ON db_3.my_files () USING 'com.stratio.cassandra.lucene.Index' WITH OPTIONS = {'refresh_seconds': '30', 'schema': '{fields: {path: {type: "text"},value: {type: "text"}}}'};

WDYT? Is there a better way to index a file path?

moranlevy420 avatar Aug 10 '17 11:08 moranlevy420