Skip to main content
Okta enforces API rate limits by default. OpenHound is configured to retry each HTTP request up to 10 times with increasing delays.
Applies to BloodHound Enterprise and CE This page covers configuring the OpenHound Okta collector for your Okta organization.

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.
The OpenHound setup instructions for BloodHound Community Edition also apply to BloodHound Enterprise users, for now.
Register the OpenHound 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 OpenHound 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

Use this option when you store the Okta private key in a file. Set private_key_path to the path of the complete private key JSON that Okta displays when you generate the key pair. Example Configuration
secrets.toml

Option 2: Service Application with base64-encoded JSON key string

Use this option when you store the Okta private key in a text-based secret. Example Configuration
secrets.toml
Set private_key_b64 to the base64-encoded contents of the complete private key JSON that Okta displays when you generate the key pair. The private key JSON includes the key identifier (kid). Keep this property in the JSON; you do not retrieve or configure kid separately. The collector uses it to identify the signing key when it requests an access token. The private key JSON has the following general structure. The values below are placeholders and are not a usable key.
Keep the complete private key JSON and its base64-encoded value secret. Okta displays the private key only when you generate it. If you do not have the JSON, generate and register a new key pair as described in the Okta app registration guide.

Option 3: API Token (SSWS)

Use this option when you want to authenticate with an API token (SSWS) associated with a specific Okta Super Administrator account. Example Configuration
secrets.toml

Pagination settings

The Okta collector requests explicit page sizes for resources that support large result sets. You can tune these defaults with the following DLT source configuration environment variables: Application-group assignments are collected from each application’s public assignment endpoint, and the collector retains Okta’s assignment timestamp, priority, and profile field names without publishing assignment profile values to the graph.
If the initial expanded group page repeatedly times out on large Okta tenants, the collector retries that first page with successively halved page sizes before failing. With the default GROUPS_PAGE_SIZE of 200, that fallback sequence is 200, then 100, then 50.

Running OpenHound and Collecting Data

After you set the required configuration parameters, run OpenHound to start the collector and collect data from your . The collector will generate JSON files in the output directory that can be uploaded to BloodHound for analysis.