Closed
Description
Component(s)
pkg/ottl
Is your feature request related to a problem? Please describe.
One common use-case for OTTL is making sensitive key values. For example, credit card numbers. Using Regexes alone can be difficult and prone to bugs.
Describe the solution you'd like
Some algorithm like the Luhn algorithm would make OTTL easier to use in the context of redaction or masking of values like credit card numbers.
Describe alternatives you've considered
Regex functions do exist in OTTL, but it's relatively easy to introduce bugs when using "pure" regex. An additional layer of checking using something like Luhn/mod 10 could increase correctness.