Skip to content
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

I get a RequestTimeTooSkewed error when trying to get a file using a pre-signed url #648

Open
timursaikaliev opened this issue Jun 10, 2024 · 1 comment

Comments

@timursaikaliev
Copy link
Contributor

timursaikaliev commented Jun 10, 2024

It looks like the isTimeSkewed check is not working properly.

[s3proxy] D 06-10 15:51:45.496 S3Proxy-Jetty-18 o.gaul.s3proxy.S3ProxyHandler:301 |::] request: Request(GET http://....zip?X-Amz-Expires=604800&X-Amz-Date=20240610T103411Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA......%2F20240610%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=e37cb37c47f66c84b2ae675ba6cc65b854f74a687984fcb7059a553f7fee6b08)@10244eb9
[s3proxy] D 06-10 15:51:45.497 S3Proxy-Jetty-18 o.gaul.s3proxy.S3ProxyHandler:2935 |::] time skewed 1718015651 1718034705
[s3proxy] D 06-10 15:51:45.497 S3Proxy-Jetty-18 o.gaul.s3proxy.S3ProxyHandler:2953 |::] sendSimpleErrorResponse: 403 RequestTimeTooSkewed Forbidden {}

Since there is X-Amz-Expires=604800, the url should work for 7 days, but url works only 15 minutes after creation.
After that I get an error: RequestTimeTooSkewed.
The date on the client and server are correct.
Directly from amazon s3 everything works as it should.

Maybe I have misconfigured something?
Please help me with a solution to the problem. Thanks.

@timursaikaliev
Copy link
Contributor Author

timursaikaliev commented Jun 12, 2024

According to this - "The validation constraint on request date applies only to authenticated requests that do not use query string authentication"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant