GoogleCloudPlatform / GoogleCloudPlatform/gsutil

Improve error message when service account access token is used with unsynchronized clock

Open
#307 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.