Skip to content

LG-11463 Don't delete pii_from_doc and pii_from_user on VerifyInfo submission#9645

Merged
soniaconnolly merged 3 commits intomainfrom
sonia-lg-11463-keep-pii-from-doc
Nov 22, 2023
Merged

LG-11463 Don't delete pii_from_doc and pii_from_user on VerifyInfo submission#9645
soniaconnolly merged 3 commits intomainfrom
sonia-lg-11463-keep-pii-from-doc

Conversation

@soniaconnolly
Copy link
Contributor

@soniaconnolly soniaconnolly commented Nov 22, 2023

🎫 Ticket

LG-11463

🛠 Summary of changes

Don't delete pii_from_doc and pii_from_user on VerifyInfo submission. This allows us to enable the browser back button from Phone -> VerifyInfo and further back, without risking that unvalidated user id data from the in person flow could be submitted on the remote flow. It prevents the path of pii_from_user -> applicant -> pii_from doc.

Currently, applicant is deleted in invalidate_steps_after_ssn! which is called from the remote and in_person ssn_controllers on successful ssn submission, which comes after document capture.

This needs to be deployed before the main PR for LG-11463 (#9636) is merged, to allow for the 50/50 state. In that PR, we ensure that applicant is deleted if earlier steps are submitted, which also prevents unverified data from being submitted on the remote flow.

📜 Testing Plan

  • Create account, start IdV
  • Submit error yaml on DocumentCapture, enter in person flow
  • Proceed to submit VerifyInfo
  • Try to access /verify/ssn and /verify/verify_info (remote steps), expect not to be allowed (currently get redirected to DocumentCapture, can click back to go back to in person VerifyInfo)
  • Cancel and start over
  • Proceed through remote flow
  • Expect to continue past VerifyInfo to the phone step without problems
  • Try to access /verify/ssn and /verify/verify_info (completed remote steps), expect not to be allowed

This allows us to enable the browser back button from Phone -> VerifyInfo and further back, without risking
that unvalidated user id data from the in person flow could be submitted on the remote flow. It prevents the
path of pii_from_user -> applicant -> pii_from doc.
@soniaconnolly soniaconnolly requested review from a team and jmhooper November 22, 2023 16:33
Copy link
Contributor

@JackRyan1989 JackRyan1989 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@gina-yamada gina-yamada Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Walked through this with Sonia. pii_from_user was deleted so same_address_as_id never got added via extra_analytics_properties. This change makes sense to me

…pii_from_user is still available

[skip changelog]

Co-authored-by: Gina Yamada <gina.yamada@gsa.gov>
@soniaconnolly soniaconnolly force-pushed the sonia-lg-11463-keep-pii-from-doc branch from ae12e45 to ee1a120 Compare November 22, 2023 18:49
@soniaconnolly soniaconnolly merged commit b73fb4b into main Nov 22, 2023
@soniaconnolly soniaconnolly deleted the sonia-lg-11463-keep-pii-from-doc branch November 22, 2023 19:53
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.

4 participants