Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions aws/logs_monitoring/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,10 @@ Resources:
Action:
- s3:GetObject
Resource: "*"
- Effect: Allow
Action:
- kms:Decrypt
Copy link
Contributor

@tianchu tianchu Sep 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guitarrapc According to my tests, if you use the AWS managed CMK (i.e., key aws/s3), no extra permissions are required for the Forwarder to download the object. If you use a customer managed CMK, the Forwarder only needs kms:Decrypt for downloading. I guess the other kms permissions you listed are required for uploading objects to the bucket, which means they are not needed by the Forwarder? Can you confirm and update the PR if only adding kms:Decrypt works for you as well? Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That make sence. AS CloudTrail only allow CMK to encypt with SSE, I foced use my CMK.
Let me check permission at my lab.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tianchu Thanks, I've tested on my lab and confirm only kms:Decrypt is needed for downloading.
I've rebase and pushed fix.
can you review?

Resource: "*"
- Effect: Allow
Action:
- secretsmanager:GetSecretValue
Expand Down