News for hackers. Stuff that matters.
Re:In Digital Ocean, S3-like space keys can access all your ... by sergioisidoro on Sunday October 01, 2023 @05:57AM (#37724394)
S3 (and similar storages) have caused plenty of security issues in several occasions (usually because of misconfigured buckets, making all contents available to the public). Given this, it would be expected that companies would pay a bit more attention to the security of these data storage methods.

However, in Digital Ocean, by design, you can't restrict keys to certain buckets. Once you issue a key, it can access all buckets within your project, with all operations (list, read, delete) files.

The issue has been reported and is known for a long time. It's even the top voted "idea" in the company portal.

Posting this here in hopes to bring awareness of this issue.

Re:In Digital Ocean, S3-like space keys can access all your ... by karambir on Sunday October 01, 2023 @07:07AM (#37724774)
Things like these are why I stopped using digitalocean.

They had issues with DNS PTR records too for years. Same for initial auth tokens being global. I had hopes for them and used them exclusively at 1 time.

Re:In Digital Ocean, S3-like space keys can access all your ... by eek2121 on Sunday October 01, 2023 @07:16AM (#37724820)
Really? I have had no issues using them for basic hosting.
Re:In Digital Ocean, S3-like space keys can access all your ... by dcow on Sunday October 01, 2023 @09:06AM (#37725569)
My read on this situation is that DO is holding out until they have a comprehensive IAM solution. If you need IAM, don’t use DO. If you can live without IAM, DO is pretty nice.
Re:In Digital Ocean, S3-like space keys can access all your ... by k8sToGo on Sunday October 01, 2023 @07:24AM (#37724871)
Isn't this usually solved through some form of IAM policies? Does DO not have this?
Re:In Digital Ocean, S3-like space keys can access all your ... by Operyl on Sunday October 01, 2023 @07:25AM (#37724879)
No such luck there, but this is kind of the MO for DigitalOcean, sadly.
Re:In Digital Ocean, S3-like space keys can access all your ... by dcow on Sunday October 01, 2023 @09:10AM (#37725603)
I think DO is doing fine addressing their target market. I also wish they had IAM but you have to admit IAM is huge and messy and is often more about managing your employees than your infrastructure. I’m okay waiting for them to get it right rather than rushing out a quick half baked idea that ruins their entire product stack err platform.
Re:In Digital Ocean, S3-like space keys can access all your ... by Operyl on Sunday October 01, 2023 @09:38AM (#37725842)
I don't care for the full on flexibility of IAM, but I'd kill for a simple "this key is for this bucket" feature. That doesn't seem so far fetched, I don't need per-object permissions within a single bucket!
Re:In Digital Ocean, S3-like space keys can access all your ... by dcow on Sunday October 01, 2023 @12:06PM (#37727292)
Since the bucket namespace is global you can always just use different accounts. But I agree it doesn't seem that hard to add this small feature.
Re:In Digital Ocean, S3-like space keys can access all your ... by londons_explore on Sunday October 01, 2023 @07:29AM (#37724904)
As a user, you can fix this by having a proxy that fits in front and manages ACL's.

Obviously you have to pay for resources for that proxy, and it's probably going to want a large bandwidth allocation. Lucky because DO doesn't charge for bandwidth.

Re:In Digital Ocean, S3-like space keys can access all your ... by rmbyrro on Sunday October 01, 2023 @07:39AM (#37724958)
If I have to implement and manage an ACL myself (such a basic feature!!), it's better to go ahead and implement something like min.io and ditch DO entirely.
Re:In Digital Ocean, S3-like space keys can access all your ... by undyingtrillion on Sunday October 01, 2023 @09:06AM (#37725576)
This is mostly true, but there is a case where you use your transfer pool.

From their product docs:

Droplets have their own transfer allowance, independent of Spaces. Traffic from Droplets to Spaces does not count against your Spaces transfer allowance (because inbound bandwidth to Spaces is free), but does currently count against your Droplets’ outbound transfer allowance.

https://docs.digitalocean.com/products/spaces/details/pricin...

Re:In Digital Ocean, S3-like space keys can access all your ... by dang on Sunday October 01, 2023 @01:53PM (#37728523)
I'm afraid you broke the site guidelines by using the submission title to editorialize. Please see https://news.ycombinator.com/newsguidelines.html: "Please use the original title, unless it is misleading or linkbait; don't editorialize."

If you want to say what you think is important about a page, that's fine, but do it by adding a comment to the thread. Then your view will be on a level playing field with everyone else's: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&so.... Alternatively, you could have made a text post to communicate what you think is important about the issue, and then your title would have been fine.

What's not ok on HN is to use the title field as a way to comment on an issue, because then the submitter gets a privileged position relative to other commenters. Since the title is by far the largest influence on a thread, we want to avoid that. Being the submitter of a page shouldn't confer any extra special power over the discussion.