Skip to Content
IntegrationsCloud

Secure DigitalOcean with Mondoo

Continuously secure your DigitalOcean account with Mondoo.

To connect a DigitalOcean account (team) to Mondoo, you create a read-only personal access token in DigitalOcean and add it to a DigitalOcean integration in your space.

Mondoo assesses the account itself, including resources such as its Droplets, SSH keys, images, TLS certificates, App Platform apps, and Functions. It also discovers these resources as their own assets, so you can review their findings individually:

  • Managed databases
  • Kubernetes (DOKS) clusters
  • Load balancers
  • Cloud firewalls
  • GradientAI agents

The integration authenticates with an API token only, so it doesn't audit Spaces buckets, which DigitalOcean serves through a separate S3-compatible API with its own access keys. To audit Spaces buckets, scan them with cnspec and a Spaces access key, as described in Secure DigitalOcean with cnspec.

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 DigitalOcean account (team)

Create a DigitalOcean personal access token

Mondoo authenticates to DigitalOcean with a personal access token.

  1. Log in to the DigitalOcean control panel and switch to the team you want Mondoo to scan.

  2. Go to API and, on the Tokens tab, select Generate New Token.

  3. Enter a token name that identifies it as Mondoo's, and choose an expiration.

  4. Under Scopes, select Read Only. Mondoo only reads configuration, and a Full Access token grants more than the integration needs.

  5. Select Generate Token and copy the token. DigitalOcean shows it only once.

To learn more, see How to Create a Personal Access Token in the DigitalOcean documentation.

Treat the token like a password. Don't commit it to source control, and create a new token before the current one expires.

Add a DigitalOcean 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:

  1. Under Cloud Security, select DigitalOcean.

    Add a DigitalOcean integration in Mondoo

  2. In the Choose an integration name box, enter a name that identifies the DigitalOcean team.

  3. Paste the token into the Provide your DigitalOcean API token box.

  4. (Optional) Under Enable security policies, review the policies that apply to DigitalOcean, such as Mondoo DigitalOcean Security, CIS DigitalOcean Foundations Benchmark - Level 1, and the CIS DigitalOcean Services Benchmark Level 1 and Level 2 policies. 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.

  5. 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

Mondoo adds the DigitalOcean account and the discovered resources to the space inventory. To review them, navigate to the space and select Inventory. To see how the assets score against a policy, select Findings > Policies and choose the policy, such as Mondoo DigitalOcean Security.

Manage your integration

To open the integration, navigate to the space, select Integrations > DigitalOcean, 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.
  • Rename the integration or replace its API token. Select the edit (pencil) icon. Under API token (optional update), leave the box empty to keep the existing token, or enter a new token to replace it. Then select SAVE CHANGES.
  • Remove the integration. Select the trash can icon and confirm. Mondoo stops scanning the DigitalOcean account.

Scan DigitalOcean from the command line

The integration scans continuously from the Mondoo Platform. To scan DigitalOcean from your workstation or a CI pipeline instead, see Secure DigitalOcean with cnspec.

Next steps

Last updated on

On this page