> 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/i/imperva-waf.md).

# Imperva WAF

Imperva WAF (SecureSphere) protects web applications and data. OctoXLabs reads the gateways in each gateway group as devices and the configured management users as users.

## Use cases

* List the WAF gateways OctoXLabs collected.

```
Adapters = imperva-waf
```

* Check what one Imperva WAF connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                   | Port                | Protocol                           |
| ------------------- | ----------------------------- | ------------------- | ---------------------------------- |
| OctoXLabs connector | Imperva WAF management server | 8083 (configurable) | HTTPS, or HTTP when SSL is cleared |

### Required permissions

| Scope or role           | Permission | Needed for                         |
| ----------------------- | ---------- | ---------------------------------- |
| Account with API access | Read       | Gateway groups, gateways and users |

The account must have read access to the API.

## Create credentials in Imperva WAF

{% stepper %}
{% step %}

### Choose an account

Use an account with read access to the Imperva WAF API. Note the management server IP address and the API port.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                                                        |
| --------- | -------- | ------- | ------- | ------------------------------------------------------------------ |
| IP        | Yes      | String  | None    | IP address of the Imperva WAF.                                     |
| Port      | No       | Integer | 8083    | API port.                                                          |
| Username  | Yes      | String  | None    | Account with read access to the API.                               |
| Password  | Yes      | String  | None    | Password of the account.                                           |
| SSL       | No       | Boolean | True    | Use HTTPS. The serializer field is named `is_secure`.              |
| Timeout   | No       | Integer | 30      | Seconds to wait for API responses.                                 |
| Proxy     | No       | String  | None    | Proxy in `host:port` form, sent as an HTTP proxy for both schemes. |

## Troubleshooting

| Error message | Cause                                                             | Fix                                                                          |
| ------------- | ----------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| Not verified  | The connector code defines no custom error text for this adapter. | Run the connection test and check the IP, port, SSL setting and credentials. |

## Change history

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