By DigitalOcean
As your application grows, managing its credentials becomes harder to keep up with. A database password shared across several services can require a coordinated update each time it changes, especially when each deployment maintains its own copy. A dedicated secrets service gives your team a central place to manage those credentials, but connecting an external platform to your DigitalOcean workloads adds work of its own.
DigitalOcean Secrets Manager is now generally available to eligible customers in supported regions. You can manage credentials centrally, control access through DigitalOcean IAM, and review activity in audit logs without operating separate secrets infrastructure. Secrets Manager also integrates with DigitalOcean Kubernetes (DOKS), so your pods can read secrets as mounted files without calling the Secrets Manager API.
In our recent article on how DigitalOcean manages credentials for autonomous agents, we explained how Managed Agents use connected services without holding the credentials themselves. Secrets Manager builds on the same underlying foundation to support the broader needs of your applications.
Changing a database password shouldn’t require rebuilding your application just because the old value was packaged with it. Secrets Manager lets you store that credential separately and retrieve it through the API, so credential values can change without being embedded in a new application build.
You can store a database username and password together in a named secret, with an external API key in another. Your application retrieves the values it needs to connect to those services. How it picks up a changed value depends on the application, which may need to reload its configuration or restart.
On DigitalOcean Kubernetes, a DigitalOcean provider for the Kubernetes Secrets Store CSI Driver mounts selected secret values as files in your pods, so application code doesn’t need to call the Secrets Manager API. When automatic secret rotation is enabled in the CSI Driver, the driver periodically checks for new secret versions and refreshes the mounted files. Each check counts as a retrieval request. Your application picks up the new value the next time it reads the file.
Secrets Manager stays the source of truth for the credential. See the DOKS integration documentation to set it up.
As more people work on your application, access to its credentials needs to remain deliberate. Secrets Manager checks each request against DigitalOcean IAM, so your team decides who can create, view, retrieve, or administer secrets. You remain responsible for the credentials you store, for granting access appropriately, and for securing your applications and the services that issue those credentials.
Audit logs are designed to record who requested or changed a secret and whether the request succeeded, without including the secret value. When something unexpected happens, audit logs can help provide a record to work from.
When you replace an API key, you can save the new value as a version of the existing secret. The secret’s name stays the same, so applications referencing it can retrieve the active version without needing a new secret reference in their configuration. Secrets Manager keeps the five most recent versions, so you can revert in the Control Panel or API if a new value causes problems.
This helps provide your team a consistent way to manage credential changes, while leaving you in control of the transition. Coordinate the replacement with the service that issues the key and verify that your application is using the new value before revoking the old one. Secrets Manager manages the stored versions; it does not automatically change credentials in the service that issued them.
Secrets Manager currently includes a monthly allowance of 25 secret-month equivalents and 100,000 successful retrieval requests per billing account. Beyond that allowance, you pay for how long you store secrets and how often they’re retrieved.
| Capability | Monthly allowance | Rate above allowance |
|---|---|---|
| Secret storage | 25 secret-month equivalents | $0.40/secret-month equivalent |
| Successful retrieval requests | 100,000 requests | $0.05/10,000 requests |
One secret stored for a full month equals one secret-month, with storage prorated for partial-month use. The allowance applies across your account’s projects and regions. Versioning and management operations currently carry no separate charge, and failed requests are currently not billed. Retrievals through the DigitalOcean Kubernetes integration count toward the same allowance and rate, including the checks the provider makes for new versions when automatic secret rotation is enabled. Your request volume depends on how many secrets your pods mount and how often the provider checks.
For example, storing 100 secrets for a full month and making 500,000 successful retrieval requests would cost $32: $30 for storage above the allowance and $2 for retrievals. See the pricing page for details. Prices are in U.S. dollars, exclude applicable taxes, and are subject to change. The example is illustrative only.
Start with a sample database password so you can try the workflow without using a live credential. Make sure you’re working in the intended DigitalOcean team and have permission to create secrets.
Open Security → Secrets in the DigitalOcean Control Panel and select Create Secret.
Name the secret app-database and select a supported region.
Add a key named password with the dummy value demo-password-not-for-production. You can add related values, such as a username, as additional key-value pairs.
Select Create Secret to save it.
Open the secret’s details page and confirm that app-database appears in the region you selected. Check that the password key is present and an active version is shown. Secret values are masked after they are stored.
Install a supported version of doctl and authenticate it for the intended account and team. Check your account connection with:
- doctl account get
The following example creates a separate secret named app-database-cli. Replace YOUR_SUPPORTED_REGION with a region available to your team. The password is a dummy value.
- doctl secrets create app-database-cli \
- --region YOUR_SUPPORTED_REGION \
- --value password=demo-password-not-for-production
Passing a real credential directly on the command line can leave it in shell history. For real credentials, use --interactive, which prompts for masked values, or --from-env-file.
Use the supported retrieval command to read the value back and confirm the workflow before connecting your application.
- doctl secrets get app-database-cli --region YOUR_SUPPORTED_REGION --show
Use only the dummy credential for this example. Your application can then use the Secrets Manager API to retrieve its credentials.
Install the Secrets Store CSI Driver and the DigitalOcean provider on your cluster. Create a SecretProviderClass that references app-database, then configure your pod to mount a CSI volume that uses that class.
See the Secrets Manager documentation for full setup instructions and supported commands. Have additional questions or need assistance? Contact our support team.
We are evaluating bringing Secrets Manager to more of the DigitalOcean services your applications run on, with priorities informed by customer feedback and other factors.
DigitalOcean Secrets Manager is now generally available. Create your first secret and connect it to the workloads that need it.
This blog post contains forward-looking statements within the meaning of the Private Securities Litigation Reform Act of 1995, including statements about planned product availability, features, and integrations. These statements reflect our current plans, are subject to risks and uncertainties that could cause actual results to differ materially, and are not a commitment to deliver any material, feature, or functionality. For more information on these risks, see the “Risk Factors” sections of DigitalOcean’s most recent Annual Report on Form 10-K and subsequent Quarterly Reports on Form 10-Q filed with the SEC. DigitalOcean undertakes no obligation to update these statements except as required by law.

Shridhar Pandey


DigitalOcean