Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor fargate profile to only create securitygrouppolicy optionally, and create it part of fargate EKS cluster deployment #72

Merged
merged 7 commits into from
Jun 23, 2023

Conversation

thepoppingone
Copy link
Contributor

@thepoppingone thepoppingone commented Jun 23, 2023

Also fix fargate logger not having permissions to write logs to cloudtrail

Comment on lines +89 to +104
data "aws_iam_policy_document" "fargate_logging" {
#checkov:skip=CKV_AWS_111:Restricted to Cloudwatch Actions only
#checkov:skip=CKV_AWS_356: Only logs actions
statement {
sid = ""
effect = "Allow"
resources = ["*"]

actions = [
"logs:CreateLogStream",
"logs:CreateLogGroup",
"logs:DescribeLogStreams",
"logs:PutLogEvents",
]
}
}

Check warning

Code scanning / checkov

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
Comment on lines +89 to +104
data "aws_iam_policy_document" "fargate_logging" {
#checkov:skip=CKV_AWS_111:Restricted to Cloudwatch Actions only
#checkov:skip=CKV_AWS_356: Only logs actions
statement {
sid = ""
effect = "Allow"
resources = ["*"]

actions = [
"logs:CreateLogStream",
"logs:CreateLogGroup",
"logs:DescribeLogStreams",
"logs:PutLogEvents",
]
}
}

Check warning

Code scanning / checkov

Ensure IAM policies does not allow write access without constraints

Ensure IAM policies does not allow write access without constraints
@thepoppingone thepoppingone merged commit cc14d19 into main Jun 23, 2023
@thepoppingone thepoppingone deleted the fargate-security-policy-refactor branch July 1, 2023 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants