Skip to content

Commit 65950bc

Browse files
committed
Add compute account instructions
1 parent b9ef3ac commit 65950bc

File tree

2 files changed

+65
-21
lines changed

2 files changed

+65
-21
lines changed

src/content/docs/cloudflare-one/applications/casb/troubleshooting/troubleshoot-compute-accounts.mdx

Lines changed: 65 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,80 @@ sidebar:
55
order: 2
66
---
77

8-
import { TabItem, Tabs } from "~/components";
9-
108
Cloudflare CASB detects when integrations are unhealthy or outdated.
119

1210
Common integration issues include changes to SaaS app or cloud environment configurations, user access, or permission scope. Integrations may need to be updated to support new features or permissions.
1311

14-
## Identify unhealthy or outdated integrations
12+
## Upgrade a compute account
13+
14+
Upgrading a compute account applies the latest software features, bug fixes, and infrastructure changes to a cloud compute account. Upgrades should be run periodically to keep the compute account software up to date or when recommended by Cloudflare to address an issue.
15+
16+
To upgrade a compute account:
17+
18+
1. Download the latest Terraform configuration using the "latest templates" API route.
19+
1. Navigate to your integration in the CASB Dashboard
20+
2. Select the integration you created for cloud scanning
21+
3. You should see a "Connect a compute account" module. Click "Open Connection Instructions" Here, you'll be able to see the latest terraform that you can download
22+
2. Validate that your local machine has the AWS or GCP CLI installed
23+
3. Validate that an AWS or GCP profile is configured and set to the intended region, and using IAM credentials for a user in the intended AWS or GCP account
24+
4. Validate that the Terraform state file created during previous Terraform activities for this account is available
25+
5. Update cached version of the CDS Terraform modules: terraform init --upgrade
26+
6. Apply the downloaded terraform configuration: terraform apply
27+
28+
## Rotate API tokens
29+
30+
Rotating the API token used by the compute account is useful when there is a security or operational need to use a new API Token. Note that if the API Token is rolled in the Cloudflare Dashboard but isn't updated in the Compute Account, the Compute Account will get unhealthy and stop reporting scan results.
31+
32+
This procedure should be used whenever there is a need to updated the API Token or if the API Token is no longer present in the cloud Compute Account.
33+
34+
Steps
35+
36+
### Roll Token in the Cloudflare Dashboard
37+
38+
1. Log in to the Cloudflare dashboard ↗ and go to My Profile > API Tokens.
39+
2. Next to the API token you want to roll, select the three dot icon > Roll.
40+
3. Select Confirm to generate a new API token.
41+
4. Record the newly created token
42+
43+
### Set API key in Secrets Manager
44+
45+
1. Open the AWS or GCP console and navigate to Secrets Manager
46+
2. Validate that the region in which Terraform deployed is selected
47+
For AWS:
48+
Click on the secret cloudflare-cds-secrets, click Retrieve secret value, and Edit
49+
Paste in the Cloudflare API key previously created and click Save
50+
For GCP:
51+
Update the secret following the format below, replacing `<token>` with the recently created token: `{"cloudflare_api_token": "<token>"}`
52+
Click Save
53+
54+
### Common issues
55+
56+
#### cloudflare-cds-secrets does not exist in AWS or GCP Secrets Manager
1557

16-
To identify unhealthy CASB integrations, go to **CASB** > **Integrations**. If an integration is unhealthy, CASB will set its status to **Broken**. If an integration is outdated, CASB will set its status to **Upgrade**.
58+
Validate that the correct region is selected
59+
Rerun Terraform Apply to recreate the secret
60+
Apply repeat the steps above to edit the secret's value
1761

18-
## Repair an unhealthy integration
62+
#### I no longer have access to the API token I created
1963

20-
:::note[Repair limitation]
21-
If CASB does not support self-service repairs for an integration, you will need to [delete](/cloudflare-one/applications/casb/#delete-an-integration) and recreate the integration to continue scanning.
22-
:::
64+
Following the above instructions, roll the API token again and add it to AWS or GCP Secrets Manager
65+
Validation: On the integration page, if the Compute Account is shown as "Healthy", the problem has been solved.
2366

24-
You can repair unhealthy CASB integrations through your list of integrations or findings.
67+
## Troubleshoot an unhealthy compute account
2568

26-
1. In [Zero Trust](https://one.dash.cloudflare.com/), go to **CASB** > **Integrations**.
27-
2. Choose your unhealthy integration.
28-
3. Select **Reauthorize**.
29-
4. In your SaaS app or cloud environment, reauthorize your account.
69+
When a Compute Account becomes unhealthy, new scan configuration changes will not be put into use and new scan results will not appear in the dashboard.
3070

31-
## Upgrade an integration
71+
The following steps should be used when a Compute Account is appearing with the "Unhealthy" badge within the CASB Integration page. Example:
3272

33-
Upgrading an outdated integration will allow the integration to access new features and permissions.
73+
Steps
74+
Rerun Terraform Apply
75+
Navigate to a directory that contains the Terraform state file created during previous Terraform activity for this Compute Account
76+
Pull the latest updates:
77+
terraform init --upgrade
78+
Recreate/Upgrade any missing resources:
79+
terraform apply
80+
After completion, review the health status of the Compute Account to verify recovery. If the Compute Account is now healthy, you can stop here. Else, continue to the next step.
3481

35-
1. In [Zero Trust](https://one.dash.cloudflare.com/), go to **CASB** > **Integrations**.
36-
2. Choose your outdated integration.
37-
3. Select **Upgrade integration**.
38-
4. In your SaaS app or cloud environment, upgrade your app and reauthorize your account.
82+
Roll API Token
83+
Follow the steps listed in "Rotating API Tokens" section
84+
Review the health status of the Compute Account to verify recovery.

src/content/docs/cloudflare-one/applications/casb/troubleshooting/troubleshoot-integrations.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ sidebar:
55
order: 1
66
---
77

8-
import { TabItem, Tabs } from "~/components";
9-
108
Cloudflare CASB detects when integrations are unhealthy or outdated.
119

1210
Common integration issues include changes to SaaS app or cloud environment configurations, user access, or permission scope. Integrations may need to be updated to support new features or permissions.

0 commit comments

Comments
 (0)