Support other scalar types on action parameters#441
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #441 +/- ##
==========================================
+ Coverage 85.10% 85.15% +0.04%
==========================================
Files 180 180
Lines 9226 9283 +57
Branches 4084 4116 +32
==========================================
+ Hits 7852 7905 +53
- Misses 548 550 +2
- Partials 826 828 +2
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 gccBenchmark execution time: 2025-09-01 09:09:39 Comparing candidate commit c4d828f 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-31 21:33:50 Comparing candidate commit cb2fe12 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-09-01 09:08:29 Comparing candidate commit c4d828f in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 0 metrics, 0 unstable metrics. scenario:global-benchmark.random.clang
|
cataphract
left a comment
There was a problem hiding this comment.
Looks good enough, but I wonder what the point is of having an additional tagged union representation that you create from ddwaf_object (and then back), when ddwaf_object is already a tagged union capable of representing your values.
Primarily to avoid having to manage cleanups, I will indeed use |
f3e110f to
cb2fe12
Compare
cb2fe12 to
6653205
Compare
This PR extends the set of allowed types on action parameters to include all other scalars. This is a small improvement which can be taken advantage of to prevent intermediate type conversions. In v2, other complex types will also be supported.
Related Jiras: APPSEC-58779