---
# System prepended metadata

title: Phase 2 Deployment

---

# Phase 2 Deployment

- [ ] Migration of data to `pdocument-5.12.20`
- [ ] Migration of data to `uri-5.12.20`
- [ ] Update of MySQL database to `schema 4`
- [ ] Deployment of updated Agent to support `pdocument-5.12.20` and `uri-5.12.20`
- [ ] Deployment of updated Flash Service to support `pdocument-5.12.20` and `uri-5.12.20` and phase 2 UI
- [ ] Deployment of updated UI-Typed.
- [ ] Add Host Field to Mapping
- [ ] Update Investigation Rules
- [ ] Update by query to have old hosts.


1. Dealing with old ui and new ui running in parallel. 
2. Changes to the investigation rules; rules made with the old UI will not be supported by the new UI. 

## TODO 

1. Downtime 4 hr window. Tuesday 5-9 pm
2. Checklist of items as we go. 
3. Look into investigations on prod; how many are actually nested from customers?


Order of Operations:
0. Install JDK11
1. Shutdown the agent
2. Shutdown the UI / splash page. 
    a. hashpath (static & forge-gov) - docker containers
3. Migration of ES Data (PDOC and URI creation)
4. Schema update to the mysql database
5. Deploy new agent. Test it is working
    a. confirm configuration to have correct hosts, index, user, password 
6. Deploy flash service. Test it is working
    a. Make sure hosts are configured properly(to avoid any cors issues) 
    b. Confirm the correct configuration of index name of es, username, password
    c. url, username, password of the mysql databse.
    d. keycloak server location. 
    e. ES hostname
    f. No other changes to the configuration.
8. Deploy UI. Start server in production mode.
    a. Service mapping to make sure the ports we are using are correctly configured. Old UI uses docker container. 
    b. React goes to FE-01. 
    c. Setup NGINX with the same configuration as the old UI. FE-rome1


# Acceptance Testing 




# TODO V2.3

1. Update SQL schema 
2. Create Keycloak user with permissions: `Users -> <user> -> Role Mappings -> Client Roles
Add Assigned Roles for "realm-management"  (view-clients,view-realm,view-users)
` 
3. Update the config file for flash
4. 