aws / aws/chalice

SQS IAM role generation does not follow the principle of least privilege

Open
#1,565 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

Automatic generation of IAM roles for an app that subscribes to an SQS queue will give the lambda permission to read and write to all SQS queues on the account.

Shouldn't the lambda only be given permission to read from the queue(s) passed to `@app.on_sqs_message`?

Contributor guide

Open the contributing guide

Research direction

Start by tracing the automatic IAM role generation for applications using @app.on_sqs_message, then inspect how the subscribed SQS queues are represented. Done means the generated Lambda role grants access only to the queue or queues passed to @app.on_sqs_message, rather than all SQS queues in the account.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
authorization, cloud, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.