Skip to content

LG-11085 delete idv doc auth session (remote flow_session)#9282

Merged
soniaconnolly merged 5 commits intomainfrom
sonia-lg-11085-delete-idv-doc-auth-session
Oct 2, 2023
Merged

LG-11085 delete idv doc auth session (remote flow_session)#9282
soniaconnolly merged 5 commits intomainfrom
sonia-lg-11085-delete-idv-doc-auth-session

Conversation

@soniaconnolly
Copy link
Contributor

@soniaconnolly soniaconnolly commented Sep 28, 2023

🎫 Ticket

LG-11085

🛠 Summary of changes

Delete last remaining references to remote flow_session accessed as user_session['idv/doc_auth']. Remote flow_session is no longer in use, so this should not cause any 50/50 state issues. (But please let me know if you have any concerns!)

Note to self: Notify deployer when this will be going out, just in case.

📜 Testing Plan

  • Start from SP, create account
  • Start IdV, go part of the way through, cancel and start over
  • Complete remote IdV

# personal keys are generated and stored in the session between requests, but are used
# to decrypt PII bundles, so we treat them similarly to the PII itself.
SENSITIVE_PATHS = [
['warden.user.user.session', 'idv/doc_auth'],
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be find since we are no longer writing anything to this path, much less PII.

Copy link
Contributor

Choose a reason for hiding this comment

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

The comment above this mentions idv/doc_auth and should probably be updated

changelog: Internal, Identity Verification code cleanup, delete final remnants of remote flow_session
@soniaconnolly soniaconnolly marked this pull request as ready for review September 28, 2023 22:57
@soniaconnolly soniaconnolly requested a review from a team September 28, 2023 23:05
1) it's not a hash, it's an Idv::Session; and 2) we use user_session[:idv] everywhere

def reset_doc_auth
user_session.delete('idv/doc_auth')
user_session['idv'] = {}
Copy link
Contributor Author

@soniaconnolly soniaconnolly Sep 28, 2023

Choose a reason for hiding this comment

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

We cleared idv_session above in cancel_session where this is called, and user_session['idv'] is not a hash (it was only a hash in the FSM), and also we use user_session[:idv] everywhere else.

Comment on lines 67 to 69
idv_session = user_session[:idv]
idv_session&.clear
user_session['idv/in_person'] = {}
Copy link
Contributor Author

@soniaconnolly soniaconnolly Sep 28, 2023

Choose a reason for hiding this comment

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

Could this method be merged with SessionsController#clear_session? (But not in this PR)

Copy link
Contributor

@solipet solipet left a comment

Choose a reason for hiding this comment

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

LGTM!

Checked out the branch and ran through the test steps.

@soniaconnolly soniaconnolly merged commit d1f0b93 into main Oct 2, 2023
@soniaconnolly soniaconnolly deleted the sonia-lg-11085-delete-idv-doc-auth-session branch October 2, 2023 22:16
@jmhooper jmhooper mentioned this pull request Oct 3, 2023
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