Skip to content

Commit

Permalink
WIP: Add healthcheck ip ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasiles committed Apr 4, 2024
1 parent 9f4957d commit 9a18dbc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@
config.active_record.dump_schema_after_migration = false

# Enable DNS rebinding protection and other `Host` header attacks.
config.hosts << /.*\.forms\.service\.gov\.uk/
config.hosts [
/.*\.forms\.service\.gov\.uk/,
IPAddr.new('10.10.0.0/16') # for healthchecks in ECS
]

# Skip DNS rebinding protection for the default health check endpoint.
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
end

0 comments on commit 9a18dbc

Please sign in to comment.