Disallow viewing recovery codes after first display

Created on 8 November 2022, about 2 years ago
Updated 28 June 2023, over 1 year ago

Problem/Motivation

As far as I can tell whenever I've seen TFA/MFA paired with recovery codes, its quite evident recovery codes are only shown for one page load.

After which they are never visible to any party and can only be used programmatically to restore access.

Users typically can completely regenerate recovery codes.

Proposed resolution

Never show recovery codes, or
Add configuration to opt in to allowing recovery codes to be shown so long as currentUser is the same as the recovery code user.

Remaining tasks

Decide on approach

User interface changes

Recovery codes are not visible.

User can only regenerate recovery codes.

API changes

Form/controller changes
Optionally config/schema/upgrade path depending on approach.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇦🇺Australia dpi Perth, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇵🇹Portugal jcnventura

    I still think that the default being TRUE would be easier for us maintainers, but I don't truly care about that. The one thing should be that the update hook for existing installations should leave it as TRUE, so as to not suddenly change running sites. However, the release that contains this should warn site admins to change the setting, in order to have better security.

Production build 0.71.5 2024