Make tctl bots add prompt for MFA just once #37121
Conversation
|
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
|
seeing this with my v15.0.0-alpha.5 staging tenant cluster: |
Lisa and I ran into a similar issue when testing #37071. The issue is that #37065 has not yet made it to cloud staging, and in that PR is a fix for 57bc9c65a0293bf0c40ec5ee0c97c38c0374cc0d should fix this nil marshal issue, but instead a |
0085aa7 to
538a29b
Compare
* Reuse MFA for tctl bots add. * Fix MFA required check for admin role. * Remove broken auth preference check; Fix IsMFARequiredCheck for built in Admin role. * Check for nil MFA response in MFA retry logic. * Refactor MFA ceremony to return a custom error when MFA is not required. * Fix TestAdminActionMFA unit tests. * Fix unit test.
* Reuse MFA for tctl bots add. * Fix MFA required check for admin role. * Remove broken auth preference check; Fix IsMFARequiredCheck for built in Admin role. * Check for nil MFA response in MFA retry logic. * Refactor MFA ceremony to return a custom error when MFA is not required. * Fix TestAdminActionMFA unit tests. * Fix unit test.
Updates
tctl bots addto perform the admin action MFA ceremony upfront, allowing reuse for the initial version check call toCreateBotas well as the follow up calls toUpsertTokenandCreateBot.Before this change it worked like this:
86feaa7e6177161e2e798f33e83f67202accccb2 fixes an issue shared by the
tctl users addchange