{"id":6631,"date":"2021-05-10T17:28:07","date_gmt":"2021-05-10T14:28:07","guid":{"rendered":"https:\/\/mummila.net\/kommentit\/?p=6631"},"modified":"2021-05-10T17:28:07","modified_gmt":"2021-05-10T14:28:07","slug":"no-backup-recovery-code-mechanism-for-mfa","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2021\/05\/10\/no-backup-recovery-code-mechanism-for-mfa\/","title":{"rendered":"No backup\/recovery code mechanism for MFA"},"content":{"rendered":"<h4>Summary<\/h4>\n<p>After setting up multi-factor authentication, losing the authentication code-generating device means losing access to the Mattermost account. While having MFA is excellent, I&#8217;m afraid to set it up for my admin user account (which is the one most critically needing it), because there&#8217;s no recovery mechanism in case I lose my authenticator device.<\/p>\n<h4>Steps to reproduce<\/h4>\n<ol>\n<li><a href=\"https:\/\/docs.mattermost.com\/deployment\/auth.html\" rel=\"nofollow\">Enable up multi-factor authentication in the System Console<\/a><\/li>\n<li>Configure 2FA with an authenticator app on your phone<\/li>\n<li>Break\/lose\/have your phone stolen<\/li>\n<li>Try to log in<\/li>\n<\/ol>\n<h4>Expected behavior<\/h4>\n<p>Have a &#8221;use a backup code instead&#8221; link next to the MFA token prompt.<\/p>\n<h4>Observed behavior (that appears unintentional)<\/h4>\n<p>There&#8217;s no alternative way to provide the MFA. You can not log in.<\/p>\n<h4>Possible fixes<\/h4>\n<p>None available AFAICT. There&#8217;s no way to\u00a0<a href=\"https:\/\/mattermost.uservoice.com\/forums\/306457-general\/suggestions\/15071799-implement-2-factor-authentication-using-yubikey-ha\" rel=\"nofollow\">add security keys as alternatives<\/a>\u00a0either.<\/p>\n<p><a href=\"https:\/\/mattermost.atlassian.net\/browse\/MM-5947\" rel=\"nofollow\">There&#8217;s an existing Jira ticket ticket about this<\/a>\u00a0(and it&#8217;s linked to\u00a0<a href=\"https:\/\/github.com\/mattermost\/mattermost-server\/pull\/11676#issuecomment-568112059\" data-hovercard-type=\"pull_request\" data-hovercard-url=\"\/mattermost\/mattermost-server\/pull\/11676\/hovercard\">an abandoned PR<\/a>), but it&#8217;s closed as &#8221;<a href=\"https:\/\/mattermost.productboard.com\/feature-board\/1097524-master-feature-list\/features\/4397323\/detail\" rel=\"nofollow\">moved to ProductBoard<\/a>\u00a0for prioritization&#8221;, and I don&#8217;t know what&#8217;s happened since then, as I don&#8217;t have access to ProductBoard (that I know of).<\/p>\n<h4>Mattermost version<\/h4>\n<p>v5.34.2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Losing the MFA device means losing access to the account. I&#8217;m afraid to set it up for my admin account, which is the one most critically needing it.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14049,19],"class_list":["post-6631","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-mattermost","tag-security","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=6631"}],"version-history":[{"count":3,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6631\/revisions"}],"predecessor-version":[{"id":6634,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6631\/revisions\/6634"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=6631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=6631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=6631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}