Skip to content

add new cloudflare ruleset commands#44533

Merged
TheL0L merged 9 commits into
demisto:contrib/andrew-paloalto_cloudflare-ruleset-listfrom
andrew-paloalto:cloudflare-ruleset-list
Jul 2, 2026
Merged

add new cloudflare ruleset commands#44533
TheL0L merged 9 commits into
demisto:contrib/andrew-paloalto_cloudflare-ruleset-listfrom
andrew-paloalto:cloudflare-ruleset-list

Conversation

@andrew-paloalto

@andrew-paloalto andrew-paloalto commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Contributing to Cortex XSOAR Content

Make sure to register your contribution by filling the contribution registration form

The Pull Request will be reviewed only after the contribution registration form is filled.

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

@content-bot content-bot added Contribution Thank you! Contributions are always welcome! External PR Xsoar Support Level Indicates that the contribution is for XSOAR supported pack labels Jun 5, 2026
@content-bot content-bot changed the base branch from master to contrib/andrew-paloalto_cloudflare-ruleset-list June 5, 2026 15:21
@content-bot content-bot requested a review from kamalq97 June 5, 2026 15:21
@content-bot

Copy link
Copy Markdown
Contributor

Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @kamalq97 will know the proposed changes are ready to be reviewed.
For your convenience, here is a link to the contributions SLAs document.

@content-bot

Copy link
Copy Markdown
Contributor

Hi @andrew-paloalto, thanks for contributing to the XSOAR marketplace. To receive credit for your generous contribution please follow this link.

@content-bot

Copy link
Copy Markdown
Contributor

🤖 AI-Powered Code Review Available

Hi @kamalq97, you can leverage AI-powered code review to assist with this PR!

Available Commands:

  • @marketplace-ai-reviewer start review - Initiate a full AI code review
  • @marketplace-ai-reviewer re-review - Incremental review for new commits

@content-bot content-bot added Community Contribution Form Filled Whether contribution form filled or not. labels Jun 5, 2026
@kamalq97 kamalq97 requested review from TheL0L and removed request for kamalq97 June 7, 2026 08:43
@kamalq97 kamalq97 assigned TheL0L and unassigned kamalq97 Jun 7, 2026
@TheL0L TheL0L added the ready-for-ai-review The PR is ready for reviewing the PR with the AI Reviewer. label Jun 7, 2026
@marketplace-ai-reviewer marketplace-ai-reviewer removed the ready-for-ai-review The PR is ready for reviewing the PR with the AI Reviewer. label Jun 7, 2026
@marketplace-ai-reviewer

Copy link
Copy Markdown
Contributor

🤖 Analysis started. Please wait for results...

@marketplace-ai-reviewer

Copy link
Copy Markdown
Contributor
🤖 AI Review Disclaimer

This review was generated by an AI-powered tool and may contain inaccuracies. Please be advised, and we extend our sincere apologies for any inconvenience this may cause.

@marketplace-ai-reviewer marketplace-ai-reviewer 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.

Hi! Thanks for your contribution adding new ruleset commands to the Cloudflare WAF integration. I've left a few notes to help polish the PR, mostly focusing on standardizing descriptions and improving code robustness.

Please ensure you use .get() when accessing command arguments, add error handling for JSON parsing, and standardize the YAML descriptions (starting with "The" and ending with a period). Also, remember to update the README with the new commands and adjust the release notes version bump to reflect the new features rather than just a patch.

Thanks for your hard work!

Additionally, please address the following file-level notes:

  • Packs/CloudflareWAF/Integrations/CloudflareWAF/README.md: The new ruleset management commands are missing from the README.md.
  • Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.yml: The first key defined at the root level of the .yml file must always be name or display. Currently, the file starts with sectionorder. Please reorder the keys so that name or display is at the top.

Additionally, please ensure that the README.md file is updated to include documentation for the newly added commands (cloudflare-waf-ruleset-list, cloudflare-waf-ruleset-get, cloudflare-waf-ruleset-create, cloudflare-waf-ruleset-update, cloudflare-waf-ruleset-delete).

  • Packs/CloudflareWAF/pack_metadata.json: - The mandatory key created is missing from the pack metadata.
  • The vendor name 'Cloudflare' is missing from the keywords array.
  • Packs/CloudflareWAF/ReleaseNotes/1_0_38.md: The version bump type (patch) does not match the nature of the changes (new features).

@TheL0L please review and approve the results generated by the AI Reviewer by responding 👍 on this comment.

Comment thread Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.py
Comment thread Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.py Outdated
Comment thread Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.py Outdated
Comment thread Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.yml Outdated
Comment thread Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.yml
Comment thread Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.yml Outdated
Comment thread Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.yml Outdated
Comment thread Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.yml
Comment thread Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.yml
Comment thread Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.yml Outdated

@TheL0L TheL0L 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.

Thank you @andrew-paloalto for your contribution!

Aside from refactoring the two for-loops mentioned in the comments above, everything looks great.
Please address the remaining feedback from @marketplace-ai-reviewer so we can get this merged.

Comment thread Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.py Outdated
Comment thread Packs/CloudflareWAF/Integrations/CloudflareWAF/CloudflareWAF.py Outdated
@TheL0L TheL0L added the pending-contributor The PR is pending the response of its creator label Jun 7, 2026
@TheL0L

TheL0L commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Hi @andrew-paloalto! Just a quick heads-up that this PR will be marked as stale and closed next week. If you still want to push this through, please tackle the remaining feedback from @marketplace-ai-reviewer. Let me know if you need any help!

@TheL0L

TheL0L commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Hi @andrew-paloalto, please address the failing unit test and execute the pre-commit hooks locally. Once the build passes, we can proceed with scheduling a demo.

@TheL0L TheL0L added ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. and removed pending-contributor The PR is pending the response of its creator labels Jun 24, 2026
@content-bot

Copy link
Copy Markdown
Contributor

For the Reviewer: Trigger build request has been accepted for this contribution PR.

@content-bot

Copy link
Copy Markdown
Contributor

For the Reviewer: Successfully created a pipeline in GitLab with url: https://gitlab.xdr.pan.local/xdr/cortex-content/content/-/pipelines/10424594

@content-bot content-bot removed the ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. label Jun 24, 2026
@TheL0L TheL0L added the ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. label Jul 1, 2026
@content-bot

Copy link
Copy Markdown
Contributor

For the Reviewer: Trigger build request has been accepted for this contribution PR.

@content-bot

Copy link
Copy Markdown
Contributor

For the Reviewer: Successfully created a pipeline in GitLab with url: https://gitlab.xdr.pan.local/xdr/cortex-content/content/-/pipelines/10643509

@content-bot content-bot removed the ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. label Jul 1, 2026
@content-bot

Copy link
Copy Markdown
Contributor

Validate summary
The following errors were thrown as a part of this pr: RM110, DO106.
The following errors can be ignored: RM110.
The following errors cannot be ignored: DO106.
If the AG100 validation in the pre-commit GitHub Action fails, the pull request cannot be force-merged.
The following errors don't run as part of the nightly flow and therefore can be force merged: DO106.

Verdict: PR can be force merged from validate perspective? ❌

@TheL0L TheL0L merged commit 4d43a26 into demisto:contrib/andrew-paloalto_cloudflare-ruleset-list Jul 2, 2026
40 of 43 checks passed
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Thank you for your contribution. Your external PR has been merged and the changes are now included in one or more internal PRs for further review.

Note

Contributions containing XSIAM content (Modeling Rules, Parsing Rules, Correlation Rules, or Dashboards) are subject to an additional review process and may take longer to be merged to master.

TheL0L added a commit that referenced this pull request Jul 5, 2026
* add new cloudflare ruleset commands (#44533)

* add new cloudflare ruleset commands

* address failing tests

* ai reviewer feedback

* additional requested changes

* AI reviewed comments

* unit test fix

* ruff

* md linting

* adding additional param checks to avoid user errors

* update docker image

---------

Co-authored-by: Andrew Scott <77340714+andrew-paloalto@users.noreply.github.com>
Co-authored-by: Sergei Yakima <syakima@paloaltonetworks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution Form Filled Whether contribution form filled or not. Contribution Thank you! Contributions are always welcome! docs-approved External PR Xsoar Support Level Indicates that the contribution is for XSOAR supported pack

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants