Skip to content
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

v4.50.0 proposal #4887

Draft
wants to merge 20 commits into
base: v4.x
Choose a base branch
from
Draft

v4.50.0 proposal #4887

wants to merge 20 commits into from

Conversation

rochdev
Copy link
Member

@rochdev rochdev commented Nov 13, 2024

  • [25ae8e737e] - (SEMVER-PATCH) Ignore elasticsearch 8.16.0 from esm tests (Ugaitz Urien) #4892
  • [985cb1db96] - (SEMVER-MINOR) Template injection vulnerability detection in handlebars and pug (ishabi) #4827
  • [59e9a2a75f] - (SEMVER-PATCH) [test optimization] Fix active span being null in cypress (Juan Antonio Fernández de Alba) #4863
  • [9146f26c93] - (SEMVER-PATCH) Remove x-forwarded from ipHeaderList (simon-id) #4882
  • [83e11a3e13] - (SEMVER-PATCH) add namespace support for async storage (Roch Devost) #4775
  • [1ce47d2ba0] - (SEMVER-PATCH) chore(llmobs): tracer version tagging (Sam Brenner) #4885
  • [7addced607] - (SEMVER-MINOR) add crashtracking with libdatadog native binding (Roch Devost) #4692
  • [36903cc982] - (SEMVER-PATCH) skip warning if propagator is baggage (Ida Liu) #4866
  • [9794630aa0] - (SEMVER-PATCH) add more node version test to unsupported guardrails matrix (Roch Devost) #4879
  • [1e1a2a1014] - (SEMVER-PATCH) add guardrail to completely bail out in very old versions (Roch Devost) #4878
  • [29ff735a64] - (SEMVER-MINOR) feat(tracing): AWS API Gateway Inferred Span Support (William Conti) #4837
  • [b81d9d84bf] - (SEMVER-MINOR) Prevent errors in Express 5.x applications (wantsui) #4872
  • [0a44e6e4dc] - (SEMVER-PATCH) Have one version tag in metrics (Attila Szegedi) #4857
  • [0a411ee6e1] - (SEMVER-PATCH) add release proposal script for use locally (Roch Devost) #4853
  • [70e99bd56b] - (SEMVER-MINOR) Add exclusions for header injection vulnerability (Carles Capell) #4841
  • [367bd2d65c] - (SEMVER-PATCH) Discard non-web traces when searching for a vulnerability not being present (Carles Capell) #4871
  • [1ee8000111] - (SEMVER-PATCH) Revert "always enable tracing header injection for AWS requests (always enable tracing header injection for AWS requests #4717)" (Thomas Hunter II) #4867

tlhunter and others added 14 commits November 13, 2024 15:45
…" (#4867)

- this reverts commit 1d2543c.
- reverts a change that would automatically inject tracing headers into AWS requests
- this appears to break S3 requests (and DynamoDB?) when using AWS SDK v2
  - we don't have any reports of other services or of AWS SDK v3 breaking
- for follow up work we need to make this a configurable environment variable instead of just an init setting
  - this is because folks using the lambda layer need to configure the tracer via env vars
  - alternatively we only block s3 and dynamo? however there could be other services that fail...
  - alternatively we only block aws sdk v2? however it seems that a bunch of the services are fine...
- internal stuff: APMS-13694, APMS-13713
- more discussion in #4717
* Add exclusions for header injection vulnerability

* Rewrite fn to get a partial value from accept-encoding header to reflect it in transfer/content-encoding

* Fix linting problems
* Fix integration by preventing unsafe access to properties.

---------

Co-authored-by: William Conti <william.conti@datadoghq.com>
Co-authored-by: William Conti <58711692+wconti27@users.noreply.github.com>
* Add support for inferred spans to be created for proxies. Initially supports AWS API Gateway and creates a span when the required headers are attached on the received request.
---------

Co-authored-by: wantsui <wan.tsui@datadoghq.com>
* add tracer version to top-level payload

* fix dd-trace.version to be ddtrace.version tag
Copy link

github-actions bot commented Nov 13, 2024

Overall package size

Self size: 7.99 MB
Deduped: 96.13 MB
No deduping: 96.47 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | @datadog/libdatadog | 0.2.2 | 29.27 MB | 29.27 MB | | @datadog/native-appsec | 8.2.1 | 19.18 MB | 19.19 MB | | @datadog/native-iast-taint-tracking | 3.2.0 | 13.9 MB | 13.91 MB | | @datadog/pprof | 5.4.1 | 9.76 MB | 10.13 MB | | protobufjs | 7.2.5 | 2.77 MB | 7.01 MB | | @datadog/native-iast-rewriter | 2.5.0 | 2.51 MB | 2.65 MB | | @opentelemetry/core | 1.14.0 | 872.87 kB | 1.47 MB | | @datadog/native-metrics | 3.0.1 | 1.06 MB | 1.46 MB | | @opentelemetry/api | 1.8.0 | 1.21 MB | 1.21 MB | | import-in-the-middle | 1.11.2 | 112.74 kB | 826.22 kB | | msgpack-lite | 0.1.26 | 201.16 kB | 281.59 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | lru-cache | 7.18.3 | 133.92 kB | 133.92 kB | | pprof-format | 2.1.0 | 111.69 kB | 111.69 kB | | @datadog/sketches-js | 2.1.0 | 109.9 kB | 109.9 kB | | semver | 7.6.3 | 95.82 kB | 95.82 kB | | lodash.sortby | 4.7.0 | 75.76 kB | 75.76 kB | | ignore | 5.3.1 | 51.46 kB | 51.46 kB | | int64-buffer | 0.1.10 | 49.18 kB | 49.18 kB | | shell-quote | 1.8.1 | 44.96 kB | 44.96 kB | | istanbul-lib-coverage | 3.2.0 | 29.34 kB | 29.34 kB | | rfdc | 1.3.1 | 25.21 kB | 25.21 kB | | tlhunter-sorted-set | 0.1.0 | 24.94 kB | 24.94 kB | | limiter | 1.1.5 | 23.17 kB | 23.17 kB | | dc-polyfill | 0.1.4 | 23.1 kB | 23.1 kB | | retry | 0.13.1 | 18.85 kB | 18.85 kB | | jest-docblock | 29.7.0 | 8.99 kB | 12.76 kB | | crypto-randomuuid | 1.0.0 | 11.18 kB | 11.18 kB | | koalas | 1.0.2 | 6.47 kB | 6.47 kB | | path-to-regexp | 0.1.10 | 6.38 kB | 6.38 kB | | module-details-from-path | 1.0.3 | 4.47 kB | 4.47 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@pr-commenter
Copy link

pr-commenter bot commented Nov 13, 2024

Benchmarks

Benchmark execution time: 2024-11-15 15:41:58

Comparing candidate commit a296c29 in PR branch v4.50.0-proposal with baseline commit 2ba82f7 in branch v4.x.

Found 3 performance improvements and 0 performance regressions! Performance is the same for 772 metrics, 23 unstable metrics.

scenario:plugin-graphql-with-depth-and-collapse-on-16

  • 🟩 max_rss_usage [-125.677MB; -121.643MB] or [-12.559%; -12.156%]

scenario:plugin-graphql-with-depth-off-16

  • 🟩 max_rss_usage [-141.838MB; -126.670MB] or [-14.103%; -12.595%]

scenario:plugin-graphql-with-depth-on-max-16

  • 🟩 max_rss_usage [-125.423MB; -122.033MB] or [-12.529%; -12.191%]

@juan-fernandez
Copy link
Collaborator

could you include #4863? It fixes a customer issue

simon-id and others added 6 commits November 14, 2024 10:48
* Template injection vulnerability detection in handlebars

* template injection vulnerability detection in pug

* fix lint and naming issues

* create separate job for template injection

* add support to registerPartial function

* add tests for pug render function
DD_INJECTION_ENABLED: 'true'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Code Vulnerability

Workflow depends on a GitHub actions pinned by tag (...read more)

View in Datadog  Leave us feedback  Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.