turbot/aws_compliance

Query: elb_application_lb_drop_http_headers

Usage

powerpipe query aws_compliance.query.elb_application_lb_drop_http_headers

SQL

select
arn as resource,
case
when load_balancer_attributes @> '[{"Key": "routing.http.drop_invalid_header_fields.enabled", "Value": "true"}]' then 'ok'
else 'alarm'
end as status,
case
when load_balancer_attributes @> '[{"Key": "routing.http.drop_invalid_header_fields.enabled", "Value": "true"}]' then title || ' configured to drop http headers.'
else title || ' not configured to drop http headers.'
end as reason
, region, account_id
from
aws_ec2_application_load_balancer;

Controls

The query is being used by the following controls: