Support presigned multipart uploads
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 67/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- backend-api-design, cloud
Research direction
Start at the obstore.sign API and trace its presigning path, then review the object_store 0.14.2 support for signed query parameters and signed headers. Done means callers can provide uploadId and partNumber so each multipart-part URL includes those query parameters in its signature, with coverage for distinct part numbers.
Written by the indexing model from the issue text.
Description
obstore.sign can presign a method and a path, but not extra query parameters. This blocks support for presigned multipart uploads, where a server initiates the upload and hands the browser a presigned URL for each part. The UploadPart request needs uploadId and partNumber in the query string, and they have to be part of the signature.
With boto3, this looks like:
upload_id = s3.create_multipart_upload(Bucket="my-bucket", Key="big.bin")["UploadId"]
part_urls = [
s3.generate_presigned_url(
"upload_part",
Params={
"Bucket": "my-bucket",
"Key": "big.bin",
"UploadId": upload_id,
"PartNumber": part_number,
},
ExpiresIn=3600,
)
for part_number in (1, 2, 3)
]
This produces output like:
https://my-bucket.s3.amazonaws.com/big.bin?uploadId=2~ExampleUploadId&partNumber=1&X-Amz-...&X-Amz-Signature=0f04426e...
https://my-bucket.s3.amazonaws.com/big.bin?uploadId=2~ExampleUploadId&partNumber=2&X-Amz-...&X-Amz-Signature=de64e5f5...
https://my-bucket.s3.amazonaws.com/big.bin?uploadId=2~ExampleUploadId&partNumber=3&X-Amz-...&X-Amz-Signature=6c306d51...
Each part gets its own URL, with the same path but a different partNumber.
Note, upstream support for this recently was released by object_store 0.14.2 via apache/arrow-rs-object-store#771, which added signed query parameters and signed headers to presigning.
- Dominant language
- Python
- Stars
- 842
- Forks
- 50
- Avg merge
- 9h
- Merged PRs (30d)
- 13
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 developmentseed/obstore
-
fsspec: `get_file` silently writes nothing for `file://` and Windows pathsPossibly taken @andyhetianjun claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
developmentseed/obstore#830 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
developmentseed/obstore#823 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
developmentseed/obstore#819 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 18/100
developmentseed/obstore#816 · 3 comments ·
Maintainers usually reply within 1 day
-
`put_async(Path)` opens files synchronously while holding the GILPossibly taken @kylebarron claimed this 14 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
developmentseed/obstore#809 · 1 comment ·
Maintainers usually reply within 1 day
All issues in developmentseed/obstore
Similar issues
-
00 - Bug component: numpy.linalg
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
521xueweihan/HelloGitHub#4543 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
emeryberger/CSrankings#15700 ·
Maintainers usually reply within 2 days
-
Bug | 工作不正常 Triage | 待检查
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
OneDragon-Anything/ZenlessZoneZero-OneDragon#3084 ·
Maintainers usually reply within 1 day
-
Task select patterns with uppercase letters never matchPossibly taken @manobhisriram claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day