Prerequisites
- OpenHound installed with the Okta collector included. Follow the OpenHound installation instructions to set up OpenHound for BloodHound Community Edition. The Okta collector is included by default in the OpenHound container image.
- An Okta account with permissions to access the Okta API. See the options below for recommended roles and permissions.
OAuth 2.0 Service Application (Recommended)
Register the Okta collector as a service application in Okta. Grant the application limited read-only permissions, then configure authentication with either a symmetric client secret or an asymmetric RSA public/private key pair. Use an RSA public/private key pair when possible, because it provides stronger security than a symmetric client secret.API Token (SSWS)
The Okta collector can also authenticate using API tokens (also known as SSWS tokens) associated with specific Okta Super Administrator accounts. This is the least secure option, but the easiest one to set up.Configure OpenHound
The following OpenHound configuration parameters are required to run the Okta collector. These can either be set via the[sources.source.okta.credentials] section of the secrets file or via environment variables using the SOURCES__OKTA__CREDENTIALS prefix.
Option 1: Service Application with JSON key file
| Parameter Name | Environment Variable | Description |
|---|---|---|
base_url | {PREFIX}__BASE_URL | The base URL of the Okta organization. For example: https://spectoropspreview.oktapreview.com. |
client_id | {PREFIX}__CLIENT_ID | The client ID of the Okta service application used to authenticate to the Okta API. |
private_key_path | {PREFIX}__PRIVATE_KEY_PATH | The path to the private key (.json) used for authentication. |
Option 2: Service Application with base64-encoded JSON key string
| Parameter Name | Environment Variable | Description |
|---|---|---|
base_url | {PREFIX}__BASE_URL | The base URL of the Okta organization. For example: https://spectoropspreview.oktapreview.com. |
client_id | {PREFIX}__CLIENT_ID | The client ID of the Okta service application used to authenticate to the Okta API. |
private_key_encoded | {PREFIX}__PRIVATE_KEY_ENCODED | The private key (.json) encoded as a base64 string. |
Option 3: API Token (SSWS)
| Parameter Name | Environment Variable | Description |
|---|---|---|
base_url | {PREFIX}__BASE_URL | The base URL of the Okta organization. For example: https://spectoropspreview.oktapreview.com. |
token | {PREFIX}__TOKEN | The API token (SSWS) used for authentication. |
Example Configuration
secrets.toml