Skip to content

Do not save additional PII to session when not needed#6072

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/do-not-store-pii-when-not-needed
Mar 16, 2022
Merged

Do not save additional PII to session when not needed#6072
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/do-not-store-pii-when-not-needed

Conversation

@mitchellhenke
Copy link
Contributor

In working on #6054, I noticed that we save the PII bundle in partial or whole states during the proofing process in places where it will never be read. This is not a significant change from a security or privacy perspective, except in that it reduces the copies of PII held in the session during the proofing process.

This PR addresses two of those instances. The first is when calling extract_pii_from_doc, which puts the PII from doc auth into the pii_from_doc key in flow_session. If we are in the hybrid flow, we are in a separate and temporary session, and extract_pii_from_doc will be called in the LinkSentStep and stored properly there. With that, we don't need to save it twice.

The other instance is in the transition from the DocAuthFlow to the address proofing step, where PII is moved from user_session['idv/doc_auth']['pii_from_doc'] to user_session['idv']['applicant']. The storage in user_session['idv']['params'] seems to be leftover from previous work, as I can't find a place it is used.

@mitchellhenke mitchellhenke marked this pull request as ready for review March 16, 2022 15:58
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/do-not-store-pii-when-not-needed branch from a538f74 to 1bb4a70 Compare March 16, 2022 16:19
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/do-not-store-pii-when-not-needed branch from 1bb4a70 to cc56b62 Compare March 16, 2022 16:41
changelog: Internal, Performance, Do not save additional PII to session when not needed
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/do-not-store-pii-when-not-needed branch from cc56b62 to 783173c Compare March 16, 2022 16:46
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/do-not-store-pii-when-not-needed branch 2 times, most recently from 3d37333 to 783173c Compare March 16, 2022 18:56
@mitchellhenke mitchellhenke merged commit 0ea9062 into main Mar 16, 2022
@mitchellhenke mitchellhenke deleted the mitchellhenke/do-not-store-pii-when-not-needed branch March 16, 2022 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants