Skip to content

Commit

Permalink
feat: Deny HTTP on Karpenter SQS policy (#3080)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksbde authored Jun 27, 2024
1 parent 7cd3be3 commit f6e071c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions modules/karpenter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,27 @@ data "aws_iam_policy_document" "queue" {
]
}
}
statement {
sid = "DenyHTTP"
effect = "Deny"
actions = [
"sqs:*"
]
resources = [aws_sqs_queue.this[0].arn]
condition {
test = "StringEquals"
variable = "aws:SecureTransport"
values = [
"false"
]
}
principals {
type = "*"
identifiers = [
"*"
]
}
}
}

resource "aws_sqs_queue_policy" "this" {
Expand Down

0 comments on commit f6e071c

Please sign in to comment.