Cortex CloudApplication Security
AWS Codecommit branch changes has less than 2 approvals misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_AWS_257
Category - Subcategory
IAM - Overly Permissive
Provider
AWS
Severity
LOW
Framework
Terraform
Impact
The best practice for merging new code into a code base is to have at least two reviewers. AWS CodeCommit can enforce this policy.
How to Fix
[source,go]
resource "aws_codecommit_approval_rule_template" "example" { ... content = <<EOF { "Version": "2018-11-08", "DestinationReferences": ["refs/heads/master"], "Statements": [{ "Type": "Approvers",
"NumberOfApprovalsNeeded": 2, "ApprovalPoolMembers": ["arn:aws:sts::123456789012:assumed-role/CodeCommitReview/*"] }] } EOF ... }
PreviousAWS Execution Role ARN and Task Role ARN are different in ECS Task definitions misconfiguration dete
NextAWS Lambda function URL AuthType set to NONE misconfiguration detected in code
Last updated
Was this helpful?
