Skip to content

Commit

Permalink
Merge pull request #89 from bgilbert/public-read
Browse files Browse the repository at this point in the history
synctiles: don't set explicit `public-read` ACL on objects
  • Loading branch information
bgilbert authored Jun 7, 2024
2 parents 877cdab + d8c1256 commit d859b8a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions demo/_synctiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ def upload_metadata(
self, path: PurePath, item: Any, cache: bool = True
) -> None:
self.object(path).put(
ACL='public-read',
Body=json.dumps(item, indent=1, sort_keys=True).encode(),
CacheControl=CACHE_CONTROL_CACHE
if cache
Expand Down Expand Up @@ -302,7 +301,6 @@ def sync(self) -> PurePath | BaseException:
new_md5 = md5(buf.getbuffer())
if self.cur_md5 != new_md5.hexdigest():
storage.object(self.key_name).put(
ACL='public-read',
Body=buf.getvalue(),
CacheControl=CACHE_CONTROL_CACHE,
ContentMD5=base64.b64encode(new_md5.digest()).decode(),
Expand Down Expand Up @@ -632,7 +630,6 @@ def start_retile(
print("Storing static files...")
for relpath, opts in BUCKET_STATIC.items():
storage.object(relpath).put(
ACL='public-read',
Body=opts.get('data', '').encode(),
ContentType=opts['content-type'],
)
Expand Down

0 comments on commit d859b8a

Please sign in to comment.