> 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/r/red-hat-advanced-cluster-security.md).

# Red Hat Advanced Cluster Security

Red Hat Advanced Cluster Security (RHACS) secures Kubernetes and OpenShift clusters. Central is self-hosted in your cluster. OctoXLabs uses it to add deployments to the inventory, with the vulnerabilities and software components found in their container images.

## Use cases

* List cluster deployments that RHACS reports.

```
Adapters = rhacs
```

* Find deployments with critical image vulnerabilities.

```
Adapters = rhacs AND Vulnerabilities.Severity = Critical
```

## Before you begin

### Network

| Source              | Destination                                                | Port                        | Protocol                           |
| ------------------- | ---------------------------------------------------------- | --------------------------- | ---------------------------------- |
| OctoXLabs connector | RHACS Central (value of $ROX\_ENDPOINT without the scheme) | 443 (default, configurable) | HTTPS (HTTP when Is Secure is off) |

### Required permissions

| Scope or role           | Permission | Needed for             |
| ----------------------- | ---------- | ---------------------- |
| Analyst (built-in role) | Read       | Deployments and images |

The token role must be able to read deployments and images. The built-in Analyst role is enough.

## Create credentials in Red Hat Advanced Cluster Security

{% stepper %}
{% step %}

### Log in

Log in to the RHACS portal.
{% endstep %}

{% step %}

### Open Integrations

Go to **Platform Configuration > Integrations**.
{% endstep %}

{% step %}

### Start an API token

Under Authentication Tokens, click **API Token**.
{% endstep %}

{% step %}

### Generate the token

Click **Generate Token**, choose the **Analyst** role and set an expiration.
{% endstep %}

{% step %}

### Save the token

Copy the token and store it in a safe place.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter              | Required | Type    | Default | Description                                                                                                            |
| ---------------------- | -------- | ------- | ------- | ---------------------------------------------------------------------------------------------------------------------- |
| IP                     | Yes      | String  | None    | Host name or route of RHACS Central.                                                                                   |
| Port                   | No       | Integer | 443     | Port of Central.                                                                                                       |
| Is Secure?             | No       | Boolean | True    | Use HTTPS.                                                                                                             |
| API Token              | Yes      | String  | None    | Bearer token.                                                                                                          |
| Fetch Vulnerabilities? | No       | Boolean | True    | Fetch per-image scan data. Turning it off is faster but leaves Vulnerabilities, InstalledSoftware and OS fields empty. |
| Thread Count           | No       | Integer | 32      | Parallel threads for image enrichment. Min 1, max 32.                                                                  |
| Timeout                | No       | Integer | 30      | Seconds to wait for API responses.                                                                                     |

## Troubleshooting

| Error message | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Status Code:  | The API answered with a status other than the one the connector expects. The message also lists the URL, the method and the response body. | Read the status code and the response body in the message, then check the credentials, the permissions and the network path. |

## Change history

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