Page MenuHomePhabricator

Allow viewing recovery codes again?
Open, Needs TriagePublic

Description

It seems to be getting more common these days that sites will let users view their recovery codes again, rather than just generating new ones (as we want to do in T150601: Add option to generate new set of recovery codes; and we should still do, even if we implement this task).

Does this make sense for us?

Also, when you do view them, you get a notification (at least via email) that they have been viewed... Which is kinda nice

Screenshot 2023-12-26 at 22.25.51.png (550×791 px, 74 KB)

Event Timeline

Reedy renamed this task from Allow viewing scratch/recovery codes again to Allow viewing recovery codes again?.Jan 1 2024, 8:54 PM

Well, more specifically, it would prevent storing recovery codes via one-way hashes. Encrypting them would still be a meaningful security improvement.

In my opinion, if we can regenerate recovery codes only with one click, we don't need the option to view existing recovery codes. I think the risk of storing recovery codes in a recoverable format (I mean not using hash function) is much more bigger than the benefit.

Related to T408759: we are now displaying recovery codes again, but not in a way that everyone expects.