Skip to content

feat: extend chaitin-waf plugin functionalities #9945#12029

Merged
Baoyuantop merged 10 commits into
apache:masterfrom
AlyHKafoury:master
Mar 28, 2025
Merged

feat: extend chaitin-waf plugin functionalities #9945#12029
Baoyuantop merged 10 commits into
apache:masterfrom
AlyHKafoury:master

Conversation

@AlyHKafoury

@AlyHKafoury AlyHKafoury commented Mar 9, 2025

Copy link
Copy Markdown
Contributor

Description

Fixed #9945

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

Comment thread t/plugin/chaitin-waf.t Outdated
@AlyHKafoury
AlyHKafoury marked this pull request as ready for review March 10, 2025 16:48
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request plugin labels Mar 10, 2025
@AlyHKafoury
AlyHKafoury marked this pull request as draft March 10, 2025 16:49
@AlyHKafoury
AlyHKafoury marked this pull request as ready for review March 10, 2025 17:15
@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Mar 10, 2025
@AlyHKafoury

Copy link
Copy Markdown
Contributor Author

@membphis I believe this is ready for review

@AlyHKafoury

Copy link
Copy Markdown
Contributor Author

@moonming A gentle ping that this PR is ready for review

@moonming

Copy link
Copy Markdown
Member

@moonming A gentle ping that this PR is ready for review

Cool, I will review your PR, thanks for your contribution

@AlyHKafoury

Copy link
Copy Markdown
Contributor Author

I will Fix linting issues

@Baoyuantop Baoyuantop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! There are some suggestions for improvement on the documents.

Comment thread docs/en/latest/plugins/chaitin-waf.md Outdated
Comment thread docs/en/latest/plugins/chaitin-waf.md Outdated
Comment thread docs/en/latest/plugins/chaitin-waf.md Outdated
@AlyHKafoury

Copy link
Copy Markdown
Contributor Author

@Baoyuantop Thank you for your comments, I applied them

@Baoyuantop

Copy link
Copy Markdown
Contributor

@Baoyuantop Thank you for your comments, I applied them

Can you help fix the failed CI? If it's unstable, let us know and we'll re-run it.

@AlyHKafoury

AlyHKafoury commented Mar 12, 2025 via email

Copy link
Copy Markdown
Contributor Author

@AlyHKafoury

Copy link
Copy Markdown
Contributor Author

@Baoyuantop A gentle reminder

Baoyuantop
Baoyuantop previously approved these changes Mar 13, 2025

@Baoyuantop Baoyuantop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, waiting for others to review

@Baoyuantop
Baoyuantop requested review from membphis and moonming March 13, 2025 02:34
moonming
moonming previously approved these changes Mar 19, 2025
Comment thread apisix/plugins/chaitin-waf.lua Outdated
Comment thread apisix/plugins/chaitin-waf.lua Outdated
@AlyHKafoury
AlyHKafoury dismissed stale reviews from moonming and Baoyuantop via 471526a March 21, 2025 11:51
@AlyHKafoury

Copy link
Copy Markdown
Contributor Author

@AlinsRan @Baoyuantop @moonming @membphis I completed the latest requested changes, and the tests pass locally so please review and help run the CI tests

@AlyHKafoury

Copy link
Copy Markdown
Contributor Author

This CI fail run is unstable, please restart the failed job

@Baoyuantop

Copy link
Copy Markdown
Contributor

cc @membphis help review

Comment on lines +57 to +58
enum = { "off", "monitor", "block", nil },
default = nil,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to explicitly specify nil in enum and default value. When this field is not declared as required in the JSON schema, it can be nil, and the default value is also nil.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not affect the use of this feature, which is merged first and then an issue is created to track it.

Comment on lines +103 to +104
enum = { "off", "monitor", "block", nil },
default = nil,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request plugin size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

feat: extend chaitin-waf plugin functionalities

5 participants