Skip to content

Commit 9a18dbc

Browse files
committed
WIP: Add healthcheck ip ranges
1 parent 9f4957d commit 9a18dbc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/environments/production.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@
8282
config.active_record.dump_schema_after_migration = false
8383

8484
# Enable DNS rebinding protection and other `Host` header attacks.
85-
config.hosts << /.*\.forms\.service\.gov\.uk/
85+
config.hosts [
86+
/.*\.forms\.service\.gov\.uk/,
87+
IPAddr.new('10.10.0.0/16') # for healthchecks in ECS
88+
]
89+
8690
# Skip DNS rebinding protection for the default health check endpoint.
8791
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
8892
end

0 commit comments

Comments
 (0)