> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iru.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DigitalOcean

> Connect DigitalOcean to Iru Compliance with a scoped personal access token to collect Droplet inventory, networking, and team-account metadata as evidence.

### About DigitalOcean

Iru reads **Droplets**, **VPCs**, **firewalls**, **team** membership, and **account** settings via the DigitalOcean API using a **personal access token** as a **Bearer** credential.

### How It Works

```http theme={null}
Authorization: Bearer YOUR_TOKEN
```

| Detail             | Value                          |
| ------------------ | ------------------------------ |
| **Category**       | Cloud infrastructure           |
| **Authentication** | Personal access token (Bearer) |

Official references: [Personal access tokens](https://docs.digitalocean.com/reference/api/create-personal-access-token/), [API reference](https://docs.digitalocean.com/reference/api/api-reference/).

### Prerequisites

* Access to **API** token creation for your team.

### Connect DigitalOcean to Iru

<Tabs>
  <Tab title="DigitalOcean">
    <Note>
      Complete this tab before you connect the source in Compliance.
    </Note>

    <Steps>
      <Step title="Sign in to DigitalOcean">
        Open [cloud.digitalocean.com](https://cloud.digitalocean.com) and sign in with a team member who can create **API** tokens.
      </Step>

      <Step title="Open API in the Control Panel">
        In the **Control Panel**, open **API** from the left navigation or account menu (labels vary slightly by DO UI version).
      </Step>

      <Step title="Generate a new token">
        Select **Generate New Token** (or **Create token**) to begin the token wizard.
      </Step>

      <Step title="Name the token and set expiry">
        Enter a name such as **Iru Compliance**. Set **expiration** if your policy requires it; otherwise choose the shortest practical lifetime your team allows.
      </Step>

      <Step title="Choose read scopes">
        Enable **read** (or read-only) scopes for each resource class Iru must evidence, commonly **Droplets**, **VPC**, **Firewalls**, **Account**, and related objects your controls reference.
      </Step>

      <Step title="Generate and copy the token">
        Create the token and **copy** it once. DigitalOcean shows it only at creation. Store it in a vault until you paste it into Iru.
      </Step>
    </Steps>

    <Note>
      Continue on the [**Iru Compliance**](#iru-compliance) tab.
    </Note>
  </Tab>

  <Tab title="Iru Compliance">
    <Note>
      Finish the [**DigitalOcean**](#digitalocean) tab first.
    </Note>

    <Steps>
      <Step title="Open Sources">
        In Iru Compliance, on the left navigation bar, expand **Compliance** and select **Sources**.

        <Frame>
          <img src="https://mintcdn.com/iru/7HsGH7lnQ8GpVmI0/assets/media/images/iru-navigation-compliance-sources.png?fit=max&auto=format&n=7HsGH7lnQ8GpVmI0&q=85&s=595982441fd777b333b3ecfea24adc24" alt="Left navigation: Compliance expanded, Sources selected" width="424" height="1056" data-path="assets/media/images/iru-navigation-compliance-sources.png" />
        </Frame>
      </Step>

      <Step title="Turn on DigitalOcean">
        Find **DigitalOcean** (use **Category** or **Search by name or description**). On that card, turn on the **toggle**. A browser tab or window may open for the connector wizard.
      </Step>

      <Step title="Paste the personal access token">
        Paste the token into the **Bearer** field.
      </Step>

      <Step title="Finish the connection">
        Click **Submit Bearer Token**. When the connection succeeds, the wizard shows **Connection Configured**.
      </Step>

      <Step title="Confirm the source is Active">
        Close the **Iru is requesting access to external services** browser tab, then return to **Compliance** → **Sources** and confirm the **DigitalOcean** card is **Active**.
      </Step>
    </Steps>
  </Tab>
</Tabs>

### Troubleshooting

<AccordionGroup>
  <Accordion title="Nothing opens when you turn the source on">
    Check **pop-up blocker** settings for the Iru site and try again.
  </Accordion>

  <Accordion title="401 Unauthorized">
    Token copied fully; not revoked.
  </Accordion>

  <Accordion title="Missing resource types">
    Create a new token with broader **read** scopes.
  </Accordion>
</AccordionGroup>

### Related Articles

<CardGroup cols={2}>
  <Card title="Sources Management" icon="plug" href="/en/compliance/sources-management">
    Browse and manage every Compliance source.
  </Card>

  <Card title="Getting Started With Compliance" icon="rocket" href="/en/compliance/getting-started-with-compliance">
    Frameworks, actions, and **Artifacts**.
  </Card>

  <Card title="Iru Overview" icon="layer-group" href="/en/iru/platform-overview/iru-overview">
    How Endpoint, Compliance, and Identity fit together.
  </Card>

  <Card title="Artifacts Management" icon="folder-open" href="/en/compliance/artifacts-management">
    Upload, review, and organize evidence from sources and actions.
  </Card>
</CardGroup>
