Settings

Theme

GCP Bucket Name Restrictions

5 points by eeegnu 4 years ago · 1 comment · 1 min read


I was creating a bucket on GCP and noticed what I thought was an odd restriction[0]:

> Bucket names cannot begin with the "goog" prefix.

> Bucket names cannot contain "google" or close misspellings, such as "g00gle".

I'm mostly just curious about the motivation behind these restrictions. My guess is that it's to avoid buckets that make it seem like they're owned by google, but there doesn't seem to be equivalent restrictions on azure[1] or aws[2] (they do disallow the prefix "xn--" and the suffix "-s3alias", but these seem functional.) Is there some other reasoning?

[0] https://cloud.google.com/storage/docs/naming-buckets

[1] https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata

[2] https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html

prirun 4 years ago

> guess is that it's to avoid buckets that make it seem like they're owned by google

You might be right, though that is kinda silly because it's trivial to add a cname dns alias to a bucket that looks like a googly name.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection