Skip to content

2fa session failure after management time sync error  #9515

Open
@borisstoyanov

Description

@borisstoyanov
ISSUE TYPE
  • Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
4.20
CONFIGURATION

2fa enabled and ntpd deamon crashed

OS / ENVIRONMENT
SUMMARY

When there is a time sync problem logging with 2fa is failing with no proper message.


2024-08-12 08:49:00,348 DEBUG [c.c.a.ApiServlet](qtp249034932-69562:ctx-c35c10b9) (logid:c8c78f30) Verifying two factor authentication
2024-08-12 08:49:00,569 ERROR [c.c.a.ApiServlet](qtp249034932-69562:ctx-c35c10b9) (logid:c8c78f30) Two factor authentication 2FA is enabled but not verified, please verify 2FA using validateUserTwoFactorAuthenticationCode API before calling other APIs. Existing session is invalidated.
2024-08-12 08:49:00,594 DEBUG [c.c.a.ApiServlet](qtp249034932-69562:ctx-c35c10b9) (logid:c8c78f30) Verification of two factor authentication failed
2024-08-12 08:49:00,594 DEBUG [c.c.a.ApiServlet](qtp249034932-69562:ctx-c35c10b9) (logid:c8c78f30) ===END===  172.17.35.247 -- GET

STEPS TO REPRODUCE
enable 2fa
crash ntpd server
try to login 
EXPECTED RESULTS
more meaningful error message in logs, not to end user
ACTUAL RESULTS
difficult to troubleshoot logs

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Discuss

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions