-
Notifications
You must be signed in to change notification settings - Fork 155
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
Disable helper when appsec is fully disabled. #2935
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2935 +/- ##
============================================
- Coverage 82.10% 72.41% -9.70%
Complexity 2527 2527
============================================
Files 108 135 +27
Lines 10360 14402 +4042
Branches 0 991 +991
============================================
+ Hits 8506 10429 +1923
- Misses 1854 3427 +1573
- Partials 0 546 +546
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 31 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
As long as this works properly ... Both extensions will write to the same ini_entry in PHP... I think it would be better to keep them in sync and do the name_index < 0 check in the tracer too. Or is there any reason we cannot do this? |
I'm confused, dd_appsec_maybe_enable_helper still will have the sidecar sideload the appsec helper (if the sidecar is launched at all) - when the tracer is launched with the sidecar, there's no check in dd_appsec_maybe_enable_helper for appsec disabled? |
Benchmarks [ appsec ]Benchmark execution time: 2024-11-11 12:24:19 Comparing candidate commit 74be367 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. |
Benchmarks [ tracer ]Benchmark execution time: 2024-11-11 12:16:52 Comparing candidate commit 74be367 in PR branch Found 0 performance improvements and 1 performance regressions! Performance is the same for 177 metrics, 0 unstable metrics. scenario:MessagePackSerializationBench/benchMessagePackSerialization
|
4cae11f
to
e325e1d
Compare
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.
Looks great to me, thanks :-) [except for the PHP 8.4 compile failure...]
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.
lgtm
7f7314a
to
74be367
Compare
Description
Also make datadog.appsec.enabled a system config.
Note that the default value for datadog.appsec.enabled in ext/configuration.h (true) is different from that in datadog.appsec.disabled (false). This is intentional. appsec chooses between three states: explicitly enabled, explicitly disabled and controlled by remote config. Though a questionable decision, the config setting is still a boolean, and the third state is detected by a hack that determines whether the value was explicitly set. Because on the ddtrace side we want to suppress the helper only if explicitly disabled, we can set the default value to true, and disable the helper when the value is false (if the value is not the default true, then it was explicitly set to false).Reviewer checklist