S3 - object storage. This is not a hierarchical file system and does not actually have βfoldersβ.
Object keys can have prefixes that are limited by agreement with / .
This creates the illusion of folders, but itβs not the same as the actual hierarchy. All object permissions are independent, taking into account policies (which may also contain links to the prefix).
But to say: "786 and 786 / html do not have public permission", but "786 / html / images" has public permission, it does not make sense in S3, since the objects "under" these "folders" are not actually associated with them.
Regardless of what you use to work with your bucket, you can create the impression that everything is different, or it can manipulate the permissions of objects in the folder and create the impression that these permissions are inherited.
If you intend to make the html file visible only with a signed URL or to make images visible only with a page (and not self-loading), then your code will also have to fully qualify and sign the URLs for the embedded images (and the file, if you want so that it is also private).
Michael - sqlbot
source share