Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 955 Bytes

appdev-troubleshooting-sandbox.md

File metadata and controls

27 lines (24 loc) · 955 Bytes
title description layout category
Troubleshooting the Sandbox
Troubleshooting issues with the Login.gov sandbox/int environment
article
AppDev

Prerequisites

Follow the instructions in the [Troubleshooting the IdP]({% link _articles/appdev-troubleshooting-production.md %}) prerequisites section.

Purging a user's PII

If a user accidentally uploads real PII to our sandbox environment, follow the steps below to delete it.

  1. Open a new terminal tab and cd to the identity-devops repo
  2. Run the following command
    bin/awsv sandbox bin/ssm-instance --newest asg-int-idp
  3. Once the SSM session is established, run the following commands to start a Rails console session:
    cd /srv/idp/current
    sudo -uwebsrv ALLOW_CONSOLE_DB_WRITE_ACCESS=true bin/rails c
  4. Delete the user's associated profiles:
    User.find_with_email('[email protected]').profiles.delete_all