IoTCoreCustomAuthorizerResponse create invalid payalod
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, rust
- Domain
- backend-api-design, security
Research direction
Start by locating IoTCoreCustomAuthorizerResponse and its policy_documents field, then inspect how IamPolicyDocument values are serialized. Look for related serialization or response tests and verify the completed change cannot produce a policyDocuments array containing null, matching the AWS IoT broker behavior described here.
Written by the indexing model from the issue text.
Description
It seems that IoTCoreCustomAuthorizerResponse can create a payload not accepted by AWS IOT broker.
The following attributes: pub policy_documents: Vec<Option<IamPolicyDocument>> allow a Vec that contains None but AWS IOT broker raise an AUTHORIZATION_FAILURE error in that case.
The corresponding json value is:
"policyDocuments": [
null
]
Should policy_documents type be: Vec<IamPolicyDocument>> instead ?
- Dominant language
- Rust
- Stars
- 3.6k
- Forks
- 397
- Avg merge
- 55m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aws/aws-lambda-rust-runtime
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
aws/aws-lambda-rust-runtime#1099 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 74/100
aws/aws-lambda-rust-runtime#1165 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
aws/aws-lambda-rust-runtime#1161 ·
-
aws/aws-lambda-rust-runtime#1155 · 1 reaction · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
aws/aws-lambda-rust-runtime#1128 · 1 comment · 1 reaction ·
All issues in aws/aws-lambda-rust-runtime
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100