-
Notifications
You must be signed in to change notification settings - Fork 10k
[WAF] Update Firewall for AI #26289
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
Merged
+518
−292
Merged
[WAF] Update Firewall for AI #26289
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,107 +86,128 @@ Cloudflare will only add authentication labels to endpoints with successful resp | |
| ## Create a label | ||
|
|
||
| <Tabs syncKey="dashNewNav"> | ||
| <TabItem label="Old dashboard"> | ||
| <Steps> | ||
| 1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/), and select your account and domain. | ||
| 2. Go to **Security** > **Settings** > **Labels**. | ||
| 3. Under **Security labels**, select **Create label**. | ||
| 4. Name the label and add an optional label description. | ||
| 5. Apply the label to your selected endpoints. | ||
| 6. Select **Create label**. | ||
| </Steps> | ||
|
|
||
| Alternatively, you can create a user-defined label via Endpoint Management in API Shield: | ||
|
|
||
| <Steps> | ||
| 1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/), and select your account and domain. | ||
| 2. Go to **Security** > **Settings** > **Labels**. | ||
| 3. Choose the endpoint that you want to label. | ||
| 4. Select **Edit labels**. | ||
| 5. Under **User**, select **Create user label**. | ||
| 6. Enter the label name. | ||
| 7. Select **Create**. | ||
| </Steps> | ||
| </TabItem> | ||
| <TabItem label="New dashboard" icon="rocket"> | ||
| <Steps> | ||
| 1. In the Cloudflare dashboard, go to the **Security Settings** page. | ||
|
|
||
| <DashButton url="/?to=/:account/:zone/security/settings" /> | ||
| 2. Filter by **API abuse**. | ||
| 3. Under **Endpoint labels**, select **Manage labels**. | ||
| 4. Name the label and add an optional label description. | ||
| 5. Apply the label to your selected endpoints. | ||
| 6. Select **Create label**. | ||
| </Steps> | ||
| Alternatively, you can create a user-defined label via **Security** > **Web Assets**. | ||
| <Steps> | ||
| 1. In the Cloudflare dashboard, go to the **Web Assets** page. | ||
|
|
||
| <DashButton url="/?to=/:account/:zone/security/web-assets" /> | ||
| 2. Go to the **Endpoints** tab. | ||
| 3. Choose the endpoint that you want to label. | ||
| 4. Select **Edit endpoint labels**. | ||
| 5. Under **User**, select **Create user label**. | ||
| 6. Enter the label name. | ||
| 7. Select **Create**. | ||
| </Steps> | ||
| </TabItem> | ||
| <TabItem label="Old dashboard"> | ||
|
|
||
| <Steps> | ||
|
|
||
| 1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/), and select your account and domain. | ||
| 2. Go to **Security** > **Settings** > **Labels**. | ||
| 3. Under **Security labels**, select **Create label**. | ||
| 4. Name the label and add an optional label description. | ||
| 5. Apply the label to your selected endpoints. | ||
| 6. Select **Create label**. | ||
|
|
||
| </Steps> | ||
|
|
||
| Alternatively, you can create a user-defined label via Endpoint Management in API Shield: | ||
|
|
||
| <Steps> | ||
|
|
||
| 1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/), and select your account and domain. | ||
| 2. Go to **Security** > **Settings** > **Labels**. | ||
| 3. Choose the endpoint that you want to label. | ||
| 4. Select **Edit labels**. | ||
| 5. Under **User**, select **Create user label**. | ||
| 6. Enter the label name. | ||
| 7. Select **Create**. | ||
|
|
||
| </Steps> | ||
|
|
||
| </TabItem> | ||
| <TabItem label="New dashboard" icon="rocket"> | ||
|
|
||
| <Steps> | ||
|
|
||
| 1. In the Cloudflare dashboard, go to the **Security Settings** page. | ||
|
|
||
| <DashButton url="/?to=/:account/:zone/security/settings" /> | ||
|
|
||
| 2. Filter by **API abuse**. | ||
| 3. Under **Endpoint labels**, select **Manage labels**. | ||
| 4. Name the label and add an optional label description. | ||
| 5. Apply the label to your selected endpoints. | ||
| 6. Select **Create label**. | ||
|
|
||
| </Steps> | ||
|
|
||
| Alternatively, you can create a user-defined label via **Security** > **Web Assets**. | ||
|
|
||
| <Steps> | ||
|
|
||
| 1. In the Cloudflare dashboard, go to the **Web Assets** page. | ||
|
|
||
| <DashButton url="/?to=/:account/:zone/security/web-assets" /> | ||
|
|
||
| 2. Go to the **Endpoints** tab. | ||
| 3. Choose the endpoint that you want to label. | ||
| 4. Select **Edit endpoint labels**. | ||
| 5. Under **User**, select **Create user label**. | ||
| 6. Enter the label name. | ||
| 7. Select **Create**. | ||
|
|
||
| </Steps> | ||
|
|
||
| </TabItem> | ||
| </Tabs> | ||
|
|
||
| ## Apply a label to an individual endpoint | ||
|
|
||
| <Tabs syncKey="dashNewNav"> | ||
| <TabItem label="Old dashboard"> | ||
| <Steps> | ||
| 1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/), and select your account and domain. | ||
| 2. Go to **Security** > **API Shield** > **Endpoint Management**. | ||
| 3. Choose the endpoint that you want to label. | ||
| 4. Select **Edit labels**. | ||
| 5. Add the label(s) that you want to use for the endpoint from the list of managed and user-defined labels. | ||
| 6. Select **Save labels**. | ||
| </Steps> | ||
| </TabItem> | ||
| <TabItem label="New dashboard" icon="rocket"> | ||
| <Steps> | ||
| 1. In the Cloudflare dashboard, go to the **Web Assets** page. | ||
|
|
||
| <DashButton url="/?to=/:account/:zone/security/web-assets" /> | ||
| 2. Go to the **Endpoints** tab. | ||
| 3. Choose the endpoint that you want to label. | ||
| 4. Select **Edit endpoint labels**. | ||
| 5. Add the label(s) that you want to use for the endpoint from the list of managed and user-defined labels. | ||
| 6. Select **Save labels**. | ||
| </Steps> | ||
| </TabItem> | ||
| <TabItem label="Old dashboard"> | ||
|
|
||
| <Steps> | ||
|
|
||
| <Render file="labels-add-old-nav" product="api-shield" /> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved the step-by-step instructions to a partial file. |
||
|
|
||
| </Steps> | ||
|
|
||
| </TabItem> | ||
| <TabItem label="New dashboard" icon="rocket"> | ||
|
|
||
| <Steps> | ||
|
|
||
| <Render file="labels-add" product="api-shield" /> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved the step-by-step instructions to a partial file. |
||
|
|
||
| </Steps> | ||
|
|
||
| </TabItem> | ||
| </Tabs> | ||
|
|
||
| ## Bulk apply labels to multiple endpoints | ||
|
|
||
| <Tabs syncKey="dashNewNav"> | ||
| <TabItem label="Old dashboard"> | ||
| <Steps> | ||
| 1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/), and select your account and domain. | ||
| 2. Go to **Security** > **Settings** > **Labels**. | ||
| 3. On the existing label that you want to apply to multiple endpoints, select **Bulk apply**. | ||
| 4. Choose the endpoints that you want to label by selecting its checkbox. | ||
| 5. Select **Save label**. | ||
| </Steps> | ||
| </TabItem> | ||
| <TabItem label="New dashboard" icon="rocket"> | ||
| <Steps> | ||
| 1. In the Cloudflare dashboard, go to the **Security Settings** page. | ||
|
|
||
| <DashButton url="/?to=/:account/:zone/security/settings" /> | ||
| 2. Filter by **API abuse**. | ||
| 3. On **Endpoint labels**, select **Manage labels**. | ||
| 4. On the existing label that you want to apply to multiple endpoints, select **Bulk apply**. | ||
| 5. Choose the endpoints that you want to label by selecting its checkbox. | ||
| 6. Select **Apply label**. | ||
| </Steps> | ||
| </TabItem> | ||
| <TabItem label="Old dashboard"> | ||
|
|
||
| <Steps> | ||
|
|
||
| 1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/), and select your account and domain. | ||
| 2. Go to **Security** > **Settings** > **Labels**. | ||
| 3. On the existing label that you want to apply to multiple endpoints, select **Bulk apply**. | ||
| 4. Choose the endpoints that you want to label by selecting its checkbox. | ||
| 5. Select **Save label**. | ||
|
|
||
| </Steps> | ||
|
|
||
| </TabItem> | ||
| <TabItem label="New dashboard" icon="rocket"> | ||
|
|
||
| <Steps> | ||
|
|
||
| 1. In the Cloudflare dashboard, go to the **Security Settings** page. | ||
|
|
||
| <DashButton url="/?to=/:account/:zone/security/settings" /> | ||
|
|
||
| 2. Filter by **API abuse**. | ||
| 3. On **Endpoint labels**, select **Manage labels**. | ||
| 4. On the existing label that you want to apply to multiple endpoints, select **Bulk apply**. | ||
| 5. Choose the endpoints that you want to label by selecting its checkbox. | ||
| 6. Select **Apply label**. | ||
|
|
||
| </Steps> | ||
|
|
||
| </TabItem> | ||
| </Tabs> | ||
|
|
||
| ## Availability | ||
|
|
||
| Endpoint labeling is available to all customers. | ||
| Endpoint labeling is available to all customers. | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Mostly indentation changes only.
Main change was moving two pieces of content to partial files.