-
Notifications
You must be signed in to change notification settings - Fork 300
Fix appsec.waf.requests telemetry metric #8644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 61 metrics, 10 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.49.0-SNAPSHOT~18ede7299f, baseline=1.49.0-SNAPSHOT~368851d216
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.062 s) : 0, 1061902
Total [baseline] (10.503 s) : 0, 10502927
Agent [candidate] (1.054 s) : 0, 1054017
Total [candidate] (10.448 s) : 0, 10447530
section appsec
Agent [baseline] (1.2 s) : 0, 1199588
Total [baseline] (10.797 s) : 0, 10797262
Agent [candidate] (1.199 s) : 0, 1198559
Total [candidate] (10.783 s) : 0, 10783242
section iast
Agent [baseline] (1.19 s) : 0, 1189681
Total [baseline] (11.088 s) : 0, 11087721
Agent [candidate] (1.183 s) : 0, 1183280
Total [candidate] (10.979 s) : 0, 10978654
section profiling
Agent [baseline] (1.314 s) : 0, 1313960
Total [baseline] (10.935 s) : 0, 10934824
Agent [candidate] (1.318 s) : 0, 1318024
Total [candidate] (10.98 s) : 0, 10979579
gantt
title petclinic - break down per module: candidate=1.49.0-SNAPSHOT~18ede7299f, baseline=1.49.0-SNAPSHOT~368851d216
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (725.244 ms) : 0, 725244
BytebuddyAgent [candidate] (719.603 ms) : 0, 719603
GlobalTracer [baseline] (240.392 ms) : 0, 240392
GlobalTracer [candidate] (238.87 ms) : 0, 238870
AppSec [baseline] (55.432 ms) : 0, 55432
AppSec [candidate] (55.951 ms) : 0, 55951
Debugger [baseline] (4.387 ms) : 0, 4387
Debugger [candidate] (4.346 ms) : 0, 4346
Remote Config [baseline] (693.853 µs) : 0, 694
Remote Config [candidate] (689.271 µs) : 0, 689
Telemetry [baseline] (12.224 ms) : 0, 12224
Telemetry [candidate] (11.229 ms) : 0, 11229
section appsec
BytebuddyAgent [baseline] (740.517 ms) : 0, 740517
BytebuddyAgent [candidate] (739.889 ms) : 0, 739889
GlobalTracer [baseline] (236.016 ms) : 0, 236016
GlobalTracer [candidate] (235.845 ms) : 0, 235845
AppSec [baseline] (175.538 ms) : 0, 175538
AppSec [candidate] (175.174 ms) : 0, 175174
Debugger [baseline] (4.212 ms) : 0, 4212
Debugger [candidate] (4.557 ms) : 0, 4557
Remote Config [baseline] (639.522 µs) : 0, 640
Remote Config [candidate] (634.893 µs) : 0, 635
Telemetry [baseline] (8.263 ms) : 0, 8263
Telemetry [candidate] (8.123 ms) : 0, 8123
IAST [baseline] (21.908 ms) : 0, 21908
IAST [candidate] (21.825 ms) : 0, 21825
section iast
BytebuddyAgent [baseline] (842.854 ms) : 0, 842854
BytebuddyAgent [candidate] (838.258 ms) : 0, 838258
GlobalTracer [baseline] (230.754 ms) : 0, 230754
GlobalTracer [candidate] (229.69 ms) : 0, 229690
AppSec [baseline] (55.41 ms) : 0, 55410
AppSec [candidate] (55.53 ms) : 0, 55530
Debugger [baseline] (4.264 ms) : 0, 4264
Debugger [candidate] (4.227 ms) : 0, 4227
Remote Config [baseline] (611.371 µs) : 0, 611
Remote Config [candidate] (623.839 µs) : 0, 624
Telemetry [baseline] (8.764 ms) : 0, 8764
Telemetry [candidate] (8.676 ms) : 0, 8676
IAST [baseline] (23.643 ms) : 0, 23643
IAST [candidate] (22.86 ms) : 0, 22860
section profiling
BytebuddyAgent [baseline] (717.396 ms) : 0, 717396
BytebuddyAgent [candidate] (718.535 ms) : 0, 718535
GlobalTracer [baseline] (375.894 ms) : 0, 375894
GlobalTracer [candidate] (378.034 ms) : 0, 378034
AppSec [baseline] (54.208 ms) : 0, 54208
AppSec [candidate] (53.633 ms) : 0, 53633
Debugger [baseline] (4.382 ms) : 0, 4382
Debugger [candidate] (4.448 ms) : 0, 4448
Remote Config [baseline] (658.068 µs) : 0, 658
Remote Config [candidate] (660.198 µs) : 0, 660
Telemetry [baseline] (8.969 ms) : 0, 8969
Telemetry [candidate] (9.008 ms) : 0, 9008
ProfilingAgent [baseline] (101.748 ms) : 0, 101748
ProfilingAgent [candidate] (102.954 ms) : 0, 102954
Profiling [baseline] (101.773 ms) : 0, 101773
Profiling [candidate] (102.979 ms) : 0, 102979
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.49.0-SNAPSHOT~18ede7299f, baseline=1.49.0-SNAPSHOT~368851d216
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.059 s) : 0, 1059317
Total [baseline] (8.68 s) : 0, 8680082
Agent [candidate] (1.06 s) : 0, 1059831
Total [candidate] (8.697 s) : 0, 8696912
section iast
Agent [baseline] (1.184 s) : 0, 1184229
Total [baseline] (9.249 s) : 0, 9248623
Agent [candidate] (1.184 s) : 0, 1184346
Total [candidate] (9.24 s) : 0, 9239743
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.185 s) : 0, 1184678
Total [baseline] (9.219 s) : 0, 9218932
Agent [candidate] (1.183 s) : 0, 1183366
Total [candidate] (9.211 s) : 0, 9210870
section iast_TELEMETRY_OFF
Agent [baseline] (1.178 s) : 0, 1177784
Total [baseline] (9.231 s) : 0, 9231092
Agent [candidate] (1.185 s) : 0, 1185116
Total [candidate] (9.256 s) : 0, 9256316
gantt
title insecure-bank - break down per module: candidate=1.49.0-SNAPSHOT~18ede7299f, baseline=1.49.0-SNAPSHOT~368851d216
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (722.45 ms) : 0, 722450
BytebuddyAgent [candidate] (724.013 ms) : 0, 724013
GlobalTracer [baseline] (239.581 ms) : 0, 239581
GlobalTracer [candidate] (240.083 ms) : 0, 240083
AppSec [baseline] (55.26 ms) : 0, 55260
AppSec [candidate] (54.879 ms) : 0, 54879
Debugger [baseline] (5.077 ms) : 0, 5077
Debugger [candidate] (5.14 ms) : 0, 5140
Remote Config [baseline] (2.102 ms) : 0, 2102
Remote Config [candidate] (2.198 ms) : 0, 2198
Telemetry [baseline] (11.45 ms) : 0, 11450
Telemetry [candidate] (10.026 ms) : 0, 10026
section iast
BytebuddyAgent [baseline] (838.668 ms) : 0, 838668
BytebuddyAgent [candidate] (838.63 ms) : 0, 838630
GlobalTracer [baseline] (229.915 ms) : 0, 229915
GlobalTracer [candidate] (230.113 ms) : 0, 230113
IAST [baseline] (23.567 ms) : 0, 23567
IAST [candidate] (23.522 ms) : 0, 23522
AppSec [baseline] (55.095 ms) : 0, 55095
AppSec [candidate] (55.179 ms) : 0, 55179
Debugger [baseline] (4.214 ms) : 0, 4214
Debugger [candidate] (4.264 ms) : 0, 4264
Remote Config [baseline] (612.386 µs) : 0, 612
Remote Config [candidate] (605.952 µs) : 0, 606
Telemetry [baseline] (8.788 ms) : 0, 8788
Telemetry [candidate] (8.74 ms) : 0, 8740
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (838.724 ms) : 0, 838724
BytebuddyAgent [candidate] (838.61 ms) : 0, 838610
GlobalTracer [baseline] (229.883 ms) : 0, 229883
GlobalTracer [candidate] (229.245 ms) : 0, 229245
IAST [baseline] (22.992 ms) : 0, 22992
IAST [candidate] (23.635 ms) : 0, 23635
AppSec [baseline] (56.025 ms) : 0, 56025
AppSec [candidate] (54.844 ms) : 0, 54844
Debugger [baseline] (4.274 ms) : 0, 4274
Debugger [candidate] (4.27 ms) : 0, 4270
Remote Config [baseline] (613.681 µs) : 0, 614
Remote Config [candidate] (622.053 µs) : 0, 622
Telemetry [baseline] (8.733 ms) : 0, 8733
Telemetry [candidate] (8.745 ms) : 0, 8745
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (834.502 ms) : 0, 834502
BytebuddyAgent [candidate] (840.117 ms) : 0, 840117
GlobalTracer [baseline] (229.081 ms) : 0, 229081
GlobalTracer [candidate] (229.51 ms) : 0, 229510
IAST [baseline] (22.229 ms) : 0, 22229
IAST [candidate] (22.556 ms) : 0, 22556
AppSec [baseline] (55.452 ms) : 0, 55452
AppSec [candidate] (55.96 ms) : 0, 55960
Debugger [baseline] (4.116 ms) : 0, 4116
Debugger [candidate] (4.185 ms) : 0, 4185
Remote Config [baseline] (635.269 µs) : 0, 635
Remote Config [candidate] (692.96 µs) : 0, 693
Telemetry [baseline] (8.533 ms) : 0, 8533
Telemetry [candidate] (8.674 ms) : 0, 8674
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 14 metrics, 16 unstable metrics. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.49.0-SNAPSHOT~18ede7299f, baseline=1.49.0-SNAPSHOT~368851d216
dateFormat X
axisFormat %s
section baseline
no_agent (384.643 µs) : 365, 404
. : milestone, 385,
iast (512.545 µs) : 491, 534
. : milestone, 513,
iast_FULL (732.33 µs) : 710, 754
. : milestone, 732,
iast_GLOBAL (557.093 µs) : 535, 579
. : milestone, 557,
iast_HARDCODED_SECRET_DISABLED (516.976 µs) : 495, 539
. : milestone, 517,
iast_INACTIVE (466.082 µs) : 445, 488
. : milestone, 466,
iast_TELEMETRY_OFF (503.924 µs) : 482, 526
. : milestone, 504,
tracing (461.025 µs) : 440, 482
. : milestone, 461,
section candidate
no_agent (382.087 µs) : 363, 402
. : milestone, 382,
iast (511.97 µs) : 490, 534
. : milestone, 512,
iast_FULL (728.013 µs) : 706, 750
. : milestone, 728,
iast_GLOBAL (561.274 µs) : 539, 584
. : milestone, 561,
iast_HARDCODED_SECRET_DISABLED (514.069 µs) : 492, 536
. : milestone, 514,
iast_INACTIVE (464.897 µs) : 444, 486
. : milestone, 465,
iast_TELEMETRY_OFF (507.752 µs) : 486, 530
. : milestone, 508,
tracing (456.496 µs) : 436, 477
. : milestone, 456,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.49.0-SNAPSHOT~18ede7299f, baseline=1.49.0-SNAPSHOT~368851d216
dateFormat X
axisFormat %s
section baseline
no_agent (1.365 ms) : 1346, 1385
. : milestone, 1365,
appsec (1.749 ms) : 1725, 1774
. : milestone, 1749,
appsec_no_iast (1.735 ms) : 1712, 1759
. : milestone, 1735,
code_origins (1.69 ms) : 1663, 1717
. : milestone, 1690,
iast (1.539 ms) : 1514, 1564
. : milestone, 1539,
profiling (1.516 ms) : 1493, 1539
. : milestone, 1516,
tracing (1.502 ms) : 1477, 1527
. : milestone, 1502,
section candidate
no_agent (1.359 ms) : 1339, 1379
. : milestone, 1359,
appsec (1.749 ms) : 1725, 1773
. : milestone, 1749,
appsec_no_iast (1.747 ms) : 1724, 1771
. : milestone, 1747,
code_origins (1.687 ms) : 1659, 1714
. : milestone, 1687,
iast (1.532 ms) : 1507, 1557
. : milestone, 1532,
profiling (1.51 ms) : 1487, 1534
. : milestone, 1510,
tracing (1.508 ms) : 1483, 1532
. : milestone, 1508,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.49.0-SNAPSHOT~18ede7299f, baseline=1.49.0-SNAPSHOT~368851d216
dateFormat X
axisFormat %s
section baseline
no_agent (14.807 s) : 14807000, 14807000
. : milestone, 14807000,
appsec (15.041 s) : 15041000, 15041000
. : milestone, 15041000,
iast (18.553 s) : 18553000, 18553000
. : milestone, 18553000,
iast_GLOBAL (18.21 s) : 18210000, 18210000
. : milestone, 18210000,
profiling (15.202 s) : 15202000, 15202000
. : milestone, 15202000,
tracing (15.006 s) : 15006000, 15006000
. : milestone, 15006000,
section candidate
no_agent (15.346 s) : 15346000, 15346000
. : milestone, 15346000,
appsec (15.087 s) : 15087000, 15087000
. : milestone, 15087000,
iast (18.679 s) : 18679000, 18679000
. : milestone, 18679000,
iast_GLOBAL (18.103 s) : 18103000, 18103000
. : milestone, 18103000,
profiling (15.172 s) : 15172000, 15172000
. : milestone, 15172000,
tracing (15.037 s) : 15037000, 15037000
. : milestone, 15037000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.49.0-SNAPSHOT~18ede7299f, baseline=1.49.0-SNAPSHOT~368851d216
dateFormat X
axisFormat %s
section baseline
no_agent (1.477 ms) : 1465, 1489
. : milestone, 1477,
appsec (2.35 ms) : 2307, 2394
. : milestone, 2350,
iast (2.133 ms) : 2077, 2188
. : milestone, 2133,
iast_GLOBAL (2.168 ms) : 2113, 2224
. : milestone, 2168,
profiling (1.992 ms) : 1947, 2037
. : milestone, 1992,
tracing (1.956 ms) : 1913, 1998
. : milestone, 1956,
section candidate
no_agent (1.475 ms) : 1464, 1487
. : milestone, 1475,
appsec (2.348 ms) : 2304, 2391
. : milestone, 2348,
iast (2.131 ms) : 2075, 2187
. : milestone, 2131,
iast_GLOBAL (2.174 ms) : 2118, 2230
. : milestone, 2174,
profiling (1.976 ms) : 1932, 2020
. : milestone, 1976,
tracing (1.964 ms) : 1921, 2006
. : milestone, 1964,
|
391b408
to
e57d2c4
Compare
f5a020d
to
1776ef8
Compare
2963701
to
d354d38
Compare
5119473
to
fee4ea9
Compare
fee4ea9
to
ff26203
Compare
5fe1015
to
2b6bf3d
Compare
@@ -475,7 +475,7 @@ class WAFModuleSpecification extends DDSpecification { | |||
2 * ctx.getWafMetrics() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a comment for your PR in particular I suppose but man am I going to have a titanic of a conflict once the upgrade is done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you referring to the PR to update to libddwaf 1.24? 😅
f2789db
to
dde8c18
Compare
What Does This Do
Rework from scratch the
appsec.waf.requests
telemetry metric as the RFC diverges a lot from our previous implementationUpdate metric once when request ends
Metric flags only need to be updated if we are dealing with WAF and not with RASP
Motivation
Additional Notes
RFC
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: APPSEC-57055