I have a bucket whose contents I want to be publicly readable. However, I do not want the users to be able to list all of the contents by removing the keyname from the URL.
For the sake of simplicity, please assume that I am setting these permissions via the console.
- Setting
Storage Object Viewer
forallUsers
allows me to access the objects as well as list the contents. - Setttings
Storage Legacy Object Reader
forallusers
allows me to access the objects but not list the contents.
This seems odd to me, why is the permission a "Legacy" permission? Does that mean it will be removed in future? This is a very important functionality for me.
Additionally, if it is not going to be removed, how can I ensure all future content published to this bucket inherits the bucket's permission?
Thank you in advance.