DigitalOcean Cloud & App Platform Integration Setup Guide
Connect DigitalOcean to Valstorm so your team and Valstorm AI assistants can inspect and manage Droplets, App Platform apps, Managed Databases, Kubernetes clusters, Domains/DNS, and Projects with least-privilege access controls.
How Valstorm Connects to DigitalOcean
Valstorm supports two complementary connection levels:
- Organization Scope (Shared Team Tokens): Valstorm Admins and delegated Org Managers can save one or more labeled DigitalOcean Personal Access Tokens (
dop_v1_...) in encrypted storage. Each token starts private to the creator until explicitly shared with specific Users or User Groups under Shared With. When verified, Valstorm automatically discovers the token's DigitalOcean Team, Projects, Managed Domains, and Read/Write capabilities. - Personal User Scope (Individual OAuth 2.0): Individual team members can connect their own DigitalOcean login (including Google sign-in) via 1-click OAuth 2.0 so actions run under their own DigitalOcean identity and Team permissions.
Prerequisites
- For Organization Setup:
- A DigitalOcean account with access to your organization's DigitalOcean Team (and permission to generate API tokens).
- Valstorm Account Admin or delegated Org Manager permissions for DigitalOcean.
- For Personal User Scope:
- Any Valstorm user who has been invited to your organization's DigitalOcean Team (in DigitalOcean under Settings → Team).
Step 1: Generate a DigitalOcean Personal Access Token (dop_v1_...)
- Sign in to the DigitalOcean Control Panel and use the Team switcher to select your organization's DigitalOcean Team (do not leave it on your personal account if your infrastructure lives in a Team).
- In the left sidebar, click Account → API (or open
https://cloud.digitalocean.com/account/api/tokens), then select Tokens → Generate New Token. - Enter a descriptive Token name (for example,
Valstorm Org Read-OnlyorValstorm App Platform Deploy). - Choose an Expiration window (such as 90 days or 1 year).
- Expiration reminder: DigitalOcean tokens stop working when they expire. Set a calendar reminder to generate a replacement token and update it in Valstorm before expiration.
- Team ownership note: Team tokens are tied to the DigitalOcean user who created them — if that member is removed from the DigitalOcean Team, the token stops working, so teams may want a dedicated org/ops member to own long-lived tokens.
- Under Scopes, select Custom Scopes (recommended for least privilege) and enable only the resources and read/write permissions this token needs:
| Resource / Scope | Read-Only Token | Read & Write Token | What It Enables in Valstorm |
|---|---|---|---|
Account (account) | read | read | Verify connection, Team identity, and account status |
Projects (project) | read | read, update | Discover DigitalOcean Projects and resource assignments |
App Platform (app) | read | read, create, update, delete | Inspect apps, preview specs, deploy, and scale App Platform services |
Droplets (droplet) | read | read, create, update, delete | List and manage virtual machines (Droplets) |
Databases (database) | read | read, create, update, delete | Inspect Managed Databases and configure Trusted Sources firewalls |
Kubernetes (kubernetes) | read | read, create, update, delete | View and manage DOKS clusters and node pools |
Domains & DNS (domain) | read | read, create, update, delete | View domains and manage DNS records |
Billing (billing) | read (optional) | read (optional) | Check account balance and month-to-date usage |
- Tip: Many teams create two separate tokens — a Read-Only token shared broadly for visibility and a Read & Write token shared only with DevOps/engineering groups.
- Click Generate Token and copy the
dop_v1_...token immediately (DigitalOcean only displays the full token value once).
Step 2: Save the Token in Valstorm Command Center
- In Valstorm, open Command Center → Integrations → Organization Scope → DigitalOcean.
- Click Add New Token.
- Enter a Token Label (for example,
Prod Read-OnlyorStaging App Platform). - Paste your
dop_v1_...token into DigitalOcean API Token (dop_v1_...). - Click Save Token.
Valstorm automatically probes the token upon saving to identify your DigitalOcean Team, Projects, Managed Domains, and granted Read/Write scopes — no manual Team UUID or Project ID entry is required.
Step 3: Verify & Share With Your Team
- On the saved token card, click Verify to confirm an active connection and review the discovered capabilities (Read-Only vs. Read & Write, Projects, and Managed Domains).
- Click Edit / Share on the token card and add the Users or User Groups who should have access under Shared With.
- By default, newly added tokens remain private to the creator until shared.
- To allow non-admin leads to manage DigitalOcean tokens, Account Admins can add them under Who Can Manage.
- Production safety guardrails: Valstorm automatically blocks destructive
DELETEactions against DigitalOcean resources taggedproduction,valstorm-prod,protected,prod-locked, ordo-not-delete.
Step 4: Connect Individual Users (Personal User Scope — Optional)
If team members want Valstorm to act under their individual DigitalOcean accounts:
- Ensure each team member has been invited to your organization's DigitalOcean Team (DigitalOcean Control Panel → Settings → Team).
- Each user opens Command Center → Integrations → User Scope → DigitalOcean (or types
/connect digitaloceanin AI Chat) and clicks Connect DigitalOcean. - Sign in to DigitalOcean (including Google sign-in if enabled), select your organization's DigitalOcean Team, and approve access.
- Once connected, the popup closes automatically and Valstorm displays the user's connected DigitalOcean status.
Troubleshooting
| Issue | What to Check |
|---|---|
401 Unauthorized / Invalid or expired token | Confirm the full dop_v1_... token was copied without extra spaces, check whether the token expired or was revoked in DigitalOcean, and verify the user who created the token is still a member of your DigitalOcean Team. |
403 Forbidden / Write action blocked (Read-Only token) | The token was created with read-only Custom Scopes (or only a read-only token is shared with the user). Generate or share a token with the required create/update/delete scopes and click Verify in Valstorm. |
| Wrong Team or missing Projects/Resources | Make sure you switched to your organization's DigitalOcean Team (not your personal account) before generating the token or completing OAuth sign-in. |
| Team members don't see the integration | Confirm the users or their User Group are added under Shared With on the relevant Organization Scope token card. |
| Delete operation blocked by Valstorm | Resources tagged production, valstorm-prod, protected, prod-locked, or do-not-delete are protected by Valstorm's built-in production guardrail to prevent accidental deletion. |
Need help? You can also view this guide inside Valstorm at Command Center → Integrations → DigitalOcean → Setup Guide, or ask your Valstorm AI assistant to walk you through setting up or verifying DigitalOcean.