URI parsing preprocessor#439
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #439 +/- ##
==========================================
+ Coverage 85.07% 85.10% +0.03%
==========================================
Files 178 180 +2
Lines 9166 9226 +60
Branches 4043 4084 +41
==========================================
+ Hits 7798 7852 +54
- Misses 545 548 +3
- Partials 823 826 +3
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:
|
Artifact Size Comparison 📦
|
Benchmarks clangBenchmark execution time: 2025-09-01 08:36:06 Comparing candidate commit 1311d67 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics. |
Benchmarks gccBenchmark execution time: 2025-09-01 08:36:06 Comparing candidate commit 1311d67 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics. |
Benchmarks clang-pgoBenchmark execution time: 2025-08-30 22:13:17 Comparing candidate commit 563348c in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics. |
dcd6bf4 to
563348c
Compare
563348c to
1311d67
Compare
This PR adds a new preprocessor which parses a URI and extracts its constituent components into a new address. This new address can then be used to evaluate specific parts of a URL without over-complicated and inaccurate regular expressions. An example definition of this preprocessor in configuration can be seen below:
{ "id": "processor-001", "generator": "uri_parse", "conditions": [], "parameters": { "mappings": [ { "inputs": [ { "address": "server.io.net.url" } ], "output": "server.io.net.request.url" } ] }, "evaluate": true, "output": false }The output of this preprocessor is a map with the following contents:
Related Jiras: APPSEC-58778