Database Decommissioning Checlist
Purpose
This checklist is to ensure that all aspectssteps are taken to ensure that deleting a service database does not cause any disruption in other parts of a new service are provisioned properly, completely, and in the correct order to prevent potential failures elsewhere in the system.infrastructure.
Steps
- Determine any potential impact to any other services; see things to look out for below
IsAre any services dependent on thisservicedatabase,going to be running on app-01directly ora different host?indirectly?- Is
itthegoingdatabasetobackedutilizeup?SSO auth?- Is
it going to needthere adatabase?specificServiceborgfilesrepofolder in /mnt/data/services on app-01?
- Is
Is it going to need any other secrets?
CheckEnsure onthis repology.orgdatabase's toentry verifyis ifdeleted for borgmatic, otherwise the nixOSauto modulebackup isservice upwill toerror date with upstream before choosing to use the nixOS moduleout
IfEnsure that theservicedatabase'susessecretsaaredatabasedeleted everywhereTypically,DeleteIdatabasecreatesecretsdatabasesfromwhoseBitwardennamesSecretsareManager after 1 year in thesameeventasthattheaccessserviceisnameneedede.g.again
for- Delete
forgejo,entries of the databasenamefromisanyforgejohost_vars
webservices.<service name>.db_passProjects/ansibleansible, to stop it from host_varsstaging