Skip to content

Bump io.sqreen:libsqreen to 17.7.1 - #13658

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
masterfrom
alejandro.gonzalez/APPSEC-71631-libsqreen-17.7.1
Nov 24, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
masterfrom
alejandro.gonzalez/APPSEC-71631-libsqreen-17.7.1

Conversation

@jandro996

@jandro996 jandro996 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What Does This Do

  • Bumps io.sqreen:libsqreen from 17.7.0 to 17.7.1 in dd-java-agent/appsec/build.gradle. The bundled libddwaf (2.2.1) and the Java API of the binding do not change.
  • Updates the io.sqreen:libsqreen line of the 456 gradle.lockfile files that pin it at 17.7.0. Each file changes one line.

Motivation

AppSec never started when slf4j-api was a named module in the JPMS boot layer, for example Mule 4.x on JDK 11+, --module-path, --add-modules or a jlink image. The agent relocates org.slf4j to datadog.slf4j. The native logging init picked the unrelocated slf4j signatures when org/slf4j/event/Level was visible from the agent class loader, so the WAF init failed on InfoToDebugLogger.<init>(Lorg/slf4j/Logger;)V.

libsqreen 17.7.1 ships DataDog/libddwaf-java#222: the native code no longer names any slf4j class, and every slf4j call goes through InfoToDebugLogger JNI entry points with JDK-only signatures. This works with any relocation prefix.

