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:
1 parent
a276eb6a98
commit
7b381e0bbb
25 files changed
+503
-175
No files matched your search
+19
-1
@@ -66,6 +66,24 @@ This module also exposes Aurora MySQL backtracking through `rds_config.backtrack
|
||||
* Set `0` to disable backtracking explicitly.
|
||||
* Leave it `null` to keep the default upstream behavior.
|
||||
|
||||
# S3 Bucket Policy: Deny Non-HTTPS
|
||||
|
||||
All S3 buckets created by this module automatically have a bucket policy that denies any requests made over plain HTTP. No configuration is required.
|
||||
|
||||
When `cloudfront_distribution_arn` is set in `software_installers`, the bucket policy automatically includes an allow statement for CloudFront to read objects. This means the `cloudfront-software-installers` addon no longer manages a bucket policy — it is fully handled here.
|
||||
|
||||
# VPC Flow Log Retention
|
||||
|
||||
The root module now exposes `flow_log_cloudwatch_log_group_retention_in_days` on the `vpc` variable to set CloudWatch log retention for VPC flow logs. It defaults to `null` (infinite retention).
|
||||
|
||||
```hcl
|
||||
vpc = {
|
||||
enable_flow_log = true
|
||||
create_flow_log_cloudwatch_log_group = true
|
||||
flow_log_cloudwatch_log_group_retention_in_days = 365
|
||||
}
|
||||
```
|
||||
|
||||
# Migration Notes
|
||||
|
||||
* Existing environments remain unchanged unless you opt into new KMS or Database Insights settings.
|
||||
@@ -86,7 +104,7 @@ DELETE_OLD_STREAMS=false ./scripts/cloudwatch_logs_kms_migration.sh <log-group-n
|
||||
|
||||
```hcl
|
||||
module "fleet" {
|
||||
source = "github.com/fleetdm/fleet-terraform?depth=1&ref=tf-mod-root-v1.27.0"
|
||||
source = "github.com/fleetdm/fleet-terraform?depth=1&ref=tf-mod-root-v1.30.0"
|
||||
|
||||
certificate_arn = module.acm.acm_certificate_arn
|
||||
|
||||
|
||||
Reference in new issue
Block a user