Skip to content

[8.19] [Inference] regex worker for anonymization (#227113)#227722

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

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

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

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 11bfa8b into elastic:8.19 Jul 11, 2025
11 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