Repository scan
nr-forests-access-management
bcgov/nr-forests-access-management · branch main · scanned 25 Jun 2026 · 265 resources
Medium 170
Medium Ensure Secrets Manager secrets should have automatic rotation enabled
Ensure Secrets Manager secrets should have automatic rotation enabled
Where
- ../../infrastructure/server/aurora-v2.tf:131
- ../../infrastructure/server/aurora-v2.tf:169
- ../../infrastructure/server/aurora-v2.tf:207
- ../../infrastructure/server/aurora-v2.tf:240
- ../../infrastructure/server/oidc_clients_fam.tf:57
- ../../lza-infrastructure/terraform/server/aurora-v2.tf:127
- ../../lza-infrastructure/terraform/server/aurora-v2.tf:165
- ../../lza-infrastructure/terraform/server/aurora-v2.tf:203
- ../../lza-infrastructure/terraform/server/aurora-v2.tf:236
- ../../lza-infrastructure/terraform/server/oidc_clients_fam.tf:57
Medium Ensure that Secrets Manager secret is encrypted using KMS CMK
Ensure that Secrets Manager secret is encrypted using KMS CMK
Where
- ../../infrastructure/server/aurora-v2.tf:131
- ../../infrastructure/server/aurora-v2.tf:169
- ../../infrastructure/server/aurora-v2.tf:207
- ../../infrastructure/server/aurora-v2.tf:240
- ../../infrastructure/server/oidc_clients_fam.tf:57
- ../../lza-infrastructure/terraform/server/aurora-v2.tf:127
- ../../lza-infrastructure/terraform/server/aurora-v2.tf:165
- ../../lza-infrastructure/terraform/server/aurora-v2.tf:203
- ../../lza-infrastructure/terraform/server/aurora-v2.tf:236
- ../../lza-infrastructure/terraform/server/oidc_clients_fam.tf:57
Medium Ensure that AWS Lambda function is configured for function-level concurrent execution limit
Ensure that AWS Lambda function is configured for function-level concurrent execution limit
Where
- ../../infrastructure/server/auth_lambda.tf:72
- ../../infrastructure/server/fam_admin_management_api.tf:92
- ../../infrastructure/server/fam_api.tf:96
- ../../infrastructure/server/flyway.tf:123
- ../../lza-infrastructure/terraform/server/auth_lambda.tf:72
- ../../lza-infrastructure/terraform/server/fam_admin_management_api.tf:92
- ../../lza-infrastructure/terraform/server/fam_api.tf:96
- ../../lza-infrastructure/terraform/server/flyway.tf:122
Medium Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
Where
- ../../infrastructure/server/auth_lambda.tf:72
- ../../infrastructure/server/fam_admin_management_api.tf:92
- ../../infrastructure/server/fam_api.tf:96
- ../../infrastructure/server/flyway.tf:123
- ../../lza-infrastructure/terraform/server/auth_lambda.tf:72
- ../../lza-infrastructure/terraform/server/fam_admin_management_api.tf:92
- ../../lza-infrastructure/terraform/server/fam_api.tf:96
- ../../lza-infrastructure/terraform/server/flyway.tf:122
Medium Check encryption settings for Lambda environmental variable
Check encryption settings for Lambda environmental variable
Where
- ../../infrastructure/server/auth_lambda.tf:72
- ../../infrastructure/server/fam_admin_management_api.tf:92
- ../../infrastructure/server/fam_api.tf:96
- ../../infrastructure/server/flyway.tf:123
- ../../lza-infrastructure/terraform/server/auth_lambda.tf:72
- ../../lza-infrastructure/terraform/server/fam_admin_management_api.tf:92
- ../../lza-infrastructure/terraform/server/fam_api.tf:96
- ../../lza-infrastructure/terraform/server/flyway.tf:122
Medium Ensure AWS Lambda function is configured to validate code-signing
Ensure AWS Lambda function is configured to validate code-signing
Where
- ../../infrastructure/server/auth_lambda.tf:72
- ../../infrastructure/server/fam_admin_management_api.tf:92
- ../../infrastructure/server/fam_api.tf:96
- ../../infrastructure/server/flyway.tf:123
- ../../lza-infrastructure/terraform/server/auth_lambda.tf:72
- ../../lza-infrastructure/terraform/server/fam_admin_management_api.tf:92
- ../../lza-infrastructure/terraform/server/fam_api.tf:96
- ../../lza-infrastructure/terraform/server/flyway.tf:122
Medium Ensure IAM policies does not allow write access without constraints
Ensure IAM policies does not allow write access without constraints
Where
- ../../infrastructure/server/auth_lambda.tf:22
- ../../infrastructure/server/fam_admin_management_api.tf:22
- ../../infrastructure/server/fam_api.tf:26
- ../../infrastructure/server/flyway.tf:61
- ../../lza-infrastructure/terraform/server/auth_lambda.tf:22
- ../../lza-infrastructure/terraform/server/fam_admin_management_api.tf:22
- ../../lza-infrastructure/terraform/server/fam_api.tf:26
- ../../lza-infrastructure/terraform/server/flyway.tf:60
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
- ../../infrastructure/server/auth_lambda.tf:22
- ../../infrastructure/server/fam_admin_management_api.tf:22
- ../../infrastructure/server/fam_api.tf:26
- ../../infrastructure/server/flyway.tf:61
- ../../lza-infrastructure/terraform/server/auth_lambda.tf:22
- ../../lza-infrastructure/terraform/server/fam_admin_management_api.tf:22
- ../../lza-infrastructure/terraform/server/fam_api.tf:26
- ../../lza-infrastructure/terraform/server/flyway.tf:60
Medium X-Ray tracing is enabled for Lambda
X-Ray tracing is enabled for Lambda
Where
- ../../infrastructure/server/auth_lambda.tf:72
- ../../infrastructure/server/fam_admin_management_api.tf:92
- ../../infrastructure/server/fam_api.tf:96
- ../../infrastructure/server/flyway.tf:123
- ../../lza-infrastructure/terraform/server/auth_lambda.tf:72
- ../../lza-infrastructure/terraform/server/fam_admin_management_api.tf:92
- ../../lza-infrastructure/terraform/server/fam_api.tf:96
- ../../lza-infrastructure/terraform/server/flyway.tf:122
Medium Ensure WAF2 has a Logging Configuration
Ensure WAF2 has a Logging Configuration
Where
- ../../infrastructure/frontend/waf-firewall-cloudfront.tf:6
- ../../infrastructure/server/waf-firewall.tf:10
- ../../infrastructure/server/waf-firewall.tf:137
- ../../lza-infrastructure/terraform/frontend/waf-firewall-cloudfront.tf:6
- ../../lza-infrastructure/terraform/server/waf-firewall.tf:10
- ../../lza-infrastructure/terraform/server/waf-firewall.tf:137
Medium Ensure AWS API gateway request is validated
Ensure AWS API gateway request is validated
Where
- ../../infrastructure/server/admin_management_api_gateway.tf:20
- ../../infrastructure/server/api-gateway.tf:23
- ../../infrastructure/server/api-gateway.tf:40
- ../../lza-infrastructure/terraform/server/admin_management_api_gateway.tf:20
- ../../lza-infrastructure/terraform/server/api-gateway.tf:23
- ../../lza-infrastructure/terraform/server/api-gateway.tf:40
Medium Ensure there is no open access to back-end resources through API
Ensure there is no open access to back-end resources through API
Where
- ../../infrastructure/server/admin_management_api_gateway.tf:20
- ../../infrastructure/server/api-gateway.tf:23
- ../../infrastructure/server/api-gateway.tf:40
- ../../lza-infrastructure/terraform/server/admin_management_api_gateway.tf:20
- ../../lza-infrastructure/terraform/server/api-gateway.tf:23
- ../../lza-infrastructure/terraform/server/api-gateway.tf:40
Medium Ensure Terraform module sources use a commit hash
Ensure Terraform module sources use a commit hash
Where
- ../../infrastructure/server/admin_management_api_gateway.tf:97
- ../../infrastructure/server/api-gateway.tf:101
- ../../infrastructure/server/aurora-v2.tf:47
- ../../lza-infrastructure/terraform/server/admin_management_api_gateway.tf:97
- ../../lza-infrastructure/terraform/server/api-gateway.tf:105
- ../../lza-infrastructure/terraform/server/aurora-v2.tf:43
Medium Ensure that an S3 bucket has a lifecycle configuration
Ensure that an S3 bucket has a lifecycle configuration
Where
Medium Ensure S3 buckets should have event notifications enabled
Ensure S3 buckets should have event notifications enabled
Where
Medium Ensure that S3 bucket has cross-region replication enabled
Ensure that S3 bucket has cross-region replication enabled
Where
Medium Ensure that S3 buckets are encrypted with KMS by default
Ensure that S3 buckets are encrypted with KMS by default
Where
Medium Ensure the S3 bucket has access logging enabled
Ensure the S3 bucket has access logging enabled
Where
Medium Ensure all data stored in the S3 bucket have versioning enabled
Ensure all data stored in the S3 bucket have versioning enabled
Where
Medium Ensure Create before destroy for API Gateway
Ensure Create before destroy for API Gateway
Where
Medium Missing S3 Lifecycle Policy
S3 bucket without lifecycle rules. Objects are retained indefinitely, increasing storage costs.
How to fix
Define lifecycle rules to transition objects to cheaper storage classes (e.g., Glacier) or delete them after a retention period.
Where
Medium API Gateway REST Instead of HTTP API
aws_api_gateway_rest_api (REST API) costs ~3.5x more per million requests than aws_apigatewayv2_api (HTTP API). Most modern use cases are supported by the HTTP API.
How to fix
Migrate to aws_apigatewayv2_api (HTTP API v2) unless REST-specific features (usage plans, request validation, custom authorizers v1) are required.
Where
Medium Ensure API Gateway stage have logging level defined as appropriate
Ensure API Gateway stage have logging level defined as appropriate
Where
Medium Ensure AWS API Gateway endpoints uses client certificate authentication
Ensure AWS API Gateway endpoints uses client certificate authentication
Where
Medium Ensure AWS API Gateway Rest API attached WAFv2 WebACL is configured with AMR for Log4j Vulnerability
Ensure AWS API Gateway Rest API attached WAFv2 WebACL is configured with AMR for Log4j Vulnerability
How to fix
See Checkov documentation for remediation guidance.
Where
Medium Ensure API Gateway caching is enabled
Medium Ensure API Gateway has X-Ray Tracing enabled
Medium Ensure API Gateway has Access Logging enabled
Ensure API Gateway has Access Logging enabled
Where
Medium Ensure CloudFront distribution has a response headers policy attached
Ensure CloudFront distribution has a response headers policy attached
Where
Medium Ensure AWS CloudFront attached WAFv2 WebACL is configured with AMR for Log4j Vulnerability
Ensure AWS CloudFront attached WAFv2 WebACL is configured with AMR for Log4j Vulnerability
Where
Medium Ensure that S3 bucket has a Public Access block
Ensure that S3 bucket has a Public Access block
Where
Medium Ensure that EC2 is EBS optimized
Ensure that EC2 is EBS optimized
Where
Medium Ensure CloudFront distributions should have origin failover configured
Ensure CloudFront distributions should have origin failover configured
Where
Medium Ensure CloudFront distribution has Access Logging enabled
Ensure CloudFront distribution has Access Logging enabled
Where
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
- lza-infrastructure/terraform/server/ec2_instances.tf:18 $25.00 / mo
- infrastructure/server/ec2_instances.tf:18 $25.00 / mo
Medium Ensure that Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
Medium Ensure S3 bucket Object is encrypted by KMS using a customer managed Key (CMK)
Ensure S3 bucket Object is encrypted by KMS using a customer managed Key (CMK)
Where
Low 2
Low EC2 Detailed Monitoring
Detailed monitoring for EC2 instances incurs extra costs.
How to fix
Disable detailed monitoring if standard 5-minute metrics are sufficient.
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 25 Jun 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.