Skip to content

Default obfuscation regexp update #8937

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

Draft
wants to merge 4 commits into
base: sezen.leblay/upgrade-libddwaf-java-1.23
Choose a base branch
from

Conversation

sezen-datadog
Copy link
Contributor

@sezen-datadog sezen-datadog commented Jun 6, 2025

What Does This Do

Updates libddwaf-java version to have the new regex key for obfuscation

Motivation

Additional Notes

Contributor Checklist

Jira ticket: APPSEC-57270

@sezen-datadog sezen-datadog force-pushed the sezen.leblay/APPSEC-57270-default-regex-change branch from f0f5955 to 5186564 Compare June 6, 2025 09:40
Comment on lines 122 to 130
if (wafHandle != null && !wafHandle.isOnline()) {
wafHandle.close();
}
if (wafContext != null && !wafContext.isOnline()) {
wafContext.close();
}
if (wafBuilder != null && !wafBuilder.isOnline()) {
wafBuilder.close();
}
Copy link
Contributor

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD Jun 6, 2025

Choose a reason for hiding this comment

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

I think the isOnline() check might not need to be negated here. Could you please double-check this logic?

Suggested change
if (wafHandle != null && !wafHandle.isOnline()) {
wafHandle.close();
}
if (wafContext != null && !wafContext.isOnline()) {
wafContext.close();
}
if (wafBuilder != null && !wafBuilder.isOnline()) {
wafBuilder.close();
}
if (wafHandle != null && wafHandle.isOnline()) {
wafHandle.close();
}
if (wafContext != null && wafContext.isOnline()) {
wafContext.close();
}
if (wafBuilder != null && wafBuilder.isOnline()) {
wafBuilder.close();
}

Copy link
Member

Choose a reason for hiding this comment

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

Note this is a stacked PR. These changes are from: #8654

Copy link
Member

Choose a reason for hiding this comment

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

But good point. I do think this logic is reversed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

corrected in the original PR, thank you!

@sezen-datadog sezen-datadog changed the base branch from master to sezen.leblay/upgrade-libddwaf-java-1.23 June 10, 2025 09:18
Signed-off-by: sezen.leblay <[email protected]>
@sezen-datadog sezen-datadog force-pushed the sezen.leblay/APPSEC-57270-default-regex-change branch from 5186564 to 24555b6 Compare June 10, 2025 10:03
Signed-off-by: sezen.leblay <[email protected]>
@sezen-datadog sezen-datadog force-pushed the sezen.leblay/upgrade-libddwaf-java-1.23 branch from 6c47b1e to 42f13c9 Compare June 10, 2025 11:37
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.

3 participants