Additional Notes

  • Lockfiles: I text-replaced the libsqreen line instead of running a global resolveAndLockAll, which would also pick up unrelated latestDep drift. The 17.7.0 and 17.7.1 POMs are identical apart from the version. :dd-java-agent:appsec:resolveAndLockAll --write-locks produces the same lockfile byte for byte.
  • The 3 lockfiles still at 17.3.0 (jersey-appsec-2.0, jersey-appsec-3.0, spark_2.12) are stale for other reasons. Regenerating them rewrites about 135 unrelated lines, so this PR leaves them as they are.
  • Agent jar size: the libsqreen 17.7.1 jar is 3287 bytes smaller than 17.7.0. The locally built agent jar is 34,083,997 bytes against the 35 MiB budget, and verifyAgentJarContents passes, so the budget does not change.
  • libsqreen 17.7.1 was published to Maven Central on 2026-11-23, less than the 48 h of .github/scripts/dependency_age.py. Only the automated dependency update workflow enforces that policy. This is a first-party artifact released from DataDog/libddwaf-java (tag v17.7.1, Bump version to 17.7.1 libddwaf-java#223).
  • :dd-java-agent:appsec:test passes locally with 17.7.1 (libddwaf 2.2.1 loads).
  • I tested end to end with an agent built on a local 17.7.1-equivalent snapshot: AppSec is FULLY_ENABLED on Mule 4.9.0 CE with the module path on JDK 11, 17 and 21.
  • Not in this PR: a smoke test for the JPMS case (modular app with the agent, asserting AppSec starts). That will come in a follow-up PR.

Contributor Checklist

Jira ticket: APPSEC-71631

Note: Once your PR is ready to merge, add it to the merge queue by commenting /merge. /merge -c cancels the queue request. /merge -f --reason "reason" skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.

@jandro996 jandro996 added type: bug fix Bug fix comp: asm waf Application Security Management (WAF) labels Nov 24, 2026
@jandro996

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T09:14:35.757070Z 7e138a4 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-24T09:15:56.245819Z 7e138a4 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 31df24d904

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 31df24d904

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

libsqreen 17.7.1 keeps slf4j class names out of the native logging
init (DataDog/libddwaf-java#222), so AppSec starts when slf4j-api is a
named module in the JPMS boot layer (e.g. Mule 4.x on JDK 11+). Same
libddwaf 2.2.1 and Java API as 17.7.0.

Also updates the libsqreen line of the gradle.lockfile files that pin
it at 17.7.0, one line per file.
@jandro996
jandro996 force-pushed the alejandro.gonzalez/APPSEC-71631-libsqreen-17.7.1 branch from 31df24d to 7e138a4 Compare November 24, 2026 08:26
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 63.20% (+2.17%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 7e138a4 | Docs | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.04 s 13.98 s [-0.3%; +1.1%] (no difference)
startup:insecure-bank:tracing:Agent 12.94 s 12.99 s [-1.3%; +0.5%] (no difference)
startup:petclinic:appsec:Agent 17.24 s 17.17 s [-0.6%; +1.5%] (no difference)
startup:petclinic:iast:Agent 17.20 s 16.76 s [-1.9%; +7.2%] (no difference)
startup:petclinic:profiling:Agent 16.60 s 17.06 s [-4.0%; -1.4%] (significantly better)
startup:petclinic:sca:Agent 17.24 s 17.15 s [-0.5%; +1.6%] (no difference)
startup:petclinic:tracing:Agent 16.29 s 16.30 s [-1.0%; +0.8%] (no difference)

Commit: 7e138a4d · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@pr-commenter

pr-commenter Bot commented Nov 24, 2026

Copy link
Copy Markdown

Kafka / producer-benchmark

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master alejandro.gonzalez/APPSEC-71631-libsqreen-17.7.1
git_commit_date 1795508165 1795508679
git_commit_sha 3675477 7e138a4
See matching parameters
Baseline Candidate
ci_job_date 1795509869 1795509869
ci_job_id 2293819921 2293819921
ci_pipeline_id 156028951 156028951
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
jdkVersion 11.0.31 11.0.31
jmhVersion 1.36 1.36
jvm /usr/lib/jvm/java-11-openjdk-amd64/bin/java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
jvmArgs -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=15002 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=15002 -Dhttp.nonProxyHosts=localhost *.localhost
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-8qgbjyys 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-8qgbjyys 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
vmName OpenJDK 64-Bit Server VM OpenJDK 64-Bit Server VM
vmVersion 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu

Summary

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

See unchanged results
scenario Δ mean throughput
scenario:not-instrumented/KafkaProduceBenchmark.benchProduce same
scenario:only-tracing-dsm-disabled-benchmarks/KafkaProduceBenchmark.benchProduce same
scenario:only-tracing-dsm-enabled-benchmarks/KafkaProduceBenchmark.benchProduce same

@jandro996
jandro996 marked this pull request as ready for review November 24, 2026 09:12
@jandro996
jandro996 requested review from a team as code owners November 24, 2026 09:12
@jandro996
jandro996 requested review from AlexeyKuznetsov-DD, claponcet and ygree and removed request for a team November 24, 2026 09:12

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bits Code Review: PASS

More details

The dependency declaration and all 456 affected lockfiles consistently select libsqreen 17.7.1. Whether the released artifact fixes JPMS AppSec startup remains outside the completed static validation.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 7e138a4

@pr-commenter

pr-commenter Bot commented Nov 24, 2026

Copy link
Copy Markdown

Kafka / consumer-benchmark

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master alejandro.gonzalez/APPSEC-71631-libsqreen-17.7.1
git_commit_date 1795508165 1795508679
git_commit_sha 3675477 7e138a4
See matching parameters
Baseline Candidate
ci_job_date 1795510063 1795510063
ci_job_id 2293819922 2293819922
ci_pipeline_id 156028951 156028951
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
jdkVersion 11.0.31 11.0.31
jmhVersion 1.36 1.36
jvm /usr/lib/jvm/java-11-openjdk-amd64/bin/java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
jvmArgs -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=15002 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=15002 -Dhttp.nonProxyHosts=localhost *.localhost
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-qikxbg9l 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-qikxbg9l 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
vmName OpenJDK 64-Bit Server VM OpenJDK 64-Bit Server VM
vmVersion 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu

Summary

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

See unchanged results
scenario Δ mean throughput
scenario:not-instrumented/KafkaConsumerBenchmark.benchConsume same
scenario:only-tracing-dsm-disabled-benchmarks/KafkaConsumerBenchmark.benchConsume same
scenario:only-tracing-dsm-enabled-benchmarks/KafkaConsumerBenchmark.benchConsume same

@jandro996
jandro996 added this pull request to the merge queue Nov 24, 2026
@dd-octo-sts

dd-octo-sts Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-24 09:27:33 UTC ℹ️ Start processing command /merge


2026-11-24 09:27:37 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-11-24 10:20:12 UTC ℹ️ MergeQueue: This merge request was merged

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 24, 2026
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 941aadd into master Nov 24, 2026
695 of 701 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the alejandro.gonzalez/APPSEC-71631-libsqreen-17.7.1 branch November 24, 2026 10:20
@github-actions github-actions Bot added this to the 1.70.0 milestone Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: asm waf Application Security Management (WAF) type: bug fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants