Skip to content

Commit

Permalink
Enforce secure transport for raw-hist-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwoffenden authored Jan 6, 2025
1 parent 7cabd9f commit 4464382
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2422,12 +2422,26 @@ locals {
Resource = "arn:aws:s3:::mojap-raw-hist-dev/hmpps/oasys/*"
Sid = "DenyUnEncryptedObjectUploads-mojap-raw-hist-dev-hmpps-oasys"
},
{
Action = "s3:*"
Condition = {
Bool = {
"aws:SecureTransport" = "false"
}
}
Principal = "*"
Effect = "Deny"
Resource = [
"arn:aws:s3:::mojap-raw-hist-dev/*",
"arn:aws:s3:::mojap-raw-hist-dev"
]
Sid = "DenyInsecureTransport"
},
]
Version = "2012-10-17"
}
)
}

"mojap-raw-hist-preprod" = {
grant = [{
id = data.aws_canonical_user_id.current.id
Expand Down

0 comments on commit 4464382

Please sign in to comment.