Instantiate obfuscator through configuration, remove ddwaf_config#464
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #464 +/- ##
==========================================
+ Coverage 84.87% 84.89% +0.01%
==========================================
Files 190 190
Lines 9814 9825 +11
Branches 4284 4295 +11
==========================================
+ Hits 8330 8341 +11
Misses 613 613
Partials 871 871
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Benchmarks gccBenchmark execution time: 2025-10-02 15:22:03 Comparing candidate commit d614c0f in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics. |
Benchmarks clangBenchmark execution time: 2025-10-02 15:22:17 Comparing candidate commit d614c0f in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics. |
ddwaf_config
Artifact Size Comparison 📦
|
Benchmarks clang-pgoBenchmark execution time: 2025-10-01 15:54:21 Comparing candidate commit 52db4a4 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics. |
This PR removes
ddwaf_config, which currently only holds the obfuscator configuration. Instead, the obfuscator can now be configured using a standard builder configuration, with the following contents:{ "obfuscator": { "key_regex": "<key-based regular expression>", "value_regex": "<value-based regular expression>" } }This configuration works in the same way as
ddwaf_config:nullptrconfig.obfuscatorkey, the second one is rejected.