> 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/k/kron-pam.md).

# Kron PAM

Kron PAM is a privileged access management platform from Kron. OctoXLabs reads the devices in your device groups and, optionally, its users and vault secret status, and adds them to the device and user inventories.

## Use cases

* **Find devices that have no vaulted secret.** Needs **Fetch secrets**. The raw field `hasSecret` is kept on each device, so use it in a filter on the raw data of the adapter.
* **Find Kron PAM devices that other tools do not see.** List devices managed through Kron PAM that CrowdStrike does not report.

```
Adapters = kron-pam AND NOT Adapters = falcon-crowdstrike
```

* **List Kron PAM users.** Needs **Fetch Users**.

```
Adapters = kron-pam AND Email = *
```

## Before you begin

### Network

| Source              | Destination   | Port               | Protocol |
| ------------------- | ------------- | ------------------ | -------- |
| OctoXLabs connector | Kron PAM host | 443 (configurable) | HTTPS    |

Clear **Is Secure?** to use HTTP.

### Required permissions

| Scope or role         | Permission | Needed for           |
| --------------------- | ---------- | -------------------- |
| Device Manager role   | Read       | Devices              |
| User Manager role     | Read       | Users                |
| Vault read permission | Read       | Fetch secrets option |

From the baseline: the account must have read permissions for users and devices. The Device and User Manager roles should suffice. The **Fetch secrets** option needs vault read permission.

## Create credentials in Kron PAM

{% stepper %}
{% step %}

### Pick the account

Use an account that has read permissions for users and devices. The Device Manager and User Manager roles should suffice. Add vault read permission if you will turn on **Fetch secrets**.
{% endstep %}

{% step %}

### Choose the OTP method

If the account uses one-time passwords, you have two choices. Enter the 6 digit code from the Kron PAM mobile application as **OTP Token**, or save the QR code you received and upload it as a PNG or JPG file. Use only one of the two.
{% endstep %}

{% step %}

### Plan for scheduled discovery

For scheduled discovery, upload the QR code. A typed OTP code expires.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Enter either the OTP token or upload the QR code. For scheduled discovery, uploading the QR code is required. The adapter rejects a configuration that has both.
{% endhint %}

## Connection parameters

| Parameter     | Required | Type               | Default | Description                                                                                                                                                                                                   |
| ------------- | -------- | ------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| IP            | Yes      | String             | None    | IP address of the Kron PAM host.                                                                                                                                                                              |
| Port          | No       | Integer            | 443     | Port number.                                                                                                                                                                                                  |
| Username      | Yes      | String             | None    | Account username.                                                                                                                                                                                             |
| Password      | Yes      | String             | None    | Account password.                                                                                                                                                                                             |
| OTP Token     | No       | String             | None    | 6 digit code from the Kron PAM mobile application.                                                                                                                                                            |
| QR Code       | No       | Image (PNG or JPG) | None    | QR code image. The connector reads the secret from it and generates the code.                                                                                                                                 |
| Fetch Users   | No       | Boolean            | False   | Also fetch the user inventory.                                                                                                                                                                                |
| Fetch secrets | No       | Boolean            | False   | Read vault accounts and mark each device with `hasSecret` and `secretValidationStatuses` (`VALID` or `INVALID`). A stored secret that no longer matches the device is `INVALID`. Needs vault read permission. |
| Is Secure?    | No       | Boolean            | True    | Use SSL.                                                                                                                                                                                                      |
| Timeout       | No       | Integer            | 30      | Seconds to wait for an API response.                                                                                                                                                                          |

## Troubleshooting

| Error message                                                           | Cause                                                                                   | Fix                                                                                            |
| ----------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Use either otp\_token option or otp\_qr\_code option                    | Both an OTP token and a QR code were set.                                               | Fill only one of them.                                                                         |
| Error occurred during otp request: {response}                           | The OTP validation call did not return 200.                                             | Check that the code is current or upload a new QR code.                                        |
| Could not fetch Vault accounts, skipping secret info. Error: {error}    | The vault search failed, so secret information is skipped.                              | Give the account vault read permission.                                                        |
| Error occurred during fetching devices from {group\_id}. Error: {error} | A device group could not be read. It is skipped (debug message).                        | Check the account permissions on that group.                                                   |
| Status Code: `, followed by URL, Method and the response body`          | The API answered with a status other than 200. This is the shared REST connector error. | Read the status code and body in the message, then check the credentials, permissions and URL. |

## Change history

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