-
Notifications
You must be signed in to change notification settings - Fork 318
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
Support for specifying custom presign request date #649
Conversation
1977e4d
to
05df7a9
Compare
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.
You might need to update docs/API.md with this new change as well.
oh thanks for reminding! sorry it is my first time contributing here : ) |
No problem this is a nice change.. thanks for the PR |
@cheungpat thanks for this PR. Are you going to update docs/API.md as suggested by @harshavardhana ? |
@vadmeste Oh yes. Thanks for reminding! |
This allows the request date used for presigning the request to be configurable.
05df7a9
to
2306f53
Compare
Updated and rebased. Thanks! |
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
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 & tested
This allows the request date used for presigning the request to be
configurable.
I want to make the request date configurable because I want to specify a custom
request date that is not datetime.utcnow(). For example, I want to make the
presign link to stay unchanged for a certain time period, which makes browser
caching easier.
I understand that this might not be what you guys want but I am going to try
my luck anyway :)
PS:
minio-js
has support for custom request date too, but that parameter is not exposed in exported function.