Troubleshooting the Sandbox
Prerequisites
Follow the instructions in the Troubleshooting the IDP 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.
- Open a new terminal tab and
cd
to theidentity-devops
repo - Run the following command
bin/awsv sandbox bin/ssm-instance --newest asg-int-idp
- 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
- Delete the user’s associated profiles:
User.find_with_email('example@gsa.gov').profiles.delete_all