turbot/steampipe-mod-aws-compliance

Query: elb_application_lb_http_drop_invalid_header_enabled

Usage

powerpipe query aws_compliance.query.elb_application_lb_http_drop_invalid_header_enabled

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 || ' is configured to drop invalid HTTP headers.'
else title || ' is not configured to drop invalid HTTP headers.'
end as reason
, region, account_id
from
aws_ec2_application_load_balancer;

Controls

The query is being used by the following controls: