diff --git a/CHANGELOG.md b/CHANGELOG.md index 28789ea48..86f0a3f32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # libddwaf release +### v1.0.13 (unstable) - 2021/10/11 +- Add support for ruleset format v2.1. +- Update fuzzer. +- Fix addresses with key path missing from ddwaf\_required\_addresses. +- Improve ruleset parsing logging. + ### v1.0.12 (unstable) - 2021/10/01 - Add libinjection SQL and XSS rule processors. - Add support for ruleset format v1.1 (adding is\_sqli and is\_xss operators). diff --git a/src/PowerWAF.hpp b/src/PowerWAF.hpp index b30517608..ea330752a 100644 --- a/src/PowerWAF.hpp +++ b/src/PowerWAF.hpp @@ -32,7 +32,7 @@ struct PowerWAF static PowerWAF* fromConfig(const ddwaf_object rules, const ddwaf_config* config); - static constexpr ddwaf_version waf_version { 1, 0, 12 }; + static constexpr ddwaf_version waf_version { 1, 0, 13 }; }; #endif /* pw_hpp */ diff --git a/src/parser/parser_v1.cpp b/src/parser/parser_v1.cpp index b82578fae..7ce1454f4 100644 --- a/src/parser/parser_v1.cpp +++ b/src/parser/parser_v1.cpp @@ -190,6 +190,9 @@ void parse(parameter::map& ruleset, PWRuleManager& ruleManager, PWManifest& mani { throw parsing_error("no valid rules found"); } + + DDWAF_DEBUG("Loaded %zu rules out of %zu available in the ruleset", + ruleManager.getNbRules(), rules.size()); } } diff --git a/src/parser/parser_v2.cpp b/src/parser/parser_v2.cpp index 0ae06a18c..239d56151 100644 --- a/src/parser/parser_v2.cpp +++ b/src/parser/parser_v2.cpp @@ -205,6 +205,9 @@ void parse(parameter::map& ruleset, PWRuleManager& ruleManager, PWManifest& mani { throw parsing_error("no valid rules found"); } + + DDWAF_DEBUG("Loaded %zu rules out of %zu available in the ruleset", + ruleManager.getNbRules(), rules.size()); } } diff --git a/tests/TestInterface.cpp b/tests/TestInterface.cpp index efa8d2e3d..3f0052db7 100644 --- a/tests/TestInterface.cpp +++ b/tests/TestInterface.cpp @@ -293,7 +293,7 @@ TEST(FunctionalTests, ddwaf_get_version) EXPECT_EQ(version.major, 1); EXPECT_EQ(version.minor, 0); - EXPECT_EQ(version.patch, 12); + EXPECT_EQ(version.patch, 13); } TEST(FunctionalTests, ddwaf_runNull) diff --git a/version b/version index 492b167a6..9256e2880 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.0.12 \ No newline at end of file +1.0.13 \ No newline at end of file