Enforce DENY non-HTTPS requests to s3 buckets (#250)

- Enforces access over HTTPS to all Fleet-terraform created buckets.
- Fixes vpc-flow-logs log retention; now allows configuring the
retention in days.
This commit is contained in:
Jorge Falcon authored and GitHub committed 2026-06-08 18:37:48 -04:00
1 parent a276eb6a98
commit 7b381e0bbb
25 files changed
+503 -175

No files matched your search

@@ -14,14 +14,18 @@ The second link includes a script that can be used to test and see if signed URL
This addon is intentionally out of scope for AWS GovCloud compatibility. CloudFront is not available inside the AWS GovCloud (US) partition, so using it with GovCloud-hosted resources is a cross-partition architecture that should be designed and reviewed separately.
## S3 Bucket Policy
This addon no longer manages an S3 bucket policy on the software installers bucket. The bucket policy is now managed by the core module (`byo-ecs`), which automatically denies non-HTTPS requests and includes the CloudFront allow statement when `cloudfront_distribution_arn` is set.
## Other module requirements
These are the minimum versions of modules required if used:
- tf-mod-root-v1.13.0
- tf-mod-byo-vpc-v1.14.0
- tf-mod-byo-db-v1.10.0
- tf-mod-byo-ecs-v1.9.0
- tf-mod-root-v1.30.0
- tf-mod-byo-vpc-v1.31.0
- tf-mod-byo-db-v1.21.0
- tf-mod-byo-ecs-v1.21.0
- tf-mod-addon-logging-alb-v1.3.0
Previous versions do not allow for proper interaction with both the software installers and logging s3 buckets.
@@ -121,7 +125,7 @@ Now with those encrypted we could setup the module with something like the follo
```
module "cloudfront-software-installers" {
source = "github.com/fleetdm/fleet-terraform/addons/cloudfront-software-installers?ref=tf-mod-addon-cloudfront-software-installers-v1.2.0"
source = "github.com/fleetdm/fleet-terraform/addons/cloudfront-software-installers?ref=tf-mod-addon-cloudfront-software-installers-v3.0.0"
customer = "fleet"
s3_bucket = module.main.byo-vpc.byo-db.byo-ecs.fleet_s3_software_installers_config.bucket_name
# OPTIONAL