DataDog / libddwaf-rb

Bindings to libddwaf for Ruby
Other
0 stars 1 forks source link

[APPSEC-8456] Release 1.8.2 #23

Closed GustavoCaso closed 1 year ago

GustavoCaso commented 1 year ago

The release of 1.8.2 comes with some breaking changes:

The Datadog::AppSec::WAF::LibDDWAF.ddwaf_required_rule_data_ids is also deprecated.

The methods update_rule_data, and toggle_rules are been deprecated in favour of Datadog::AppSec::WAF::Handle.update

All updates to an existing handle must be down over Datadog::AppSec::WAF::Handle.update unified method. This expects a Datadog::AppSec::WAF::Handle instance and the data to update. If the update succeeds, it will return a new instance of Datadog::AppSec::WAF::Handle with updated rules information. If it is not successful, it will return nil.

The data is a hash that can include the keys: rules, rules_override, exclusions., and rules_data. For more detailed information on the expected values for an update please refer to the UPGRADE guide from libddwaf