by prussian · 2w ago · 0 comments
Too many times I have had services break because a service account password expired or was changed without updating the relevant services becuase the service account was reused and not documented.
gMSA accounts solve these problems becuase the password is managed automatically, no need to manually update a service after you set it to run under a gMSA.
This also prevents service account misuse, only specific servers are allowed to access the password.
I grudgingly admit that between unrelated security domains, the passwords ("API keys") are the easiest thing to use, although I much prefer machine OIDC where possible.
But within the same security boundary? Or even worse, on the same machine? The whole idea of password is just stupid. If I want to run service as user "mysvc", I write "User=mysvc", and that's it, the machine should trust itself.
At least I now know that gMSA is a thing, which is a great news.
Password rotation is an issue because the necessity of using a credential incentivizes its insecure storage and low entropy so that ops teams can onboard new services. This in turn necessitates rotation to limit the danger of exposure or kerberoasting (bruteforcing the TGS).
gMSAs ensure that credentials
- Are frequently rotated with no coordination or admin involvement
- Are of sufficient entropy to be non-bruteforceable
- are infeasible to store insecurely
They also robustly solve the question of tracking use: the gMSA states where it may be used and what principals may retrieve the credential, secured with a machine password (which, itself, carries the above security properties).