-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Fix sse-c HeadObject headers for s3-s3 copy #8345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v2
Are you sure you want to change the base?
Conversation
@hssyoo Hey, this is important for us. What do we do to get this merged? |
Hello, any progress on this one AWS? 👀 This is quite a blocker for us at @deepnote |
Hey @jstastny and all, sorry about the delay getting to this. A few folks pointed us at it internally. Are you still available to proceed here? Understandable if not given the lapsed time, just let us know and we can take it over. If proceeding:
|
Hello @ashovlin 👋 Nice to meet you! To give you the context, I was the one who initiated internal pushing. 🙂 @jstastny is our ex-colleague at @deepnote so I assume this PR is no longer his priority, since he changed jobs. At the moment we don't have much of free capacities, so if you guys were up for taking it over, it would be awesome! 😊 We can assist with any testing you need. Is there anything you need from our side? Adding my teammates to cc: @hc2p @mfranczel Thanks 🙌 |
Hi @ashovlin. Great to see that you started looking into this. As @FilipPyrek said -- I am no longer with Deepnote and don't currently have capacity to finish the steps drafted by you. |
@jstastny no problem, happy to take it over given our delay reviewing. I'll cut a new PR and close this once ready, thanks for the head start! |
Put up #9559 with a slightly different approach, and test coverage. @FilipPyrek @hc2p @mfranczel - can you clarify what S3 -> S3 copy scenerio with different keys you're seeing fail? I was only able to reproduce with unencrypted -> encrypted. I think the fix would still apply logically, but hoping to double-check. I tried both single object and directory, with a mix of file sizes, but not sure if there's a permutation I'm not covering.
|
Thanks @ashovlin I will test it and let you know. |
Hi @ashovlin For us the issue is: I tried now installing the latest AWS CLI from And got the error:
We are calling the CLI like this: aws s3 sync s3://bucket-name/some-prefix/ s3://bucket-name/other-prefix/ --no-follow-symlinks --sse-c AES256 --sse-c-key some-key-here --sse-c-copy-source AES256 --sse-c-copy-source-key some-other-key I see you are testing |
Also fixing #6012, which describes the unencrypted to encrypted copy, while we were running into the same thing with encrypted to encrypted (different key) scenario.
Description of changes:
This fixes the S3 to S3 copy when using SSE-C keys for multipart object.
Without this, the head object, which is part of the copy flow, fails because it uses target sse-c keys when accessing the objects from the source.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.