Spaces buckets, and the keys that reach them
DigitalOcean Spaces is an S3-compatible object storage service, billed as one subscription across all of a team's buckets. Duskwatch is an independent iPhone app for DigitalOcean, in development; it lists your buckets, shows which access keys reach each one, checks the CDN and its certificate, and never reads your files.
Updated
- 3 sourcesprojects, CDN endpoints and keys list your buckets
- Full accesskeys counted and flagged: they reach every bucket
- 7 daysof CDN cache gets a finding
- Nevera secret key or a file
01Keys
Which keys can reach every bucket
A full-access key copied into a CI job years ago reaches every bucket in the team. The bucket screen lists the keys limited to it, and counts the full-access ones.
1 full-access key can reach every bucket
The team finding, with the hint to prefer keys limited to the buckets they need.
Read · 6 mo old
A key limited to this bucket, with its permission and age.
No key limited to this bucket
Only full-access keys, if any, can reach it.
From DigitalOcean's docs
Full-access keys allow all supported S3 APIs on all buckets, including bucket creation and configuration and listing every bucket. Limited keys grant Read or Read/Write/Delete on specific buckets, and the secret appears only once.
DigitalOcean docs: manage Spaces access (external link), verified
Key permissions and how the app shows each one
| Permission | What it reaches | How the app shows it |
|---|---|---|
| Full access | All buckets, including creating and configuring them | Counted below the list, plus a finding for the team |
| Limited: read | Only the buckets chosen for it | Read, with its age |
| Limited: read and write | Only the buckets chosen for it, with read, write and delete | Read and write, with its age |
| No key limited to the bucket | Only full-access keys, if any, can reach it | "No key limited to this bucket" |
From DigitalOcean's docs
In the API, key permissions are read, readwrite or fullaccess. A fullaccess permission cannot be mixed with bucket-scoped ones and takes priority, and the secret key is returned only in the creation response.
DigitalOcean API reference: Spaces keys (external link), verified
02Buckets
Buckets, gathered from three places
DigitalOcean's main API has no endpoint that lists buckets. The app gathers them from your projects, your CDN endpoints and the buckets named in your access keys.
Spaces status in its region
From DigitalOcean's status page; an incident there becomes a finding.
The CDN
Edge host, custom domain, cache time and certificate.
This month's cost
The Spaces line for all buckets, and this bucket's share when DigitalOcean breaks it out.
Keys that reach it
Limited keys with their age.
From DigitalOcean's docs
Spaces is an S3-compatible service for storing and serving large amounts of data.
03CDN
The CDN cache and its certificate
For a bucket behind the Spaces CDN, two cache times and a certificate near its end get a finding. Each says what it costs you.
CDN caches for only 1 minute
Most requests go back to the bucket.
CDN caches for 7 days
Updated files can take up to a week to show, unless you purge the cache in DigitalOcean.
Certificate for static.example.com expires in 9 d
The CDN custom domain stops serving HTTPS without it.
From DigitalOcean's docs
The Spaces CDN edge cache time is one hour by default and can be changed at any time; purging clears files from all edge caches so the next request fetches a fresh copy.
DigitalOcean docs: manage the Spaces CDN cache (external link), verified
A custom subdomain on the Spaces CDN must have an SSL certificate: a managed Let's Encrypt one when DigitalOcean hosts the DNS, or one you upload.
DigitalOcean docs: enable the Spaces CDN (external link), verified
04Cost
This month's Spaces cost
The cost section reads the month's invoice preview. Before the first charge, it says "No Spaces charges yet".
From DigitalOcean's docs
The Spaces subscription includes 250 GiB of storage across all buckets and 1,024 GiB of outbound transfer; more is billed per GiB. Billing begins with your first bucket and ends when you destroy all of them.
What Duskwatch doesn't do here
- No browsing, uploading, downloading or deleting files
- No bucket size, object counts or bucket settings
- No creating or revoking access keys, and never a secret
- No CDN cache purge
- No push for buckets, keys or the CDN cache: they are findings
Questions
Can one Spaces key reach every bucket?
Yes, a full-access key reaches all buckets in the team. Duskwatch counts them and flags "1 full-access key can reach every bucket".
Can I browse files in a bucket?
No. The app never uses the S3 API, so it does not list, open or change files; open the bucket in DigitalOcean for that.
Does it show my secret keys?
No. It shows key names, permissions and ages; DigitalOcean returns a secret only when a key is created.
Will I get a push about Spaces?
No. Spaces problems, including a Spaces incident in the bucket's region, are findings on the bucket screen. The one exception is a Let's Encrypt certificate on a CDN custom domain, which has the certificate push.