> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/d/datatouch.md).

# Datatouch

Datatouch is a database environment platform with an Octo integration API. OctoXLabs uses it to add database environments, and optionally each node of a cluster, to the inventory.

## Use cases

* Keep database environments in the asset inventory and compare them with other sources.

```
Adapters = datatouch
```

* Find Datatouch environments that are not covered by your vulnerability scanner.

```
Adapters = datatouch AND NOT Adapters = tenable-sc
```

## Before you begin

### Network

| Source              | Destination      | Port                    | Protocol                         |
| ------------------- | ---------------- | ----------------------- | -------------------------------- |
| OctoXLabs connector | Datatouch server | 443 or the Port you set | HTTPS (HTTP if Is Secure is off) |

The outbound IP address of the connector must be on the Datatouch allow list (see below).

### Required permissions

| Scope or role                                       | Permission                | Needed for                                    |
| --------------------------------------------------- | ------------------------- | --------------------------------------------- |
| Datatouch server setting `API_KEY_ENABLED=true`     | Enabled                   | API key access                                |
| Datatouch server setting `OCTO_CLIENT_ENABLED=true` | Enabled                   | Octo integration                              |
| Datatouch server setting `OCTO_CLIENT_KEY`          | Set                       | Value you enter as API Key                    |
| Datatouch server setting `OCTO_CLIENT_ALLOWED_IPS`  | Contains the connector IP | Requests from other IPs are rejected with 401 |

## Create credentials in Datatouch

{% stepper %}
{% step %}

### Enable the Octo integration

On the Datatouch server, set `API_KEY_ENABLED=true` and `OCTO_CLIENT_ENABLED=true`.
{% endstep %}

{% step %}

### Set the client key

Set `OCTO_CLIENT_KEY` to a secret value. You enter this value as the API Key.
{% endstep %}

{% step %}

### Allow the connector IP

Add the outbound IP address of the OctoXLabs connector to `OCTO_CLIENT_ALLOWED_IPS`.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type              | Default       | Description                                                                   |
| ------------- | -------- | ----------------- | ------------- | ----------------------------------------------------------------------------- |
| Domain        | Yes      | String            | None          | Base host of the deployment, without scheme.                                  |
| Port          | No       | Integer           | None          | Port, if Datatouch uses a non-standard one.                                   |
| Api Client    | No       | String            | `octo-client` | Sent in the `X-API-CLIENT` header.                                            |
| Api Key       | Yes      | String            | None          | Value of `OCTO_CLIENT_KEY`, sent in the `X-API-KEY` header.                   |
| Project Id    | No       | String            | None          | Collect only environments of this project. Empty collects all.                |
| Collect Nodes | No       | Boolean           | `False`       | Also collect each node of a cluster as a device, with parent cluster details. |
| Timeout       | No       | Integer (seconds) | `30`          | Time to wait for API responses.                                               |
| Is Secure     | No       | Boolean           | `True`        | Use HTTPS.                                                                    |

## Troubleshooting

| Error message | Cause                                                                      | Fix                                                 |
| ------------- | -------------------------------------------------------------------------- | --------------------------------------------------- |
| 401           | The connector IP is not in `OCTO_CLIENT_ALLOWED_IPS`, or the key is wrong. | Add the IP to the allow list and check the API Key. |

## Change history

{% hint style="info" %}
Available starting from version 6.5.3.
{% endhint %}
