Skip to content

Request time too skewed error after 15 minutes on the same s3 file #588

@bozhonghu

Description

@bozhonghu

Currently the headers for a s3 file are created at the opening of the file and the same signature will be used to access the file but AWS does not allow a request with a signature with the time stamp over 15 minutes in the past. http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html
The requests will yield a 403 Permission Denied from the server and there is no attempt to resign or reopen the file. To fix this I added an update header callback to hfile_libcurl that will be set by hfile_s3 for s3 urls. The function will update the cURL headers for each seek request with a signature created from the current system time. I don't know if this is the best solution but it fixed the issue for me.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions