Elasticsearch data encryption

HI Everyone,

Currently i am using elastic 7.17.5 along with spring boot. Index creation and data save and retrieval is happening via Java only.

Below is my requirement,
I need to have a data saved in the Elasticsearch is should encrypted format. When some one directly curl the elastic they should see only the encrypted value not the actual value. In this case i need to do the searches(exact, Prefix, term, wild card and fuzzy) with scoring as well.

The same i need to if for the non text field like date, integer, Boolean etc as well. This case i need to support the range query option as well

Also i need to make the search to work as well.

Please suggest the approaches to achieve the above criteria.

Welcome back @Kesavan!

I assume you're using a self-managed Elasticsearch instance? You'll need to encrypt the data at OS level as it's not something Elasticsearch supports out of the box.

This article is a bit dated but it does recommend a few tools and considerations for applying encryption at REST.

Hope that helps!

Can you tell me a little about where this requirement comes from? e.g. is there a corporate policy at play here, if so can you quote what it actually says?

The requirement as you have described it:

is pretty unusual.

@carly.richmond covered the "data at rest" aspect, but as written your requirement is different.