Follow these steps to permanently decommision a customer.
5/18/2020
Shutdown Splunk and disable to prevent new data going to the cluster.
salt saf-splunk-syslog-* cmd.run 'systemctl stop splunk'
salt saf-splunk-syslog-* cmd.run 'systemctl disable splunk'
salt -C 'saf-splunk-* not *.local' cmd.run 'systemctl stop splunk'
salt -C 'saf-splunk-* not *.local' cmd.run 'rm -rf /opt/*'
salt -C 'saf-splunk-* not *.local' cmd.run 'rm -rf /var/log/*'
salt -C 'saf-splunk-* not *.local' cmd.run 'rm -rf /etc/salt/minion && shutdown now'
salt saf-splunk-syslog-* cmd.run 'systemctl stop syslog-ng'
salt saf-splunk-syslog-* cmd.run 'systemctl disable syslog-ng'
salt saf-splunk-dcn-* cmd.run 'docker stop mdr-syslog-ng'
05/3/2021
See Splunk SAF Offboarding Notes.md
for notes on pulled data off an indexer to give to the customer.
Update TF code and remove whitelisted SG IPs and/or rules to remove access from POP to C&C, Salt master, and splunk indexers. This is stored in globals.hcl or account.hcl
terraform destroy
command in the appropriate folders.Terraform C&C IP whitelisting for salt master and reposerver ( terraform/02-msoc_vpc/security-groups.tf )
Remove Customer from Portal Lambda Env Var ( base/customer_portal_lambda/main.tf )
Remove references of the customer from these places:
Update salt master
salt salt* state.sls salt_master
afcc@accenturefederal.com;asha.a.nair@accenturefederal.com
SUBJECT: Decommissioned Devices
Hello,
The below instances have been decommissioned from the environment and should be removed from any reports or inventories.
<list full splunk UF name of instances>
Thanks,
Brad
The SOC will edit this lookup ( or you can just do it. ) https://moose-splunk.pvt.xdr.accenturefederalcyber.com/en-US/app/SplunkEnterpriseSecuritySuite/ess_lookups_edit?namespace=SA-IdentityManagement&transform=simple_asset_lookup
Go to Qualys Dashboard -> Cloud Agent -> Activation Keys
Do this after the Salt Master gitfs has been updated to avoid any error messages.
Git > Settings > Options > Archive this repository
files/config in infrastructure-notes
Remove the AWS Account if we don't have access anymore. https://github.xdr.accenturefederalcyber.com/mdr-engineering/msoc-infrastructure/wiki/Cloud-Accounts
Delete engineering/customer_slices/ Disable onboarding-