-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Provide Thread Safe, Fast Hashing Method #30790
Comments
Pinging @elastic/es-core-infra |
I don't think this should be available by default in eg search scripts (filter or scoring). @talevy has mentioned before the desire to add additional whitelisted methods/classes to ingest. This should go in there. |
I completely agree. |
We have |
Closing in favour of #34085 |
With things like GDPR on the horizon, the desire to hash certain data fields at the Elasticsearch level seems like a very attractive feature to natively support. It would be ideal if whatever did was available to Ingest and hopefully Painless.
Just exposing an instance of
MessageDigest
is likely to be very inefficient since it is not thread safe. Most systems expect SHA-256 these days rather than MD5 or SHA-1.Workaround
It's possible to whitelist the
MessageDigest
class in Painless via a whitelist plugin. Alternatively, you could write a separate plugin and whitelist that code, or implement a customIngest
processor plugin.The text was updated successfully, but these errors were encountered: