Skip to content

[WAF] Document Application Profiles and Schema Profile workflow - #32573

Open
danielegm wants to merge 3 commits into
productionfrom
docs/application-profiles
Open

[WAF] Document Application Profiles and Schema Profile workflow#32573
danielegm wants to merge 3 commits into
productionfrom
docs/application-profiles

Conversation

@danielegm

Copy link
Copy Markdown
Collaborator

Summary

Screenshots (optional)

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/api-shield/ @cloudflare/appsec-reviewers, @elithrar, @xmflsct, @danielegm, @cloudflare/product-owners, @janrueth, @djhworld, @alexpovel, @mattrighetti, @abdelrahman-t
/src/content/docs/security/ @cloudflare/appsec-reviewers, @elithrar, @xmflsct, @danielegm, @cloudflare/product-owners, @davejbax, @zrkn, @hemanthk1099
/src/content/docs/waf/ @worenga, @cloudflare/firewall, @cloudflare/appsec-reviewers, @elithrar, @cloudflare/product-owners, @hsaxenaCF, @danielegm
* @cloudflare/product-owners

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Preview URL: https://0a3a97e6.preview.developers.cloudflare.com
Preview Branch URL: https://docs-application-profiles.preview.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/api-shield/security/schema-validation/api/ https://docs-application-profiles.preview.developers.cloudflare.com/api-shield/security/schema-validation/api/
https://developers.cloudflare.com/api-shield/security/schema-validation/ https://docs-application-profiles.preview.developers.cloudflare.com/api-shield/security/schema-validation/
https://developers.cloudflare.com/waf/detections/application-profiles/enforce-profiles-with-custom-rules/ https://docs-application-profiles.preview.developers.cloudflare.com/waf/detections/application-profiles/enforce-profiles-with-custom-rules/
https://developers.cloudflare.com/api-shield/management-and-monitoring/endpoint-management/schema-learning/ https://docs-application-profiles.preview.developers.cloudflare.com/api-shield/management-and-monitoring/endpoint-management/schema-learning/
https://developers.cloudflare.com/waf/detections/application-profiles/schema-profiles/ https://docs-application-profiles.preview.developers.cloudflare.com/waf/detections/application-profiles/schema-profiles/
https://developers.cloudflare.com/waf/detections/application-profiles/get-started/ https://docs-application-profiles.preview.developers.cloudflare.com/waf/detections/application-profiles/get-started/
https://developers.cloudflare.com/api-shield/management-and-monitoring/endpoint-management/ https://docs-application-profiles.preview.developers.cloudflare.com/api-shield/management-and-monitoring/endpoint-management/
https://developers.cloudflare.com/api-shield/get-started/ https://docs-application-profiles.preview.developers.cloudflare.com/api-shield/get-started/
https://developers.cloudflare.com/waf/detections/application-profiles/ https://docs-application-profiles.preview.developers.cloudflare.com/waf/detections/application-profiles/
https://developers.cloudflare.com/waf/detections/application-profiles/analyze-profile-detections/ https://docs-application-profiles.preview.developers.cloudflare.com/waf/detections/application-profiles/analyze-profile-detections/
https://developers.cloudflare.com/api-shield/reference/terraform/ https://docs-application-profiles.preview.developers.cloudflare.com/api-shield/reference/terraform/
https://developers.cloudflare.com/waf/detections/application-profiles/fields/ https://docs-application-profiles.preview.developers.cloudflare.com/waf/detections/application-profiles/fields/
https://developers.cloudflare.com/security/web-assets/manage-operations/ https://docs-application-profiles.preview.developers.cloudflare.com/security/web-assets/manage-operations/
https://developers.cloudflare.com/api-shield/ https://docs-application-profiles.preview.developers.cloudflare.com/api-shield/
https://developers.cloudflare.com/api-shield/plans/ https://docs-application-profiles.preview.developers.cloudflare.com/api-shield/plans/

@danielegm
danielegm marked this pull request as ready for review August 7, 2026 15:25
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Review

⚠️ 3 warnings, 💡 3 suggestions found in commit 0a3a97e.

👉 Fix in your agent 👈
Fix the following review findings in PR #32573 (https://github.com/cloudflare/cloudflare-docs/pull/32573).

Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g. the fix requires disproportionate effort for minimal benefit,
  or the finding is factually incorrect), explain why
- If you need clarification before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.

The comment must come before the commit — the bot reads PR comments when a new
push triggers a review, so skip comments posted after the push will be missed.

---

## Code Review

### Suggestions (2)

#### CR-0e8fed966a81 · Maintain consistent ordering in data files
- **File:** `src/content/fields/index.yaml` line 518
- **Issue:** The new `cf.schema_validation.learned.violated` and `cf.schema_validation.uploaded.violated` entries are inserted between `cf.api_gateway.request_violates_schema` and `cf.api_gateway.fallthrough_detected` in the head file. If entries are ordered alphabetically, the `cf.api_gateway.*` block should remain contiguous.
- **Fix:** Verify the intended sort order. If alphabetical, move the `cf.schema_validation.*` entries to their correct position after all `cf.api_gateway.*` entries.

#### CR-bf03ff625aeb · Clear and concise field summaries
- **File:** `src/content/fields/index.yaml` line 522
- **Issue:** The summary says "Returns `true` when an evaluated request [violates the learned profile]...". The phrase "an evaluated request" is awkward.
- **Fix:** Rephrase to "Returns `true` when a request [violates the learned profile]..." or "Indicates whether a request [violates the learned profile]..." to match the style of other `cf.*` boolean fields.

---

## Conventions

### Warnings (2)

#### CV-4f9d1dc4ed27 · Description explains the work
- **File:** PR-level finding
- **Issue:** The PR description contains only the unmodified pull request template with an empty Summary section and no human-written explanation of the changes.
- **Fix:** Add a brief human-written summary explaining what the PR updates, such as the new Application Profiles and Schema Profiles documentation pages and any related edits to existing API Shield and WAF content.

#### CV-e42ad63a77eb · Scope accuracy
- **File:** PR-level finding
- **Issue:** The PR adds six new MDX pages under waf/detections/application-profiles, rewrites material in multiple api-shield/schema-validation pages, and touches waf/index.mdx and src/content/fields/index.yaml, none of which are mentioned in the description.
- **Fix:** Update the description to mention the core changes: new Application Profiles documentation, the new Schema Profiles workflow, and the associated updates to API Shield/WAF pages and fields metadata.

---

## Style Guide Review

### Warnings (1)

#### SG-9ff5493e1e37 · Internal links must use a trailing slash
- **File:** `src/content/docs/waf/detections/application-profiles/get-started.mdx` line 37
- **Issue:** Link uses `/security/web-assets/manage-operations/#add-operations-manually` without a trailing slash before the anchor.
- **Fix:** Change the link to `/security/web-assets/manage-operations/#add-operations-manually`.

### Suggestions (1)

#### SG-27b9ba7eb4e7 · Bullet list has fewer than three items
- **File:** `src/content/docs/waf/detections/application-profiles/index.mdx` line 47
- **Issue:** Line 47 starts a bulleted list with only two items (lines 47-48).
- **Fix:** Consider writing the two "See also" links as prose instead of a bullet list.

Code Review

This code review is in beta and may not always be helpful — use your judgment.

Suggestions (2)
File Issue
fields/index.yaml line 518 Maintain consistent ordering in data files — The new cf.schema_validation.learned.violated and cf.schema_validation.uploaded.violated entries are inserted between cf.api_gateway.request_violates_schema and cf.api_gateway.fallthrough_detected in the head file. If entries are ordered alphabetically, the cf.api_gateway.\* block should remain contiguous. Fix: Verify the intended sort order. If alphabetical, move the cf.schema_validation.\* entries to their correct position after all cf.api_gateway.\* entries.
fields/index.yaml line 522 Clear and concise field summaries — The summary says "Returns true when an evaluated request [violates the learned profile]...". The phrase "an evaluated request" is awkward. Fix: Rephrase to "Returns true when a request [violates the learned profile]..." or "Indicates whether a request [violates the learned profile]..." to match the style of other cf.\* boolean fields.

Conventions

Warnings (2)
File Issue
PR Description explains the work — The PR description contains only the unmodified pull request template with an empty Summary section and no human-written explanation of the changes. Fix: Add a brief human-written summary explaining what the PR updates, such as the new Application Profiles and Schema Profiles documentation pages and any related edits to existing API Shield and WAF content.
PR Scope accuracy — The PR adds six new MDX pages under waf/detections/application-profiles, rewrites material in multiple api-shield/schema-validation pages, and touches waf/index.mdx and src/content/fields/index.yaml, none of which are mentioned in the description. Fix: Update the description to mention the core changes: new Application Profiles documentation, the new Schema Profiles workflow, and the associated updates to API Shield/WAF pages and fields metadata.

Style Guide Review

Warnings (1)
File Issue
waf/detections/application-profiles/get-started.mdx line 37 Internal links must use a trailing slash — Link uses /security/web-assets/manage-operations/#add-operations-manually without a trailing slash before the anchor. Fix: Change the link to /security/web-assets/manage-operations/#add-operations-manually.
Suggestions (1)
File Issue
waf/detections/application-profiles/index.mdx line 47 Bullet list has fewer than three items — Line 47 starts a bulleted list with only two items (lines 47-48). Fix: Consider writing the two "See also" links as prose instead of a bullet list.
Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.
/ignore-review-limit Permanently lifts the 2-review automatic limit for this PR. Future pushes will trigger reviews as normal.
/disable-auto-review Stops automatic reviews from triggering on future pushes to this PR. Codeowners can still run /review or /full-review manually.
/rebase Rebases the PR branch against production. On conflict, attempts to resolve automatically using AI. Stops with an explanation if confidence is not high enough.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants