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

Token used before issued #993

Closed
dkhachyan opened this issue Aug 31, 2021 · 5 comments
Closed

Token used before issued #993

dkhachyan opened this issue Aug 31, 2021 · 5 comments

Comments

@dkhachyan
Copy link

Hi!
Clock skew causes an error:

API: AssumeRoleWithWebIdentity()
Time: 06:44:14 UTC 08/31/2021
DeploymentID: eddabc74-3092-482d-af2c-8911ddc0b6d6
RequestID: 16A0511DEEF49C40
RemoteHost: 10.253.50.235
Host: tenant1-pool-0-2.tenant1-hl.minio.svc.cluster.local:9000
UserAgent: Go-http-client/1.1
Error: Token used before issued (*jwt.ValidationError)
       4: cmd/sts-errors.go:58:cmd.writeSTSErrorResponse()
       3: cmd/sts-handlers.go:345:cmd.(*stsAPIHandlers).AssumeRoleWithSSO()
       2: cmd/sts-handlers.go:510:cmd.(*stsAPIHandlers).AssumeRoleWithWebIdentity()
       1: net/http/server.go:2049:http.HandlerFunc.ServeHTTP()

jwt-go module does not support clock tolerance dgrijalva/jwt-go#383

It might be a good idea to add clock tolerance for a few seconds?

Workaround:
golang-jwt/jwt#98

@harshavardhana
Copy link
Member

You need to fix your NTP settings @dkhachyan

@dkhachyan
Copy link
Author

I agree that NTP is the best solution and we use it. But even kerberos allows clock tolerance up to 5 min.

@harshavardhana
Copy link
Member

I agree that NTP is the best solution and we use it. But even kerberos allows clock tolerance up to 5 min.

We do not support that sorry for the JWT tokens here, we expect that you have NTP everywhere configured. We may add tolerance in the future.

@dkhachyan
Copy link
Author

Ок, thx!

@dvaldivia
Copy link
Collaborator

Fixed in the latest release minio/minio:RELEASE.2021-11-05T09-16-26Z

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

3 participants