GoogleCloudPlatform / GoogleCloudPlatform/gsutil
Improve error message when service account access token is used with unsynchronized clock
Open
- Dominant language
- Python
- Stars
- 918
- Forks
- 335
- PR merge metrics
- No merged PRs in 30d
Description
From [this StackOverflow question](http://stackoverflow.com/questions/33242572/gsutil-error-failure-invalid-grant-on-windows-after-imaging-hard-drive), there is a confusing failure mode when using service account credentials with a machine clock is set in the future by more than the lifetime on an access token.
I think the simplest approach would be to add a sanity check that a requested token is not immediately expired, though this could have ramifications when retrying token refresh requests.
Contributor guide
Assessment
This issue has not been assessed yet.