A point surfaced in T341553#10268045: Members of the restricted group can run classic mwscript but can't run mwscript-k8s, as they can't log into the deployment hosts nor read the mw-script{,-deploy} kube configs. This affects on the order of a dozen people who actually log into the mwmaint hosts.
Some options:
- Decide that members of restricted can no longer run maintenance scripts when we turn off the mwmaint hosts. (This is probably not desired, but it's the default outcome if we do nothing.)
- Add all members of restricted to deployment. (This grants more privileges than necessary, and is probably not desired.)
- Let members of restricted run mwscript-k8s on the deploy host.
- That means letting them log into the deploy host, which means we should check the existing sudo rules and make sure we're okay with carrying them over.
- It also means changing the owner of the kube configs (presently mwdeploy:deployment). Not sure if we'll need some new group mw-script-deployers containing-by-reference the members of both restricted and deployment in order to make this work.
- Let members of restricted run mwscript-k8s on some new VM instead. (That would be a pain to set up, and a bigger pain to maintain, but it would avoid messing with permissions on the deployment hosts.)