Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] aws-s3-public-bucket require https, allow disabling versioning #278

Merged
merged 2 commits into from
Jan 12, 2021

Conversation

mbarrien
Copy link
Contributor

@mbarrien mbarrien commented Jan 12, 2021

Summary

Adds functionality from CZI's private version of this module.

  • Add ability to disable versioning by default on public S3 buckets.
    Leaves default behavior of enabling versioning intact
  • Optionally require TLS for every get object. Default to true.

* Add ability to disable versioning by default on public S3 buckets.
  Leaves default behavior of enabling versioning intact
* Require TLS for every action
ryanking
ryanking previously approved these changes Jan 12, 2021
Copy link
Contributor

@ryanking ryanking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can require TLS unconditionally because S3 website hosting still only works with http. :(

@mbarrien
Copy link
Contributor Author

This is a separate module from aws-single-page-static-site. In the only context it is used in CZI's code base, this has been working fine.

@mbarrien mbarrien force-pushed the mbarrien/public-bucket-https-versioning branch from f2d9377 to fb1df38 Compare January 12, 2021 21:09
@mbarrien mbarrien force-pushed the mbarrien/public-bucket-https-versioning branch from fb1df38 to 70000e3 Compare January 12, 2021 21:11
@mbarrien mbarrien changed the title aws-s3-public-bucket require https, allow disabling versioning [feature] aws-s3-public-bucket require https, allow disabling versioning Jan 12, 2021
@mbarrien
Copy link
Contributor Author

Made TLS optional via another variable. Please re-review.

@kuannie1 kuannie1 merged commit ae34a72 into main Jan 12, 2021
@kuannie1 kuannie1 deleted the mbarrien/public-bucket-https-versioning branch January 12, 2021 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants