|
@@ -34,19 +34,30 @@ Update TF code and remove whitelisted SG IPs and/or rules to remove access from
|
|
|
|
|
|
- Silence instances in Sensu to avoid notifications
|
|
|
- Disable termination protection in AWS console
|
|
|
-- Destroy the AWS objects with the `terragrunt destroy` command in all folders except 005-iam. Ignore error deleting S3 bucket BucketNotEmpty in 006-account-standards. (170-splunk-searchhead, 180-splunk-heavy-forwarder, 150-splunk-cluster-master, 160-splunk-indexer-cluster, 140-splunk-frozen-bucket, 010-vpc-splunk,072-salt-master-inventory-role, 021-qualys-connector-role, 007-backups, 006-account-standards-regional, 006-account-standards)
|
|
|
+- Destroy the AWS objects with the `terragrunt destroy` command in all folders except 005-iam. Ignore error deleting S3 bucket BucketNotEmpty in 006-account-standards.
|
|
|
+ 180-splunk-heavy-forwarder
|
|
|
+ 170-splunk-searchhead
|
|
|
+ 165-splunk-legacy-hec ( only for accounts that got migrated from Legacy, Might error! )
|
|
|
+ 160-splunk-indexer-cluster
|
|
|
+ 150-splunk-cluster-master
|
|
|
+ 140-splunk-frozen-bucket ( Use the console to empty bucket before TF will remove the bucket )
|
|
|
+ 072-salt-master-inventory-role
|
|
|
+ 021-qualys-connector-role
|
|
|
+ 010-vpc-splunk
|
|
|
+ 007-backups
|
|
|
+ 006-account-standards-regional ( might be nothing )
|
|
|
+ 006-account-standards
|
|
|
- Create new git branch in XDR-Terraform-Live
|
|
|
-- Remove the folders that were just destoryed ( NOT 005-iam or account.hcl ) to ensure the instances can not be created again
|
|
|
+- Remove the folders that were just destroyed ( NOT 005-iam or account.hcl ) to ensure the instances can not be created again
|
|
|
- Ensure the customer vpc is fully deleted in the AWS console
|
|
|
- Remove AWS Account from the partition.hcl file in the account_map["prod"] variable ( common/aws-us-gov/partition.hcl )
|
|
|
|
|
|
|
|
|
#### Remove references to LCP nodes in the globals.hcl file.
|
|
|
|
|
|
-
|
|
|
- Remove customer IPs from C&C IP whitelisting in xdr-terraform-live/globals.hcl in the c2_services_external_ips variable
|
|
|
- Remove customer IPs from Moose SG whitelisting in xdr-terraform-live/prod/aws-us-gov/mdr-prod-c2/account.hcl in the splunk_data_sources variable
|
|
|
-- Remove customer from Portal Lambda customer_vars variable in xdr-terraform-live/prod/aws-us-gov/mdr-prod-c2/205-customer-portal-lambda/terragrunt.hcl
|
|
|
+- Remove customer from Portal Lambda customer_vars variable in xdr-terraform-live/prod/aws-us-gov/mdr-prod-c2/205-customer-portal-lambda/terragrunt.hcl
|
|
|
- Delete the sensu entities and resolve any alerts
|
|
|
- On the salt master, delete the salt minion keys `sudo salt-key -d <CUSTOMER-PREFIX>*`
|
|
|
- On ScaleFT website, delete the project and servers
|
|
@@ -60,13 +71,14 @@ Update TF code and remove whitelisted SG IPs and/or rules to remove access from
|
|
|
- prod/aws-us-gov/mdr-prod-c2/095-instance-sensu
|
|
|
- prod/aws-us-gov/mdr-prod-c2/080-instance-repo-server
|
|
|
- prod/aws-us-gov/mdr-prod-c2/071-instance-salt-master
|
|
|
- - prod/aws-us-gov/mdr-prod-c2/008-transit-gateway-hub
|
|
|
- - prod/aws-us-gov/mdr-prod-c2/005-account-standards-c2
|
|
|
+ - prod/aws-us-gov/mdr-prod-c2/008-transit-gateway-hub ( don't worry about aws_ram_principal_association.share_with_accounts for other accounts )
|
|
|
+ - prod/aws-us-gov/mdr-prod-c2/005-account-standards-c2 ( many changes are made and looks scary )
|
|
|
|
|
|
|
|
|
-### Remove the GovCloud and Commercial AWS account ID from Packer and Salt
|
|
|
+### Remove the GovCloud and Commercial AWS account ID from Packer and Salt
|
|
|
|
|
|
https://github.xdr.accenturefederalcyber.com/mdr-engineering/msoc-infrastructure/wiki/Cloud-Accounts
|
|
|
+Search the msoc-infrastructure.wiki repo for customer short name and remove references.
|
|
|
|
|
|
- Create new git branch in msoc_infrastructure
|
|
|
- Remove Packer AWS accounts in packer/Makefile
|
|
@@ -85,18 +97,21 @@ Remove references of the customer from these places:
|
|
|
- Salt okta auth in salt/pillar/os_settings.sls
|
|
|
- Salt gitfs pillar in salt/pillar/salt_master.sls
|
|
|
- Salt FM Shared Search in salt/pillar/fm_shared_search.sls
|
|
|
+- Salt ACL in salt/fileroots/salt_master/files/etc/salt/master.d/default_acl.conf
|
|
|
|
|
|
+Search for the customer short name to ensure nothing is missed.
|
|
|
|
|
|
-Apply changes in salt to remove references to the old customer.
|
|
|
+Open git PR, get it approved, in master branch, and apply changes in salt to remove references to the old customer.
|
|
|
|
|
|
-Update salt master
|
|
|
+Update salt master
|
|
|
+`sudo salt-run fileserver.update`
|
|
|
`salt salt* state.sls salt_master --output-diff test=true`
|
|
|
|
|
|
Update the FM search head and monitoring console
|
|
|
`salt splunk-mc-0* state.sls splunk.monitoring_console --output-diff test=true`
|
|
|
`salt fm-shared-search-0* state.sls splunk.fm_shared_search --output-diff test=true`
|
|
|
|
|
|
-Disable the instances in the Monitoring Console webpage ( how to delete the instances? )
|
|
|
+Disable the instances in the Monitoring Console webpage ( how to delete the instances? ), then save the changes.
|
|
|
Verify the search peers have been removed from the distributed search in the FM Shared Searchhead and the monitoring console.
|
|
|
|
|
|
https://splunk-mc.pvt.xdr.accenturefederalcyber.com/en-US/manager/search/search/distributed/peers?sort_dir=desc&sort_key=health_status&search=Down&count=100&api.mode=extended
|
|
@@ -109,10 +124,24 @@ Each customer should have three applications. Deactive the app, then delete it.
|
|
|
<CUSTOMER-PREFIX> Splunk SH
|
|
|
|
|
|
|
|
|
+### Moose HF Cleanup
|
|
|
+Remove the account from the Moose HF AWS app.
|
|
|
+
|
|
|
+- Log into moose-splunk-hf
|
|
|
+- Go to apps->Splunk Addon for AWS
|
|
|
+- Go to Inputs, filter on the customer prefix, disable then remove each input.
|
|
|
+- Go to Configuration->IAM Role, remove the role for the account.
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
### Qualys Cleanup
|
|
|
Go to Qualys Dashboard -> Cloud Agent -> Activation Keys
|
|
|
Disable the key, not sure how to delete it. Perhaps have to wait a period of time?
|
|
|
|
|
|
+### Tenable Cleanup
|
|
|
+The Vuln data will age out over time.
|
|
|
+The agents will be auto removed after 30 days from the Nessus Manager or they can be manually deleted.
|
|
|
+
|
|
|
### Archive Customer Git Repos
|
|
|
Do this after the Salt Master gitfs has been updated to avoid any error messages.
|
|
|
|