> 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/v/veracode.md).

# Veracode

Veracode is an application security platform. OctoXLabs reads the Veracode user accounts through the Identity API. This adds platform users, their teams and their last login time to the inventory.

## Use cases

* List all Veracode users.

```
Adapters = veracode
```

## Before you begin

### Network

| Source              | Destination                                                          | Port             | Protocol |
| ------------------- | -------------------------------------------------------------------- | ---------------- | -------- |
| OctoXLabs connector | `api.veracode.com` (default), `api.veracode.eu` or `api.veracode.us` | 443              | HTTPS    |
| OctoXLabs connector | HTTP proxy (optional)                                                | Set in **Proxy** | HTTP     |

The domain depends on the region of your Veracode account. Use `api.veracode.eu` for the European region and `api.veracode.us` for the US federal region.

### Required permissions

| Scope or role                      | Permission                  | Needed for |
| ---------------------------------- | --------------------------- | ---------- |
| User that owns the API credentials | Read identity and user data | Users      |

The exact Veracode role name is Not verified.

## Create credentials in Veracode

{% stepper %}
{% step %}

### Open API Credentials

Sign in to the Veracode Platform. Open the account menu in the top-right corner and select **API Credentials**.
{% endstep %}

{% step %}

### Create the pair

Create a new API credential pair, or view an existing one, for a user that can read identity and user data.
{% endstep %}

{% step %}

### Copy the values

Copy the **API ID** and the **API Key**. The API Key is shown only once. Store it in a safe place.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter         | Required | Type    | Default                    | Description                                                                       |
| ----------------- | -------- | ------- | -------------------------- | --------------------------------------------------------------------------------- |
| Domain            | No       | Text    | api.veracode.com           | Veracode API domain for your region.                                              |
| API ID            | Yes      | Text    |                            | Public half of the HMAC credential pair.                                          |
| API Key           | Yes      | Text    |                            | Secret half of the pair. A hex encoded key used to sign requests.                 |
| Signature Version | No       | Text    | vcode\_request\_version\_1 | HMAC signature version. Leave the default unless Veracode tells you to change it. |
| Proxy             | No       | Text    |                            | Proxy in `host:port` format.                                                      |
| Timeout           | No       | Integer | 30                         | Seconds to wait for API responses.                                                |

## Troubleshooting

| Error message            | Cause                       | Fix                               |
| ------------------------ | --------------------------- | --------------------------------- |
| Max retries exceeded for | The API kept returning 429. | Wait and run the discovery again. |

## Change history

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