sigv4 not work when a url contains special characters like `(
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, javascript
- Domain
- authentication, cloud, security
Research direction
Start with src/functions/auth/auth.mjs at line 5 and review how the Lambda imports and uses the SigV4 package. Read the linked smithy-typescript issue for the special-character behavior, then verify whether the latest @smithy/signature-v4 package addresses it. Done means URLs containing !, ', (, ), and * produce a valid signature in this sample.
Written by the indexing model from the issue text.
Description
When a url contains characters like ! ' ( ) *, the signature calculated by the lambda in this sample becomes invalid. More details are in this issue https://github.com/smithy-lang/smithy-typescript/issues/1224
I'm not sure whether the deprecated package @aws-sdk/signature-v4 will get the required patch, but it would be better to bundle the latest @smithy/signature-v4 package in this Lambda.
https://github.com/aws-samples/aws-lambda-function-url-secured/blob/40eb7fed7d02edbb3f3f0ff2d969ed2ff73f8d6c/src/functions/auth/auth.mjs#L5
- Dominant language
- TypeScript
- Stars
- 27
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
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-samples/aws-lambda-function-url-secured
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
aws-samples/aws-lambda-function-url-secured#9 · 1 comment ·
All issues in aws-samples/aws-lambda-function-url-secured
Similar issues
-
comp/desktop P3 type/bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
NousResearch/hermes-agent#118866 ·
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Plugin stuck at "loading" on DSH 0.1.6-alpha.2 — turnTail list slot registration missing options.id Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
chrisparsons83/flexspotff#153 ·