Repository navigation
Fix/issue 1410 persist encrypted 2fa - #1501
Open
tonymaga-bush wants to merge 5 commits into
Open
tonymaga-bush wants to merge 5 commits into
tonymaga-bush wants to merge 5 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title
Fix: Persist encrypted 2FA credentials and state
Description
This PR adds encrypted, persistent storage for two-factor authentication (2FA) data.
Changes
Configuration
Set the following environment variables:
TWO_FACTOR_ENCRYPTION_KEY— encryption key used to protect stored 2FA data.TWO_FACTOR_STORE_PATH— path to the persistent 2FA storage file.Motivation
Previously, 2FA state was not reliably preserved across server restarts. This change ensures that users' 2FA configuration and security state persist securely.
Testing
Automated tests have not yet been run. Please run the relevant test suite and verify persistence across server restarts before merging.
Closes: #1410