You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an old Teleport local user that was likely created before we tracked whether the user has a password set and that I haven't logged in with in a long time.
I noticed that every time I log in to this old user account, I see an error in the logs which happens when we try to set the password state to "has a password".
Failed to set password state error:[
ERROR REPORT:
Original Error: *trace.CompareFailedError user zac did not match expected existing value
The compare and swap operation fails due to a mismatch in the new MfaWeakestDevice field.
I have an old Teleport local user that was likely created before we tracked whether the user has a password set and that I haven't logged in with in a long time.
I noticed that every time I log in to this old user account, I see an error in the logs which happens when we try to set the password state to "has a password".
The compare and swap operation fails due to a mismatch in the new
MfaWeakestDevice
field.Note that the user object in backend storage has no status field at all (and therefore no
MfaWeakestDevice
setting):The comparison appears to fail because of new code added to
GetUser
that mutates the user objectinstead of returning exactly what existed in storage:
teleport/lib/services/local/resource.go
Lines 343 to 346 in cb7a4d5
As a side note,
SetWeakestDevice
is not a great name, as not all MFA methods are devices.SetWeakestMFA
would have been a better choice.The text was updated successfully, but these errors were encountered: