-
Notifications
You must be signed in to change notification settings - Fork 3
Update libddwaf to v1.24.1 #137
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
base: main
Are you sure you want to change the base?
Conversation
it('should throw a type error when updating a WAF instance with invalid arguments', () => { | ||
const waf = new DDWAF(rules) | ||
assert.throws(() => waf.update('string'), new TypeError('First argument must be an object')) | ||
describe('Remove config', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it's also good to check waf.configPaths
value after each remove
waf.dispose() | ||
assert.throws(() => waf.update(rules), new Error('Could not update a disposed WAF instance')) | ||
}) | ||
describe('Update config', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we have to check that the old handle still alive when an new empty config (wrong) is applied ?
What does this PR do?
libddwaf
to v1.24.1Motivation
libddwaf
changed its interface in v1.23.0 with breaking changes in order to move the configuration update management from the tracer to the library.Additional Notes
Upgrading guide