Do not include Content-Type to presigned URL #505
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#505
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
S3 Authmate allows to generate presign URL even for object upload. However, it uses hardcoded
Content-Type
header in a signature.req.Header.Set(ContentTypeHdr, "text/plain")
This header is not usable for all cases, so consider change it.
Describe the solution you'd like
As simple solution
Content-Type
can be dropped from signature at all, so HTTP client can set any value and get correct output.Describe alternatives you've considered
Provide an option to configure
Content-Type
header value the same way as Authmate allows to configure lifetime.Additional context
Also it would be nice to have an example of a
curl
command to upload file with presigned URL.Do not include content-type to presigned URLto Do not include Content-Type to presigned URL