-
Notifications
You must be signed in to change notification settings - Fork 323
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 appsec if missing or malformed user custom rules file #2969
Conversation
Overall package sizeSelf size: 4.02 MB Dependency sizes
🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Codecov Report
@@ Coverage Diff @@
## master #2969 +/- ##
==========================================
- Coverage 87.64% 87.63% -0.01%
==========================================
Files 329 329
Lines 11747 11746 -1
Branches 33 33
==========================================
- Hits 10296 10294 -2
- Misses 1451 1452 +1
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
BenchmarksComparing candidate commit 1b735ae in PR branch Found 2 performance improvements and 8 performance regressions! Performance is the same for 656 metrics, 42 unstable metrics. scenario:appsec-appsec-enabled-with-attacks-14
scenario:spans-finish-immediately-16
scenario:plugin-graphql-with-depth-off-16
scenario:plugin-q-with-tracer-16
scenario:plugin-dns-with-tracer-16
scenario:appsec-appsec-enabled-with-attacks-16
scenario:plugin-dns-with-tracer-18
|
73cb5b2
to
3b2c9fa
Compare
da9a311
to
1b735ae
Compare
This looks good to me and I'm fine with merging it to master. The three failing tests should be unrelated. |
There's a bunch going on in this PR by now but the goal is to unblock a release: |
@@ -202,7 +202,7 @@ For these reasons it's necessary to have custom-built bundler plugins. Such plug | |||
|
|||
### Esbuild Support | |||
|
|||
This library provides experimental esbuild support in the form of an esbuild plugin, and requires at least Node.js v14.17. To use the plugin, make sure you have `dd-trace@3+` installed, and then require the `dd-trace/esbuild` module when building your bundle. | |||
This library provides experimental esbuild support in the form of an esbuild plugin, and currently requires at least Node.js v16.17 or v18.7. To use the plugin, make sure you have `dd-trace@3+` installed, and then require the `dd-trace/esbuild` module when building your bundle. |
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.
The support range for this changed somehow? Just a note to ensure we update the corp docs too.
Please update the title and description of the PR |
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
* Update config.js * Add test to ensure appsec rules are undefined if could not load or parse user rules file * trying to allow non v14 integration tests to run * print node version when esbuild test fails * esbuild refactor broke support for certain node.js versions * display git status when cherry pick fails --------- Co-authored-by: Igor Unanua <igor.unanua@datadoghq.com> Co-authored-by: Thomas Hunter II <tlhunter@datadog.com>
* Update config.js * Add test to ensure appsec rules are undefined if could not load or parse user rules file * trying to allow non v14 integration tests to run * print node version when esbuild test fails * esbuild refactor broke support for certain node.js versions * display git status when cherry pick fails --------- Co-authored-by: Igor Unanua <igor.unanua@datadoghq.com> Co-authored-by: Thomas Hunter II <tlhunter@datadog.com>
* Update config.js * Add test to ensure appsec rules are undefined if could not load or parse user rules file * trying to allow non v14 integration tests to run * print node version when esbuild test fails * esbuild refactor broke support for certain node.js versions * display git status when cherry pick fails --------- Co-authored-by: Igor Unanua <igor.unanua@datadoghq.com> Co-authored-by: Thomas Hunter II <tlhunter@datadog.com>
* Update config.js * Add test to ensure appsec rules are undefined if could not load or parse user rules file * trying to allow non v14 integration tests to run * print node version when esbuild test fails * esbuild refactor broke support for certain node.js versions * display git status when cherry pick fails --------- Co-authored-by: Igor Unanua <igor.unanua@datadoghq.com> Co-authored-by: Thomas Hunter II <tlhunter@datadog.com>
What does this PR do?
Motivation
If user custom rules couldn't be loaded appsec will enabled with the default recommended rules.
Plugin Checklist
Additional Notes