Repository scan
haystack
ExpediaDotCom/haystack · branch main · scanned 26 Feb 2026 · 125 resources
High 8
High Unencrypted EBS Volume
EBS volume is not encrypted. This is a security risk and often indicates unmanaged infrastructure.
How to fix
Enable encryption for EBS volumes.
Where
- deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:428
- deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:445
- deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:462
- deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:480
- deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:498
- deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:515
High Old Generation Instance
Usage of old generation EC2 instances (e.g., t2, m3, c4, r3). Newer generations are often cheaper and faster.
How to fix
Upgrade to current generation instances (e.g., t3, m5, c5, r5).
Where
High Missing AWS Budget
No AWS budget configured. Budgets help monitor and control spending with alerts.
How to fix
Create AWS budgets with alerts for forecasted and actual costs to avoid unexpected charges.
Where
Medium 207
Medium Ensure Terraform module sources use a commit hash
Ensure Terraform module sources use a commit hash
Where
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:1
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:19
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:37
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:55
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:74
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:88
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:118
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:151
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:174
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:193
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:210
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:222
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:236
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:246
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/main.tf:25
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:23
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:255
- ../../deployment/terraform/modules/haystack-datastores/aws/main.tf:11
- ../../deployment/terraform/modules/haystack-datastores/aws/main.tf:22
- ../../deployment/terraform/modules/haystack-datastores/aws/main.tf:31
- and 22 more
Medium Ensure Terraform module sources use a tag with a version number
Ensure Terraform module sources use a tag with a version number
Where
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:1
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:19
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:37
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:55
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:74
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:88
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:118
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:151
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:174
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:193
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:210
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:222
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:236
- ../../deployment/terraform/modules/haystack-apps/kubernetes/main.tf:246
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/main.tf:25
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:23
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:255
- ../../deployment/terraform/modules/haystack-datastores/aws/main.tf:11
- ../../deployment/terraform/modules/haystack-datastores/aws/main.tf:22
- ../../deployment/terraform/modules/haystack-datastores/aws/main.tf:31
- and 22 more
Medium Ensure every security group and rule has a description
Ensure every security group and rule has a description
Where
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/security_groups/main.tf:14
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/security_groups/main.tf:24
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/security_groups/main.tf:34
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/security_groups/main.tf:44
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/security_groups/main.tf:54
- ../../deployment/terraform/modules/haystack-datastores/aws/elasticsearch/security_groups/main.tf:1
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/security_groups/main.tf:14
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/security_groups/main.tf:23
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/security_groups/main.tf:32
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/security_groups/main.tf:42
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/security_groups/main.tf:51
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/security_groups/main.tf:60
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/security_groups/main.tf:69
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:5
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:35
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:63
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:105
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:113
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:122
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:133
- and 7 more
Medium Ensure Instance Metadata Service Version 1 is not enabled
Ensure Instance Metadata Service Version 1 is not enabled
Where
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/main.tf:88
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/main.tf:118
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:115
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:228
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:275
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:306
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:338
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:370
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:401
Medium Old Generation Storage (gp2)
Using gp2 EBS volumes when gp3 provides better performance at lower cost.
How to fix
Migrate from gp2 to gp3 volumes. gp3 offers 20% cost savings and better baseline performance.
Where
- deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:287
- deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:318
- deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:350
- deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:382
- deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:413
- deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:133
- deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:244
- deployment/terraform/modules/haystack-datastores/aws/cassandra/main.tf:107
- deployment/terraform/modules/haystack-datastores/aws/cassandra/main.tf:139
Medium Ensure that Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/security_groups/main.tf:1
- ../../deployment/terraform/modules/haystack-datastores/aws/elasticsearch/security_groups/main.tf:1
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/security_groups/main.tf:1
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:5
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:35
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:63
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:92
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:165
Medium Ensure no security groups allow egress from 0.0.0.0:0 to port -1
Ensure no security groups allow egress from 0.0.0.0:0 to port -1
Where
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/security_groups/main.tf:54
- ../../deployment/terraform/modules/haystack-datastores/aws/elasticsearch/security_groups/main.tf:1
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/security_groups/main.tf:42
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:5
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:35
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:63
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:151
- ../../deployment/terraform/modules/k8s-cluster/aws/security-groups/main.tf:214
Medium Missing Spot Instance Usage
No spot instances detected. Spot instances can save 50-90% on compute costs for interruptible workloads.
How to fix
Use spot instances for batch jobs, data analysis, and optional tasks. Consider aws_spot_instance_request or spot_price in launch templates.
Where
- deployment/terraform/cluster/aws/infrastructure/variables.tf:87
- deployment/terraform/modules/k8s-cluster/aws/main.tf:23
- deployment/terraform/modules/k8s-cluster/aws/kops/main.tf:19
- deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:21
- deployment/terraform/modules/haystack-datastores/aws/elasticsearch/main.tf:34
- deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:115
- deployment/terraform/modules/haystack-datastores/aws/cassandra/main.tf:88
Medium Ensure EBS Volume is encrypted by KMS using a customer managed Key (CMK)
Ensure EBS Volume is encrypted by KMS using a customer managed Key (CMK)
Where
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:424
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:441
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:458
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:476
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:494
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:511
Medium Ensure all data stored in the EBS is securely encrypted
Ensure all data stored in the EBS is securely encrypted
Where
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:424
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:441
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:458
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:476
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:494
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:511
Medium Ensure that auto Scaling groups that are associated with a load balancer are using Elastic Load Balancing health checks.
Ensure that auto Scaling groups that are associated with a load balancer are using Elastic Load Balancing health checks.
Where
- ../../deployment/terraform/modules/k8s-cluster/aws/elbs/main.tf:117
- ../../deployment/terraform/modules/k8s-cluster/aws/elbs/main.tf:122
- ../../deployment/terraform/modules/k8s-cluster/aws/elbs/main.tf:127
- ../../deployment/terraform/modules/k8s-cluster/aws/elbs/main.tf:133
- ../../deployment/terraform/modules/k8s-cluster/aws/elbs/main.tf:138
Medium Ensure EC2 Auto Scaling groups use EC2 launch templates
Ensure EC2 Auto Scaling groups use EC2 launch templates
Where
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:19
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:73
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:127
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:179
- ../../deployment/terraform/modules/k8s-cluster/aws/asg/main.tf:223
Medium Ensure that detailed monitoring is enabled for EC2 instances
Ensure that detailed monitoring is enabled for EC2 instances
Where
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/main.tf:88
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/main.tf:118
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:115
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:228
Medium Ensure that EC2 is EBS optimized
Ensure that EC2 is EBS optimized
Where
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/main.tf:88
- ../../deployment/terraform/modules/haystack-datastores/aws/cassandra/main.tf:118
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:115
- ../../deployment/terraform/modules/haystack-datastores/aws/kafka/main.tf:228
Medium Load Balancer for Single Instance
Load balancer detected. Verify it's needed - load balancers cost $15-20/month even if unused.
How to fix
Consider if load balancer is necessary for single-instance deployments or low-traffic applications.
Where
Medium Ensure the ELB has access logging enabled
Medium Ensure that Elastic Load Balancer(s) uses SSL certificates provided by AWS Certificate Manager
Ensure that Elastic Load Balancer(s) uses SSL certificates provided by AWS Certificate Manager
Where
Medium Ensure IAM policies does not allow data exfiltration
Ensure IAM policies does not allow data exfiltration
Where
Medium Ensure IAM policies does not allow permissions management / resource exposure without constraints
Ensure IAM policies does not allow permissions management / resource exposure without constraints
Where
Medium Ensure IAM policies does not allow write access without constraints
Ensure IAM policies does not allow write access without constraints
Where
Medium Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions
Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions
Where
Medium Ensure AWS ACM Certificate domain name does not include wildcards
Ensure AWS ACM Certificate domain name does not include wildcards
Where
Medium Ensure that VPC Endpoint Service is configured for Manual Acceptance
Ensure that VPC Endpoint Service is configured for Manual Acceptance
Where
Medium Ensure that Load Balancer has deletion protection enabled
Ensure that Load Balancer has deletion protection enabled
Where
Medium Ensure Create before destroy for ACM certificates
Ensure Create before destroy for ACM certificates
Where
Medium Ensure Kinesis Firehose delivery stream is encrypted
Ensure Kinesis Firehose delivery stream is encrypted
Where
Medium Ensure that Kinesis Firehose Delivery Streams are encrypted with CMK
Ensure that Kinesis Firehose Delivery Streams are encrypted with CMK
Where
Medium Ensure the ELBv2 (Application/Network) has access logging enabled
Ensure the ELBv2 (Application/Network) has access logging enabled
Where
Medium Missing Cost and Usage Report
No AWS Cost and Usage Report (CUR) configured. CUR provides detailed cost tracking and analysis.
How to fix
Enable AWS Cost and Usage Reports to track spending patterns and identify optimization opportunities.
Where
Low 5
Low Large Root Volume
Oversized root block device. Many workloads don't require large root volumes.
How to fix
Reduce root volume size to minimum required (typically 8-20 GB for most Linux instances).
Where
Low Elastic IP Usage
Elastic IPs are charged if not attached to a running instance or if you have more than one per instance.
How to fix
Release unattached Elastic IPs.
Where
Grades use InfraScan Cloud's current formula, so they can differ from the ones first shown for this scan. Findings reflect the repository on 26 Feb 2026; it may have changed since.
Scan your own repository
InfraScan Cloud scans your repositories and AWS accounts, keeps the history and shows how to fix each finding.