Project

General

Profile

Bug #39300

Bug #39294: mgr/dashboard: Time handling

mgr/dashboard: Can't login with a bigger time difference between user and server or make auth token work with UTC times only

Added by Stephan Müller 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
dashboard/general
Target version:
Start date:
04/15/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
2 - major
Reviewed:
ceph-qa-suite:
Pull request ID:

Description

With the time difference of -7h to the backend, I couldn't log in. The log throw the error `AMT: user info changed after token was issued, iat=%s lastUpdate=%s` which can be found in line 150 in `dashboard/services/auth.py`. I removed as a quick fix line 146 in the same document which said that `user.lastUpdate <= token['iat']` has to be true in order to login.


Related issues

Related to mgr - Bug #38600: mgr/dashboard: dashboard giving 401 unauthorized. Duplicate 03/06/2019
Related to mgr - Bug #38428: mgr/dashboard: dashboard giving 401 unauthorized Resolved 02/22/2019
Copied to mgr - Backport #39524: nautilus: mgr/dashboard: Can't login with a bigger time difference between user and server or make auth token work with UTC times only Resolved

History

#1 Updated by Ricardo Dias 2 months ago

  • Assignee set to Ricardo Dias

#2 Updated by Ricardo Dias 2 months ago

  • Pull request ID set to 27604

#3 Updated by Lenz Grimmer 2 months ago

  • Status changed from New to Need Review
  • Target version set to v15.0.0
  • Backport set to nautilus
  • Affected Versions v14.0.0, v14.2.0, v14.2.1 added

#4 Updated by Lenz Grimmer 2 months ago

  • Related to Bug #38600: mgr/dashboard: dashboard giving 401 unauthorized. added

#5 Updated by Lenz Grimmer 2 months ago

  • Related to Bug #38428: mgr/dashboard: dashboard giving 401 unauthorized added

#6 Updated by Lenz Grimmer about 2 months ago

  • Status changed from Need Review to Pending Backport

#7 Updated by Nathan Cutler about 2 months ago

  • Copied to Backport #39524: nautilus: mgr/dashboard: Can't login with a bigger time difference between user and server or make auth token work with UTC times only added

#8 Updated by Lenz Grimmer about 1 month ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF