Add example for disabling the /version page for security hardening (#159)
Per @BCTBB's testing done here: https://fleetdm.slack.com/archives/C051QJU3D0V/p1767198630645379?thread_ts=1767193373.532409&cid=C051QJU3D0V --------- Co-authored-by: Jorge Falcon <22119513+BCTBB@users.noreply.github.com>
This commit is contained in:
1 parent
4e6b55b731
commit
382bde0d91
2 files changed
+32
-3
No files matched your search
+17
-1
@@ -130,7 +130,23 @@ module "byo-vpc" {
|
|||||||
values = ["yes", "true"]
|
values = ["yes", "true"]
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
}]
|
},
|
||||||
|
# This prevents exposing the Fleet and Go versions publicly
|
||||||
|
# {
|
||||||
|
# priority = 9000
|
||||||
|
# actions = [{
|
||||||
|
# type = "fixed-response"
|
||||||
|
# content_type = "text/html"
|
||||||
|
# status_code = "404"
|
||||||
|
# message_body = "<h1><center>404 Not Found</center></h1>"
|
||||||
|
# }]
|
||||||
|
# conditions = [{
|
||||||
|
# path_patterns = [
|
||||||
|
# "/version"
|
||||||
|
# ]
|
||||||
|
# }]
|
||||||
|
# },
|
||||||
|
]
|
||||||
}
|
}
|
||||||
ecs_cluster = {
|
ecs_cluster = {
|
||||||
cluster_name = random_pet.main.id
|
cluster_name = random_pet.main.id
|
||||||
|
|||||||
+15
-2
@@ -196,6 +196,19 @@ module "fleet" {
|
|||||||
# path_patterns = ["*"]
|
# path_patterns = ["*"]
|
||||||
# }]
|
# }]
|
||||||
# }, {
|
# }, {
|
||||||
|
# priority = 8999
|
||||||
|
# actions = [{
|
||||||
|
# type = "fixed-response"
|
||||||
|
# content_type = "text/html"
|
||||||
|
# status_code = "404"
|
||||||
|
# message_body = "<h1><center>404 Not Found</center></h1>"
|
||||||
|
# }]
|
||||||
|
# conditions = [{
|
||||||
|
# path_patterns = [
|
||||||
|
# "/version"
|
||||||
|
# ]
|
||||||
|
# }]
|
||||||
|
# }, {
|
||||||
# priority = 1
|
# priority = 1
|
||||||
# actions = [{
|
# actions = [{
|
||||||
# type = "forward"
|
# type = "forward"
|
||||||
@@ -266,9 +279,9 @@ module "migrations" {
|
|||||||
desired_count = module.fleet.byo-vpc.byo-db.byo-ecs.appautoscaling_target.min_capacity
|
desired_count = module.fleet.byo-vpc.byo-db.byo-ecs.appautoscaling_target.min_capacity
|
||||||
min_capacity = module.fleet.byo-vpc.byo-db.byo-ecs.appautoscaling_target.min_capacity
|
min_capacity = module.fleet.byo-vpc.byo-db.byo-ecs.appautoscaling_target.min_capacity
|
||||||
max_capacity = module.fleet.byo-vpc.byo-db.byo-ecs.appautoscaling_target.max_capacity
|
max_capacity = module.fleet.byo-vpc.byo-db.byo-ecs.appautoscaling_target.max_capacity
|
||||||
|
|
||||||
depends_on = [
|
depends_on = [
|
||||||
module.fleet,
|
module.fleet,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user