Skip to content

Commit

Permalink
Enforce secure transport policy on artifacts bucket (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladtsir authored Feb 7, 2020
1 parent ec32a98 commit 5631dcb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/rpdk/core/data/managed-upload-infrastructure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ Resources:
Resource:
- !Sub "arn:${AWS::Partition}:s3:::${ArtifactBucket}"
- !Sub "arn:${AWS::Partition}:s3:::${ArtifactBucket}/*"
- Sid: Require Secure Transport
Action: "s3:*"
Effect: Deny
Resource:
- !Sub "arn:${AWS::Partition}:s3:::${ArtifactBucket}"
- !Sub "arn:${AWS::Partition}:s3:::${ArtifactBucket}/*"
Condition:
Bool:
"aws:SecureTransport": "false"
Principal: "*"

EncryptionKey:
Type: AWS::KMS::Key
Expand Down

0 comments on commit 5631dcb

Please sign in to comment.