-
Notifications
You must be signed in to change notification settings - Fork 125
CUMULUS-4416 adding sqs cross-account #4194
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,7 +63,13 @@ data "aws_iam_policy_document" "lambda_processing_policy" { | |
| "states:SendTaskFailure", | ||
| "states:SendTaskSuccess", | ||
| "states:StartExecution", | ||
| "states:StopExecution" | ||
| "states:StopExecution", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should consider carefully if we want expanding the '*' resource. Generally we should be working to reduce wide-open perms as much as possible to reduce potential blast-radius. Is there a sane way to limit scope/configure this, particularly with an eye to production?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the problem is two fold: a big part of all of this is how we play well with cirrus, and this part is making me regret dealing with cirrus as it puts all of that configuration somewhere else. |
||
| "sqs:SendMessage", | ||
| "sqs:ReceiveMessage", | ||
| "sqs:ChangeMessageVisibility", | ||
| "sqs:DeleteMessage", | ||
| "sqs:GetQueueUrl", | ||
| "sqs:GetQueueAttributes", | ||
| ] | ||
| resources = ["*"] | ||
| } | ||
|
|
@@ -125,18 +131,6 @@ data "aws_iam_policy_document" "lambda_processing_policy" { | |
|
|
||
| } | ||
|
|
||
| statement { | ||
| actions = [ | ||
| "sqs:SendMessage", | ||
| "sqs:ReceiveMessage", | ||
| "sqs:ChangeMessageVisibility", | ||
| "sqs:DeleteMessage", | ||
| "sqs:GetQueueUrl", | ||
| "sqs:GetQueueAttributes", | ||
| ] | ||
| resources = ["arn:aws:sqs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:*"] | ||
| } | ||
|
|
||
| statement { | ||
| actions = ["kms:Decrypt"] | ||
| resources = [module.archive.provider_kms_key_arn] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include (either in PR or here) justification for the change