How to encrypt Elasticsearch document source?

I need to encrypt Elasticsearch document source content for security.

The final effect to be achieved is as follows:

input:

    {
       "title":"you know, for search",
       "viewcount": 20
     }

In es:

    {
      "title": "zpv!lopx-!gps!tfbsdi",    // whatever, encrypted title
      "viewcount": ☯                      // whatever, encrypted viewcount
    }

But it won't be searchable?

There's nothing in Elasticsearch which will encrypt the json content of your documents.

1 Like

I have developed a security token filter ,use encrypted term to search the inverted index, and the term in the inverted index is also encrypted.

This is something you would need to handle outside of Elasticsearch at this stage.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.