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
- Superuser access to the [Custom Integrations configuration](https://console.runzero.com/custom-integrations) in runZero
14
+
15
+
## Guardicore Centra requirements
16
+
17
+
**Instance URL** - The domain or IP of the Guardicore Centra web server e.g. "https://<urlofguardicorecentraconsole>" (defined within the starlark script as `CENTRA_BASE_URL`)
18
+
19
+
`client_id` - login username for authentication to retrieve JWT token (configured in Credentials section of runZero)
20
+
21
+
`client_secret` - login password for authentication to retrieve JWT token (configured in Credentials section of runZero)
22
+
23
+
## Guardicore Centra API Docs
24
+
25
+
- requires customer account
26
+
27
+
## Steps
28
+
29
+
### Guardicore Centra configuration
30
+
31
+
1. Select appropriate script to use.
32
+
- Guardicore Centra concurrently supports two different API versions: the v3 API and the v4 API. Thus there is a script named centrav3.star and centrav4.star accordingly.
33
+
- A large portion of the data provided by each API overlaps but there are differences between the two.
34
+
- Review the script for each API to see if one better suits your use case than the other. Unless there is a specific need to use the centrav3.star script (v3 API) then it is recommended to use the centrav4.star script (v4 API).
35
+
2. Determine the proper Guardicore Centra URL:
36
+
- Assign the URL to `CENTRA_BASE_URL` within the starlark script
37
+
3. Create login credentials with necessary, read-only access to retrieve JWT token for API access:
38
+
- Copy the username to the value for `access_key` when creating the Custom Integration credentials in the runZero console (see below)
39
+
- Copy the password to the the value for `access_secret` when creating the Custom Integration credentials in the runZero console (see below)
40
+
41
+
### runZero configuration
42
+
43
+
1. (OPTIONAL) - make any neccessary changes to the script to align with your environment.
44
+
- Modify API calls as needed to filter assets
45
+
>- The script is configured to return assets with a status of 'On' and 'Off' by default.
46
+
>- Assets with a Status of 'Deleted' are ignored (Centra retains these records indefinitely)
47
+
>- If status 'Off" assets are not desired the user can remove the while loop in the get_assets function as indicated by the comment.
48
+
>- If a user wants to import all assets, including deleted assets:
49
+
>>- Remove the second while loop as above
50
+
>>- Remove the "'status': 'on'" parameter from the GET request in the remaining while loop
51
+
- Modify datapoints uploaded to runZero as needed
52
+
2.[Create the Credential for the Custom Integration](https://console.runzero.com/credentials)
53
+
- Select the type `Custom Integration Script Secrets`
54
+
- Both `access_key` and `access_secret` are required
55
+
-`access_key` corresponds to the Client ID provided when creating the Guardicore Centra Application Registration
56
+
-`access_secret` corresponds to the Client secret provided when creating the Guardicore Centra Application Registration
57
+
3.[Create the Custom Integration](https://console.runzero.com/custom-integrations/new)
58
+
- Add a Name and Icon
59
+
- Toggle `Enable custom integration script` to input your finalized script
60
+
- Click `Validate` to ensure it has valide syntax
61
+
- Click `Save` to create the Custom Integration
62
+
4.[Create the Custom Integration task](https://console.runzero.com/ingest/custom/)
63
+
- Select the Credential and Custom Integration created in steps 2 and 3
64
+
- Update the task schedule to recur at the desired timeframes
65
+
- Select the Explorer you'd like the Custom Integration to run from
66
+
- Click `Save` to kick off the first task
67
+
68
+
69
+
### What's next?
70
+
71
+
- You will see the task kick off on the [tasks](https://console.runzero.com/tasks) page like any other integration
72
+
- The task will update the existing assets with the data pulled from the Custom Integration source
73
+
- The task will create new assets for when there are no existing assets that meet merge criteria (hostname, MAC, etc)
74
+
- You can search for assets enriched by this custom integration with the runZero search `custom_integration:<INSERT_NAME_HERE>`
0 commit comments