Skip to content

Commit 77de468

Browse files
added custom auth in all actions of cloudflare integration (#4725)
* added custom auth in all actions of cloudflare integration * Updates from review --------- Co-authored-by: John Pipkin <[email protected]>
1 parent 4276af8 commit 77de468

File tree

5 files changed

+29
-12
lines changed

5 files changed

+29
-12
lines changed

docs/platform-services/automation-service/app-central/integrations/cloudflare.md

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
66

77
<img src={useBaseUrl('/img/platform-services/automation-service/app-central/logos/cloudflare.png')} alt="cloudflare" width="100"/>
88

9-
***Version: 1.1
10-
Updated: Jul 06, 2023***
9+
***Version: 1.2
10+
Updated: Nov 05, 2024***
1111

1212
Cloudflare makes everything you connect to the Internet secure, private, fast, and reliable. With using the product you can secure your websites, APIs, and internet applications, protect corporate networks, employees, and devices.
1313

@@ -35,27 +35,44 @@ Cloudflare makes everything you connect to the Internet secure, private, fast, a
3535

3636
* [Rule expressions](https://developers.cloudflare.com/ruleset-engine/rules-language/expressions/)
3737

38-
## Cloudflare configuration
38+
## Cloudflare configuration for Global API Key
3939

4040
1. Sign in in Cloudflare using your email and password.
41-
2. Go to your profile in the left menu and select My Profile.
42-
3. From the left menu select API Tokens.
43-
4. Under Global API Key is your token.
44-
5. Make sure you copy and save them.
41+
1. Go to your profile in the left menu and select My Profile.
42+
1. From the left menu select API Tokens.
43+
1. Under Global API Key is your token.
44+
1. Make sure you copy and save them.
45+
46+
## Cloudflare configuration for Custom API Token
47+
48+
1. Sign in in Cloudflare using your email and password.
49+
1. Go to your profile in the left menu and select My Profile.
50+
1. From the left menu select API Tokens.
51+
1. Click Create Token and select Create Custom Token.
52+
1. Set Permissions: Choose the necessary permissions based on your use case. For more details, check the [Permissions](https://developers.cloudflare.com/fundamentals/api/reference/permissions/#account-permissions)
53+
1. Confirm your settings, then click Continue to summary and Create Token.
54+
1. Copy the token securely as it will only be displayed once.
55+
4556

4657
## Cloudflare in Automation Service and Cloud SOAR
4758

4859
1. Access integrations in the [Automation Service](/docs/platform-services/automation-service/automation-service-integrations/#view-integrations) or [Cloud SOAR](/docs/cloud-soar/automation).
49-
1. After the list of the integrations appears, search/look for the integration and click on the row.
50-
1. The integration details will appear. Click on the **"+"** button to add new Resource. <br/><img src={useBaseUrl('/img/platform-services/automation-service/app-central/integrations/cloudflare/cloudflare-3.png')} style={{border:'1px solid gray'}} alt="cloudflare" width="400"/>
60+
1. After the list of the integrations appears, search for the integration and click on the row.
61+
1. The integration details will appear. Click on the **"+"** button to add new Resource. <br/><img src={useBaseUrl('/img/platform-services/automation-service/app-central/integrations/cloudflare/cloudflare-3.png')} style={{border:'1px solid gray'}} alt="cloudflare" width="100"/>
5162
1. Populate all the required fields (\*).
52-
1. In the API Key field, insert the previously copied key.
63+
1. Select the **Token Type** (the default is set as **global**).
64+
1. In the **API Key** field, insert the previously copied key.
5365
1. Click **Save**.<br/><img src={useBaseUrl('/img/platform-services/automation-service/app-central/integrations/cloudflare/cloudflare-4.png')} style={{border:'1px solid gray'}} alt="cloudflare" width="400"/>
54-
1. To make sure the resource is working, hover over the resource and then click the pencil icon that appears on the right.<br/><img src={useBaseUrl('/img/platform-services/automation-service/app-central/integrations/cloudflare/cloudflare-5.png')} style={{border:'1px solid gray'}} alt="cloudflare" width="400"/>
55-
1. Click **TEST SAVED SETTINGS**.<br/><img src={useBaseUrl('/img/platform-services/automation-service/app-central/integrations/cloudflare/cloudflare-6.png')} style={{border:'1px solid gray'}} alt="cloudflare" width="400"/>
66+
1. To make sure the resource is working, hover over the resource and then click **TEST** that appears on the right.<br/><img src={useBaseUrl('/img/platform-services/automation-service/app-central/integrations/cloudflare/cloudflare-5.png')} style={{border:'1px solid gray'}} alt="cloudflare" width="200"/>
5667
1. You should receive a successful notification in the bottom right corner.<br/><img src={useBaseUrl('/img/platform-services/automation-service/app-central/integrations/cloudflare/cloudflare-7.png')} style={{border:'1px solid gray'}} alt="cloudflare" width="400"/>
5768

69+
70+
## Notes
71+
72+
* Email is needed only when using global API token. Any valid email will work with custom token.
73+
5874
## Change Log
5975

6076
* May 5, 2022 - First upload
6177
* July 6, 2023 (v1.1) - Updated the integration with Environmental Variables
78+
* November 5, 2024 (v1.2) - Added Custom token auth in all actions
4.77 KB
Loading
86.9 KB
Loading
6.03 KB
Loading
17.3 KB
Loading

0 commit comments

Comments
 (0)