Skip to content

[9.1] [Inference] regex worker for anonymization (#227113)#227723

Merged
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-227113
Jul 11, 2025
Merged

[9.1] [Inference] regex worker for anonymization (#227113)#227723
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-227113

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

## Summary

Followup to elastic#225539

Adds an anonymization-regex worker pool to run user-defined regex
patterns out-of-process, protecting the Node event-loop from
catastrophic back-tracking.

For internal use we have config to adjust or turn off the worker:
• `enabled` – turn worker on/off
• `minThreads` / `maxThreads` – worker size
• `idleTimeout` – how long a worker thread is allowed to be idle
• `taskTimeout` – per-regex task limit

Contributions by windsurf(o3).

(cherry picked from commit 1b9063a)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jul 11, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) July 11, 2025 20:59
@kibanamachine kibanamachine merged commit 23b8196 into elastic:9.1 Jul 11, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants