You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: update cloudflare to use account api tokens over user api tokens (#4783)
Closes: #4759
This updates cloudflare integration docs to guide the user to use an
account api token in favour of the user api tokens. Account API tokens
are preferred over user api tokens for long running integrations.
---------
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
1. Open the [Cloudflare API Tokens page](https://dash.cloudflare.com/profile/api-tokens)
60
-
2. Click **Create Token**
61
-
3. Click **Get started** next to "Create Custom Token"
62
-
4. Configure the token:
63
-
-**Token name**: SuperPlane Integration
64
-
-**Permissions** (click "+ Add more" to add each):
65
-
- Zone / Zone / Read
66
-
- Zone / DNS / Edit
67
-
- Zone / Cache Purge / Purge
68
-
- Zone / SSL and Certificates / Edit
69
-
- Zone / Single Redirect / Edit
70
-
- Zone / Origin Rules / Edit
71
-
- Zone / Workers Routes / Edit
72
-
- Zone / Load Balancers / Edit
73
-
- Account / Workers KV Storage / Edit
74
-
- Account / Workers Scripts / Edit
75
-
- Account / Workers / Edit
76
-
- Account / Load Balancing: Monitors and Pools / Edit
77
-
- Account / Notifications / Edit
78
-
- Account / Account Settings / Edit
79
-
- Account / Cloudflare Tunnel / Edit
80
-
-**Zone Resources**: Include / All zones _(or select specific zones)_
81
-
-**Account Resources**: Include the account containing your load balancers
82
-
5. Click **Continue to summary**, then **Create Token**
83
-
6. Copy the token and paste it below
84
-
85
-
## Find your Cloudflare Account ID
86
-
87
-
The **Account ID** is required for KV storage, load balancing monitors/pools, Cloudflare Tunnels, and health alert webhooks.
88
-
89
-
1. Open the [Cloudflare dashboard](https://dash.cloudflare.com/)
90
-
2. Select the account that contains your load balancers
91
-
3. In the account home page, copy the **Account ID** from the right sidebar
92
-
4. Paste it into the **Account ID** field below
93
-
94
-
Make sure this is the same account selected in **Account Resources** when creating the API token.
95
-
96
-
> **Note**: The token is only shown once. Store it securely if needed elsewhere.
57
+
To connect Cloudflare to SuperPlane:
58
+
59
+
1. In the [Cloudflare dashboard](https://dash.cloudflare.com/), open the account you want to connect, then go to **Manage Account → Account API Tokens** and click **Create Token → Create Custom Token**. Creating an account-owned token requires **Super Administrator** access on the Cloudflare account.
60
+
2. Name the token and keep the first policy scoped to **Entire Account**. Select these permissions:
3. Click **Add policy**. In the new policy, change the scope dropdown from **Entire Account** to **All Domains** or **Specified Domains** for only the domains SuperPlane should manage. The DNS and zone rows below are only available after switching this policy to a domain scope:
70
+
-**DNS & Zones** → **Zone** → **Read**
71
+
-**DNS & Zones** → **DNS** → **Edit**
72
+
-**Caching** → **Cache Purge** → **Purge**
73
+
-**SSL and Certificates** → **SSL and Certificates** → **Edit**
1. Open the [Cloudflare API Tokens page](https://dash.cloudflare.com/profile/api-tokens)
182
-
2. Click **Create Token**
183
-
3. Click **Get started** next to "Create Custom Token"
184
-
4. Configure the token:
185
-
- **Token name**: SuperPlane Integration
186
-
- **Permissions** (click "+ Add more" to add each):
187
-
- Zone / Zone / Read
188
-
- Zone / DNS / Edit
189
-
- Zone / Cache Purge / Purge
190
-
- Zone / SSL and Certificates / Edit
191
-
- Zone / Single Redirect / Edit
192
-
- Zone / Origin Rules / Edit
193
-
- Zone / Workers Routes / Edit
194
-
- Zone / Load Balancers / Edit
195
-
- Account / Workers KV Storage / Edit
196
-
- Account / Workers Scripts / Edit
197
-
- Account / Workers / Edit
198
-
- Account / Load Balancing: Monitors and Pools / Edit
199
-
- Account / Notifications / Edit
200
-
- Account / Account Settings / Edit
201
-
- Account / Cloudflare Tunnel / Edit
202
-
- **Zone Resources**: Include / All zones _(or select specific zones)_
203
-
- **Account Resources**: Include the account containing your load balancers
204
-
5. Click **Continue to summary**, then **Create Token**
205
-
6. Copy the token and paste it below
206
-
207
-
## Find your Cloudflare Account ID
208
-
209
-
The **Account ID** is required for KV storage, load balancing monitors/pools, Cloudflare Tunnels, and health alert webhooks.
210
-
211
-
1. Open the [Cloudflare dashboard](https://dash.cloudflare.com/)
212
-
2. Select the account that contains your load balancers
213
-
3. In the account home page, copy the **Account ID** from the right sidebar
214
-
4. Paste it into the **Account ID** field below
215
-
216
-
Make sure this is the same account selected in **Account Resources** when creating the API token.
217
-
218
-
> **Note**: The token is only shown once. Store it securely if needed elsewhere.`
179
+
return`To connect Cloudflare to SuperPlane:
180
+
181
+
1. In the [Cloudflare dashboard](https://dash.cloudflare.com/), open the account you want to connect, then go to **Manage Account → Account API Tokens** and click **Create Token → Create Custom Token**. Creating an account-owned token requires **Super Administrator** access on the Cloudflare account.
182
+
2. Name the token and keep the first policy scoped to **Entire Account**. Select these permissions:
3. Click **Add policy**. In the new policy, change the scope dropdown from **Entire Account** to **All Domains** or **Specified Domains** for only the domains SuperPlane should manage. The DNS and zone rows below are only available after switching this policy to a domain scope:
192
+
- **DNS & Zones** → **Zone** → **Read**
193
+
- **DNS & Zones** → **DNS** → **Edit**
194
+
- **Caching** → **Cache Purge** → **Purge**
195
+
- **SSL and Certificates** → **SSL and Certificates** → **Edit**
0 commit comments