-
Notifications
You must be signed in to change notification settings - Fork 360
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
Fix bug in multipart upload s3 #7512
Conversation
Can you elaborate on how this connects to the issue? |
@arielshaqed @itaiad200 I've looked at s3 docs and it seems like pre-signed URLs can have an expiration of up to 7 days. |
|
|
@@ -666,6 +666,7 @@ func (a *Adapter) CreateMultiPartUpload(ctx context.Context, obj block.ObjectPoi | |||
Bucket: aws.String(bucket), | |||
Key: aws.String(key), | |||
ContentType: aws.String(""), | |||
Expires: aws.Time(time.Now().Add(a.preSignedExpiry)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note however that this is not necessarily the expiration time that the generated URL will have! That is capped also by the STS expiry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.