Skip to content

Commit b9400bc

Browse files
committed
eli-279 adding checkov skips for instances where we need to have a level of unrestricted access
1 parent 68aae66 commit b9400bc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

infrastructure/stacks/iams-developer-roles/github_actions_policies.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ resource "aws_iam_policy" "s3_management" {
171171

172172
# API Infrastructure Management Policy
173173
resource "aws_iam_policy" "api_infrastructure" {
174+
#checkov:skip=CKV_AWS_288: Actions require read of wildcard resources to create VPCs, subnets, etc.
175+
#checkov:skip=CKV_AWS_290: Actions require write of wildcard resources to create VPCs, subnets, etc.
176+
#checkov:skip=CKV_AWS_290: Actions require wildcard access for creation of resources.
174177
name = "api-infrastructure-management"
175178
description = "Policy granting permissions to manage API infrastructure"
176179
path = "/service-policies/"
@@ -278,6 +281,10 @@ resource "aws_iam_policy" "api_infrastructure" {
278281

279282
# Create KMS keys policy for GitHub Actions
280283
resource "aws_iam_policy" "kms_creation" {
284+
#checkov:skip=CKV_AWS_290: Actions require wildcard resource (Creation and listing of keys)
285+
#checkov:skip=CKV_AWS_289: Actions require wildcard resource
286+
#checkov:skip=CKV_AWS_355: Actions require wildcard resource
287+
281288
name = "github-actions-kms-creation"
282289
description = "Policy allowing GitHub Actions to manage KMS keys"
283290
path = "/service-policies/"
@@ -294,7 +301,6 @@ resource "aws_iam_policy" "kms_creation" {
294301
"kms:ListAliases",
295302
],
296303
Resource = "*"
297-
#checkov:skip=CKV_AWS_289: Actions require wildcard resource
298304
},
299305
{
300306
Effect = "Allow",

0 commit comments

Comments
 (0)