Regenerate S3 Authorization header
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, c
- Domain
- cloud, networking
Research direction
Compare the proposed behavior with commit bee8b607780c717b894fc0d977eb4d93878fe555 and the context in PR #209, then trace the S3 HTTP request and Authorization handling. Done means a seek in a large file more than five minutes after the initial token generation does not reuse a stale Authorization header.
Written by the indexing model from the issue text.
Description
Also need to handle the S3 reauthentication, as when seeking within a file more than 5 minutes after the first token generation the HTTP request will be rejected as the auth goes stale - I've implemented this on our code here.
[As noted by @jpiper on PR #209; it's not about [aws_session_]token, but rather that the message hashed into the Authorization header contains a timestamp. So the Authorization header is only valid for a limited time (to prevent replay attacks), and on a large file seeking may send a new HTTP request containing the original now-expired Authorization header.]
- Dominant language
- C
- Stars
- 950
- Forks
- 475
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
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 samtools/htslib
-
Difficulty 3/5 1-2 days Newbie friendliness 74/100
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
-
tabix performance Open
Similar issues
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HarbourMasters/Shipwright#7229 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
riscv-software-src/riscv-isa-sim#2435 · 1 comment ·
-
bug Self Built Image SNAPSHOT Supported Device target/ramips
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100