Companies have software to manage this for you. We utilize https://www.cyberark.com/products/machine-identity-security/