Skip to content

Rename block_id to security_response_id & Release v1.30.0#473

Merged
Anilm3 merged 2 commits into
libddwaf-1.30.0from
anilm3/block_id_to_security_response_id
Oct 28, 2025
Merged

Rename block_id to security_response_id & Release v1.30.0#473
Anilm3 merged 2 commits into
libddwaf-1.30.0from
anilm3/block_id_to_security_response_id

Conversation

@Anilm3

@Anilm3 Anilm3 commented Oct 28, 2025

Copy link
Copy Markdown
Collaborator

This PR simply renames block_id to security_response_id and prepares a new minor release. The reason for a minor rather than a patch is to signify a potentially breaking change in the interface.

@Anilm3
Anilm3 requested a review from a team as a code owner October 28, 2025 09:16
estringana
estringana previously approved these changes Oct 28, 2025
jandro996
jandro996 previously approved these changes Oct 28, 2025

@jandro996 jandro996 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the update :)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

block_request: {
grpc_status_code: 10,
status_code: 200,
type: auto,
block_id: "regex:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-1b[a-f0-9]{2}-[a-f0-9]{12}$",

P1 Badge Update validator action schema expectations to security_response_id

The commit changed every serialized blocking action to emit security_response_id, but the validator scenario still asserts on the old block_id field. Running the validator will now fail because the produced JSON no longer contains block_id. The expectation should be migrated to security_response_id to match the new API.


block_request: {
status_code: 403,
type: auto,
grpc_status_code: 10,
block_id: "regex:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-1b[a-f0-9]{2}-[a-f0-9]{12}$"

P1 Badge Rename block_id expectation in rule filter validator test

This validator test still expects block_id in the action parameters. After this commit all blocking actions emit a security_response_id field instead, so the validator run will report a mismatch. Update the test to check for security_response_id to keep the suite aligned with the new field name.

ℹ️ 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".

@Anilm3
Anilm3 dismissed stale reviews from jandro996 and estringana via 33b856a October 28, 2025 09:23
@Anilm3
Anilm3 force-pushed the anilm3/block_id_to_security_response_id branch from 38d72b1 to 33b856a Compare October 28, 2025 09:23
@Anilm3
Anilm3 enabled auto-merge (squash) October 28, 2025 09:31
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 85.28%. Comparing base (bea83f9) to head (33b856a).

Files with missing lines Patch % Lines
src/configuration/actions_parser.cpp 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##           libddwaf-1.30.0     #473      +/-   ##
===================================================
+ Coverage            85.23%   85.28%   +0.05%     
===================================================
  Files                  186      186              
  Lines                 9387     8959     -428     
  Branches              4170     4131      -39     
===================================================
- Hits                  8001     7641     -360     
+ Misses                 552      501      -51     
+ Partials               834      817      -17     
Flag Coverage Δ
waf_test 85.28% <66.66%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown

Artifact Size Comparison 📦

Artifact Previous Release This PR Difference
darwin-arm64::libddwaf.a 90005656 90006808 0.00%
darwin-arm64::libddwaf.a.stripped 4579560 4579664 0.00%
darwin-arm64::libddwaf.dylib 1963024 1963024 0.00%
darwin-universal::libddwaf.a 181419976 181421048 0.00%
darwin-universal::libddwaf.a.stripped 9765384 9765560 0.00%
darwin-universal::libddwaf.dylib 4142096 4142096 0.00%
darwin-x86_64::libddwaf.a 91414272 91414192 0.00%
darwin-x86_64::libddwaf.a.stripped 5185776 5185848 0.00%
darwin-x86_64::libddwaf.dylib 2150896 2150896 0.00%
linux-aarch64::libddwaf.a 73159494 73159398 0.00%
linux-aarch64::libddwaf.a.stripped 11852226 11852314 0.00%
linux-aarch64::libddwaf.so 2463216 2463264 0.00%
linux-armv7::libddwaf.a 64719098 64719602 0.00%
linux-armv7::libddwaf.a.stripped 10852762 10852830 0.00%
linux-armv7::libddwaf.so 2148652 2148796 0.00%
linux-i386::libddwaf.a 62842618 62843294 0.00%
linux-i386::libddwaf.a.stripped 9379954 9380114 0.00%
linux-i386::libddwaf.so 2392676 2392820 0.00%
linux-x86_64::libddwaf.a 73645934 73646022 0.00%
linux-x86_64::libddwaf.a.stripped 11671234 11671354 0.00%
linux-x86_64::libddwaf.so 2660048 2660096 0.00%
windows-arm64::ddwaf.dll 4788224 4788736 0.00%
windows-arm64::ddwaf.lib 11698 11698 0.00%
windows-arm64::ddwaf_static.lib 57913408 57913956 0.00%
windows-win32::ddwaf.dll 3368448 3368448 0.00%
windows-win32::ddwaf.lib 11922 11922 0.00%
windows-win32::ddwaf_static.lib 49534122 49534552 0.00%
windows-x64::ddwaf.dll 4101632 4101632 0.00%
windows-x64::ddwaf.lib 11698 11698 0.00%
windows-x64::ddwaf_static.lib 57409488 57410292 0.00%
windows-x86_64::libddwaf.a 6539840 6539872 0.00%
windows-x86_64::libddwaf.dll 18890291 18890291 0.00%
windows-x86_64::libddwaf.dll.a 31948 31948 0.00%

@pr-commenter

pr-commenter Bot commented Oct 28, 2025

Copy link
Copy Markdown

Benchmarks clang

Benchmark execution time: 2025-10-28 09:47:40

Comparing candidate commit 33b856a in PR branch anilm3/block_id_to_security_response_id with baseline commit bea83f9 in branch libddwaf-1.30.0.

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

@pr-commenter

pr-commenter Bot commented Oct 28, 2025

Copy link
Copy Markdown

Benchmarks gcc

Benchmark execution time: 2025-10-28 09:47:44

Comparing candidate commit 33b856a in PR branch anilm3/block_id_to_security_response_id with baseline commit bea83f9 in branch libddwaf-1.30.0.

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

@Anilm3
Anilm3 merged commit 00e895f into libddwaf-1.30.0 Oct 28, 2025
54 of 55 checks passed
@Anilm3
Anilm3 deleted the anilm3/block_id_to_security_response_id branch October 28, 2025 09:59
Anilm3 added a commit that referenced this pull request Nov 4, 2025
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.

4 participants