For the complete documentation index, see llms.txt. This page is also available as Markdown.
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 ... }


Last updated

Was this helpful?