- Updated the GenerateConfig function to replace 'rules_file' with 'include' for WAF handlers, aligning with the coraza-caddy plugin requirements. - Modified related tests to check for the presence of 'include' instead of 'rules_file'. - Enhanced the ApplyConfig method to prepend necessary Coraza directives to ruleset files if not already present. - Added tests to verify that the SecRuleEngine directives are correctly prepended and that existing directives are not duplicated. - Implemented debug logging for generated config size and content.
110 KiB
110 KiB