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
+45
-43
@@ -22,8 +22,9 @@ variable "vpc" {
|
||||
create_flow_log_cloudwatch_log_group = optional(bool, false)
|
||||
create_flow_log_cloudwatch_iam_role = optional(bool, false)
|
||||
flow_log_max_aggregation_interval = optional(number, 600)
|
||||
flow_log_cloudwatch_log_group_name_prefix = optional(string, "/aws/vpc-flow-log/")
|
||||
flow_log_cloudwatch_log_group_name_suffix = optional(string, "")
|
||||
flow_log_cloudwatch_log_group_name_prefix = optional(string, "/aws/vpc-flow-log/")
|
||||
flow_log_cloudwatch_log_group_name_suffix = optional(string, "")
|
||||
flow_log_cloudwatch_log_group_retention_in_days = optional(number, null)
|
||||
flow_log_cloudwatch_log_group_kms = optional(object({
|
||||
cmk_enabled = optional(bool, false)
|
||||
kms_key_arn = optional(string, null)
|
||||
@@ -96,8 +97,9 @@ variable "vpc" {
|
||||
create_flow_log_cloudwatch_log_group = false
|
||||
create_flow_log_cloudwatch_iam_role = false
|
||||
flow_log_max_aggregation_interval = 600
|
||||
flow_log_cloudwatch_log_group_name_prefix = "/aws/vpc-flow-log/"
|
||||
flow_log_cloudwatch_log_group_name_suffix = ""
|
||||
flow_log_cloudwatch_log_group_name_prefix = "/aws/vpc-flow-log/"
|
||||
flow_log_cloudwatch_log_group_name_suffix = ""
|
||||
flow_log_cloudwatch_log_group_retention_in_days = null
|
||||
flow_log_cloudwatch_log_group_kms = {
|
||||
cmk_enabled = false
|
||||
kms_key_arn = null
|
||||
@@ -757,33 +759,33 @@ variable "fleet_config" {
|
||||
name = "fleetdm-execution-role"
|
||||
})
|
||||
software_installers = optional(object({
|
||||
create_bucket = optional(bool, true)
|
||||
bucket_name = optional(string, null)
|
||||
bucket_prefix = optional(string, "fleet-software-installers-")
|
||||
s3_object_prefix = optional(string, "")
|
||||
cloudfront_distribution_arn = optional(string, null)
|
||||
enable_bucket_versioning = optional(bool, false)
|
||||
expire_noncurrent_versions = optional(bool, true)
|
||||
noncurrent_version_expiration_days = optional(number, 30)
|
||||
create_kms_key = optional(bool, false)
|
||||
kms_key_arn = optional(string, null)
|
||||
kms_alias = optional(string, "fleet-software-installers")
|
||||
extra_kms_policies = optional(list(any), [])
|
||||
tags = optional(map(string), {})
|
||||
create_bucket = optional(bool, true)
|
||||
bucket_name = optional(string, null)
|
||||
bucket_prefix = optional(string, "fleet-software-installers-")
|
||||
s3_object_prefix = optional(string, "")
|
||||
cloudfront_distribution_arn = optional(string, null)
|
||||
enable_bucket_versioning = optional(bool, false)
|
||||
expire_noncurrent_versions = optional(bool, true)
|
||||
noncurrent_version_expiration_days = optional(number, 30)
|
||||
create_kms_key = optional(bool, false)
|
||||
kms_key_arn = optional(string, null)
|
||||
kms_alias = optional(string, "fleet-software-installers")
|
||||
extra_kms_policies = optional(list(any), [])
|
||||
tags = optional(map(string), {})
|
||||
}), {
|
||||
create_bucket = true
|
||||
bucket_name = null
|
||||
bucket_prefix = "fleet-software-installers-"
|
||||
s3_object_prefix = ""
|
||||
cloudfront_distribution_arn = null
|
||||
enable_bucket_versioning = false
|
||||
expire_noncurrent_versions = true
|
||||
noncurrent_version_expiration_days = 30
|
||||
create_kms_key = false
|
||||
kms_key_arn = null
|
||||
kms_alias = "fleet-software-installers"
|
||||
extra_kms_policies = []
|
||||
tags = {}
|
||||
create_bucket = true
|
||||
bucket_name = null
|
||||
bucket_prefix = "fleet-software-installers-"
|
||||
s3_object_prefix = ""
|
||||
cloudfront_distribution_arn = null
|
||||
enable_bucket_versioning = false
|
||||
expire_noncurrent_versions = true
|
||||
noncurrent_version_expiration_days = 30
|
||||
create_kms_key = false
|
||||
kms_key_arn = null
|
||||
kms_alias = "fleet-software-installers"
|
||||
extra_kms_policies = []
|
||||
tags = {}
|
||||
})
|
||||
})
|
||||
default = {
|
||||
@@ -886,19 +888,19 @@ variable "fleet_config" {
|
||||
}
|
||||
}
|
||||
software_installers = {
|
||||
create_bucket = true
|
||||
bucket_name = null
|
||||
bucket_prefix = "fleet-software-installers-"
|
||||
s3_object_prefix = ""
|
||||
cloudfront_distribution_arn = null
|
||||
enable_bucket_versioning = false
|
||||
expire_noncurrent_versions = true
|
||||
noncurrent_version_expiration_days = 30
|
||||
create_kms_key = false
|
||||
kms_key_arn = null
|
||||
kms_alias = "fleet-software-installers"
|
||||
extra_kms_policies = []
|
||||
tags = {}
|
||||
create_bucket = true
|
||||
bucket_name = null
|
||||
bucket_prefix = "fleet-software-installers-"
|
||||
s3_object_prefix = ""
|
||||
cloudfront_distribution_arn = null
|
||||
enable_bucket_versioning = false
|
||||
expire_noncurrent_versions = true
|
||||
noncurrent_version_expiration_days = 30
|
||||
create_kms_key = false
|
||||
kms_key_arn = null
|
||||
kms_alias = "fleet-software-installers"
|
||||
extra_kms_policies = []
|
||||
tags = {}
|
||||
}
|
||||
}
|
||||
validation {
|
||||
|
||||
Reference in new issue
Block a user