> 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/a/akamai-kona-waf.md).

# Akamai Kona WAF

Akamai Kona Site Defender is the Akamai WAF, managed through the Application Security API. OctoXLabs reads the hostnames that a security configuration can protect and adds them as domain assets.

## Use cases

* List every domains asset that Akamai Kona WAF contributes to the inventory.

```
Adapters = akamai-kona-waf
```

* Check what one Akamai Kona WAF connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                            | Port | Protocol                                 |
| ------------------- | ------------------------------------------------------ | ---- | ---------------------------------------- |
| OctoXLabs connector | Your Akamai API host (akab-xxxxxx.luna.akamaiapis.net) | 443  | HTTPS, or HTTP when Is Secure is cleared |

### Required permissions

| Scope or role                  | Permission     | Needed for                                                |
| ------------------------------ | -------------- | --------------------------------------------------------- |
| Application Security           | READ (minimum) | Contracts, groups and selectable hostnames                |
| Identity and Access Management | READ           | Account switch keys. Only when Fetch Multi Account is on. |

## Create credentials in Akamai Kona WAF

{% stepper %}
{% step %}

### Open API client creation

In Akamai Control Center, go to **Identity and Access Management** and click **Create API client**.
{% endstep %}

{% step %}

### Choose the service access

Grant the **Application Security** API with at least **READ** access. For Fetch Multi Account, also grant **Identity and Access Management** with **READ** access.
{% endstep %}

{% step %}

### Download the credentials

Click **Quick**, then **Download** under Credentials. This downloads an `.edgerc` file with `host`, `client_token`, `access_token` and `client_secret`.
{% endstep %}

{% step %}

### Copy the values

Copy each value into the matching field of the connection form.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter           | Required | Type    | Default | Description                                                                               |
| ------------------- | -------- | ------- | ------- | ----------------------------------------------------------------------------------------- |
| Host                | Yes      | String  | None    | Akamai EdgeGrid API host without a scheme, for example `akab-xxxxxx.luna.akamaiapis.net`. |
| Client Token        | Yes      | String  | None    | `client_token` of the API client.                                                         |
| Access Token        | Yes      | String  | None    | `access_token` of the API client.                                                         |
| Client Secret       | Yes      | String  | None    | `client_secret` of the API client.                                                        |
| Is Secure           | No       | Boolean | True    | Use HTTPS. Clear it to use HTTP.                                                          |
| Fetch Multi Account | No       | Boolean | False   | Collect hostnames from every managed account by enumerating account switch keys.          |
| Proxy               | No       | String  | None    | Proxy address. The connector sends requests through `http://<value>`.                     |
| Timeout             | No       | Integer | 30      | Time in seconds to wait for API responses.                                                |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Max retries exceeded for                                               | Akamai answered 429 (rate limit) five times in a row.                  | Wait for the rate limit to reset and try again.                                                                                               |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

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