Skip to content

Use 2L-KMS method to encrypt passwords#2735

Merged
jmhooper merged 1 commit intomasterfrom
jmhooper-2l-kms-password-encryptor
Feb 15, 2019
Merged

Use 2L-KMS method to encrypt passwords#2735
jmhooper merged 1 commit intomasterfrom
jmhooper-2l-kms-password-encryptor

Conversation

@jmhooper
Copy link
Contributor

@jmhooper jmhooper commented Feb 7, 2019

Why: To move entirely away from using UAKs to encrypt passwords

This commit introduces some code to the user model to migrate users to
the 2L-KMS password digests when they sign in. The UAK code will have to
be kept around for as long as we want to be able to decrypt the
passwords of users who have not signed back in.

The 2L-KMS password verifier is configured to read both 2L-KMS and UAK
passwords. There is a switch that can be used to configure it to write
2L-KMS passwords. The default for production is off. This allows us to
recycle to deploy this code, and then recycle again with that switch
flipped to start writing the 2L-KMS digests when all of the instances in
the pool are able to read them.

jgsmith-usds
jgsmith-usds previously approved these changes Feb 13, 2019
**Why**: To move entirely away from using UAKs to encrypt passwords

This commit introduces some code to the user model to migrate users to
the 2L-KMS password digests when they sign in. The UAK code will have to
be kept around for as long as we want to be able to decrypt the
passwords of users who do not sign back in.

The 2L-KMS password verifier is configured to read both 2L-KMS and UAK
passwords. There is a switch that can be used to configure it to write
2L-KMS passwords. The default for production is off. This allows us to
recycle to deploy this code, and then recycle again with that switch
flipped to start writing the 2L-KMS digests when all of the instances in
the pool are able to read them.
@jmhooper jmhooper force-pushed the jmhooper-2l-kms-password-encryptor branch from 3caa455 to 6c5bfcc Compare February 15, 2019 16:31
@jmhooper jmhooper changed the base branch from jmhooper-kms-encryption-context to master February 15, 2019 16:31
@jmhooper jmhooper merged commit d9b9243 into master Feb 15, 2019
@jmhooper jmhooper deleted the jmhooper-2l-kms-password-encryptor branch February 15, 2019 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants