> 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-satellite.md).

# Red Hat Satellite

Red Hat Satellite manages the lifecycle, content and patching of Red Hat systems. OctoXLabs uses it to add managed hosts to the inventory and, optionally, their installed packages, security errata with CVEs and host collections.

## Use cases

* List Satellite-managed hosts.

```
Adapters = red-hat-satellite
```

* Find Satellite hosts that no EDR covers.

```
Adapters = red-hat-satellite AND NOT Adapters = falcon-crowdstrike
```

* Find hosts with unpatched critical security errata (needs Fetch Errata Data).

```
Adapters = red-hat-satellite AND Vulnerabilities.Severity = Critical
```

## Before you begin

### Network

| Source              | Destination                           | Port                        | Protocol                           |
| ------------------- | ------------------------------------- | --------------------------- | ---------------------------------- |
| OctoXLabs connector | Red Hat Satellite host (IP you enter) | 443 (default, configurable) | HTTPS (HTTP when Is Secure is off) |

### Required permissions

| Scope or role                        | Permission | Needed for                                                                          |
| ------------------------------------ | ---------- | ----------------------------------------------------------------------------------- |
| view\_hosts                          | Read       | Hosts                                                                               |
| Organization and location assignment | Read       | The organizations and locations to fetch hosts from must be assigned to the account |

## Create credentials in Red Hat Satellite

{% stepper %}
{% step %}

### Create or pick an account

Use a Satellite account for OctoXLabs.
{% endstep %}

{% step %}

### Grant view\_hosts

Give the account a role with the **view\_hosts** permission.
{% endstep %}

{% step %}

### Assign organizations and locations

Assign every organization and location whose hosts you want to fetch to the account.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter              | Required | Type    | Default | Description                                                                                          |
| ---------------------- | -------- | ------- | ------- | ---------------------------------------------------------------------------------------------------- |
| IP                     | Yes      | String  | None    | IP address of the Satellite host.                                                                    |
| Port                   | No       | Integer | 443     | Port of the Satellite API.                                                                           |
| Username               | Yes      | String  | None    | Account used to connect.                                                                             |
| Password               | Yes      | String  | None    | Password of that account.                                                                            |
| Timeout                | No       | Integer | 30      | Seconds to wait for API responses.                                                                   |
| Fetch Host Facts       | No       | Boolean | False   | Fetch host facts for every host.                                                                     |
| Fetch Errata Data      | No       | Boolean | False   | Fetch errata per host. Security errata with CVEs become vulnerabilities. Needs extra calls per host. |
| Fetch Packages         | No       | Boolean | False   | Fetch installed packages per host. Needs extra calls per host.                                       |
| Fetch Host Collections | No       | Boolean | False   | Fetch host collections. Needs extra calls.                                                           |
| Is Secure?             | No       | Boolean | True    | Use HTTPS.                                                                                           |
| Thread Count           | No       | Integer | 32      | Parallel threads. Min 1, max 32.                                                                     |
| Sleep Time             | No       | Integer | 0       | Seconds of delay between thread batches. Raise it on rate limit errors.                              |

## 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
