Secure Databricks with Mondoo
Continuously scan your Databricks account and workspaces for misconfigurations and security issues.
To connect a Databricks account to Mondoo, you create an OAuth service principal in the Databricks account console and add its credentials to a Databricks integration in your space.
Mondoo adds the account and every workspace in it to your space as assets:
- The Databricks Account asset covers account-level identity and access and network configuration.
- Each Databricks Workspace asset covers the workspace's security settings, compute clusters, tokens and secrets, network access controls, and data sharing and AI features.
Mondoo supports Databricks accounts on AWS, Azure, and Google Cloud.
Before you begin
- Editor or Owner access to the Mondoo space, or another role with permission to add integrations. To see every role, read Roles and permissions.
- A Databricks account
- Account admin access in the Databricks account console, to create a service principal
Create a Databricks service principal
Mondoo authenticates to Databricks with an account-level service principal that uses OAuth machine-to-machine (M2M) authentication. To learn more, see Manage service principals and Authorize service principal access to Databricks with OAuth in the Databricks documentation.
-
Log in to the Databricks account console as an account admin.
-
Note your account ID. It's in the profile menu at the top of the account console. You need it in the next section.
-
Select User management. On the Service principals tab, select Add service principal, enter a name that identifies it as Mondoo's, and select Add.
-
Open the service principal, go to the Roles tab, and give it the Account admin role so Mondoo can read account-level identity and network settings.
-
On the service principal's Credentials & secrets tab, select Generate secret. Choose a lifetime, then generate the secret.
-
Copy the client ID and the secret. Databricks shows the secret only once.
-
Give the service principal access to each workspace you want Mondoo to scan: select Workspaces, choose a workspace, and on the Permissions tab select Add permissions. Add the service principal and save. Some workspace settings, such as the token list and workspace configuration, are visible only to workspace admins, so assign Admin permission if you want Mondoo to evaluate every workspace check.
Treat the OAuth secret like a password. Don't commit it to source control, and generate a new one before it expires.
Add a Databricks integration
You need the Editor or Owner role, or another role with this permission. To see every role, read Roles and permissions.
In the Mondoo App, navigate to the space where you want to add the integration. Some integrations can also be added once at the organization level to cover every space with one connection. To see which ones, read Set up integrations once for your whole organization.
In the space's side navigation bar, select Integrations. In the top right, select INSTALL. On the Install Integration page, find the integration you want by browsing a category or searching by name:
-
Under SaaS Security, select Databricks.

-
In the Choose an integration name box, enter a name that identifies the Databricks account.
-
Under Provide your Databricks account, enter the Account ID. Then select the account console that hosts your account:
Option Use for AWS — accounts.cloud.databricks.com (default) Databricks on AWS Azure — accounts.azuredatabricks.net Azure Databricks GCP — accounts.gcp.databricks.com Databricks on Google Cloud Choose the console that matches your account. If you choose the wrong one, Mondoo can't authenticate.
-
Under Provide an OAuth service principal, enter the Client ID and Client secret of the service principal.
-
(Optional) Under Enable security policies, review the policies that apply to Databricks. The Mondoo Databricks Security policy checks accounts, workspaces, clusters, and access controls. If a policy isn't enabled in the space yet, select ENABLE. A policy you enable here applies to the whole space, not only this integration.
-
Select CREATE INTEGRATION.
Mondoo starts the first scan as soon as the integration is created. To learn how policies work, read Manage Policies.
Verify the integration
When you select CREATE INTEGRATION, Mondoo starts the first scan and opens the integration's page. Status shows Active once the scan is queued, and Most Recent Activity lists each scan and any errors it reports.

Mondoo adds the account and workspace assets to the space inventory. To review them, navigate to the space and select Inventory. To see how the assets score against the policy, select Findings > Policies and choose Mondoo Databricks Security. To learn what each integration status means, read Integration status and troubleshooting.
Troubleshoot
| Message | Cause | Fix |
|---|---|---|
the token endpoint rejected the client credentials when you create the integration | The client ID or secret is wrong, the secret has expired, or you chose an account console that doesn't host the account. | Check the client ID and secret, and choose the console that matches your cloud. If the secret has expired, generate a new one. |
| Scans are paused at the top of the integration page | The service principal's secret was rejected by Databricks or has expired. | Generate a new secret and rotate it in Mondoo. |
ended in a scan error, so their results are missing in Most Recent Activity | The service principal can't read some settings, usually because it lacks the Account admin role or Admin permission on a workspace. | The message names the most common error. Give the service principal the role or permission described in Create a Databricks service principal. |
Manage your integration
To open the integration, navigate to the space, select Integrations > Databricks, and choose the integration.
From the integration detail page, you can:
- Scan now. Select RUN.
- Pause or resume scanning. Select the more actions menu, then Pause or Resume.
- Edit settings. Select the pencil icon to rename the integration. If the integration stores its own service principal secret, you can also rotate the client ID and secret here. The account ID and account console are read-only.
- Remove the integration. Select the trash can icon and confirm. Mondoo stops scanning the Databricks account.
Rotate the service principal secret
How you replace the secret depends on how Mondoo stored it when the integration was created. Integrations added by someone with permission to create and view credentials store the service principal as a credential. Older integrations, and integrations added by someone without that permission, keep the client ID and secret on the integration.
-
If the integration uses a credential: The integration detail page shows a Credential section, and the edit form shows Managed by a credential in place of the client ID and secret boxes. Select the credential's name to open it, then select Rotate and enter the new secret. Every integration that uses the credential switches to the new secret. To learn more, read Manage Integration Credentials.

-
If the integration stores its own secret: Select the pencil icon. Under Rotate the service principal, enter the client ID and the new secret, then select SAVE CHANGES.
Scan Databricks from the command line
The integration scans continuously from the Mondoo Platform. To scan Databricks from your workstation or a CI pipeline instead, see Secure Databricks with cnspec.
Next steps
Last updated on