You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AppSec] Update waf and ruleset 1.3.0 (DataDog#2638)
* First update classes
* Update of the waf
* Waf tests and init fixed
* change snapshots and obfuscate values
* Adding some integration tests for initialization
* update waf to 1.3.0
* Skip cookies tests because of new ruleset
* Fix tests to not run parallel and snapshots
Fixing tests to match 1.3.0
fix snapshots
* fix snapshots
* Response to comments
* Response to 2nd round of comments
Add default rule file
* fix initialization
* Return if ddwafObjectStruct from resultsetinfo is not a map, but it should be a map coming from the waf
Log.Warning<int,int>("EncodeList: list too long, it will be truncated, count: {Count}, MaxMapOrArrayLength {MaxMapOrArrayLength}",count,WafConstants.MaxMapOrArrayLength);
Log.Warning<int,int>("EncodeList: list too long, it will be truncated, count: {Count}, MaxMapOrArrayLength {MaxMapOrArrayLength}",count,WafConstants.MaxContainerSize);
Log.Warning<int,int>("EncodeDictionary: list too long, it will be truncated, count: {Count}, MaxMapOrArrayLength {MaxMapOrArrayLength}",count,WafConstants.MaxMapOrArrayLength);
Log.Warning<int,int>("EncodeDictionary: list too long, it will be truncated, count: {Count}, MaxMapOrArrayLength {MaxMapOrArrayLength}",count,WafConstants.MaxContainerSize);
Log.Error("DDAS-0003-03: AppSec could not read the rule file {rulesFile}. Reason: All rules are invalid. AppSec will not run any protections in this application.",rulesFile);
47
+
}
48
+
else
49
+
{
50
+
Log.Information("DDAS-0015-00: AppSec loaded {loadedRules} from file {rulesFile}.",initResult.LoadedRules,rulesFile);
51
+
}
52
+
53
+
if(initResult.HasErrors)
54
+
{
55
+
varsb=StringBuilderCache.Acquire(0);
56
+
sb.Append($"WAF initialization failed. Some rules are invalid in rule file {rulesFile}:");
0 commit comments