Skip to content

Rotate a service-account password

Service accounts (such as the fax broker’s bind accounts) need their passwords rotated, and the new secret has to reach the consuming application without being written anywhere it shouldn’t. The rotate-svc target does both: it sets a fresh password on the AD account and writes it straight into a consumer .env.

Terminal window
make rotate-svc U=svc-fax-ro ENVFILE=~/bingham/faxart/.env KEY=AD_BIND_PASSWORD

That generates a new compliant password, sets it on svc-fax-ro in AD (marking the account non-expiring), and writes AD_BIND_PASSWORD=<new> into the named .env, replacing any existing line for that key.

ParameterMeaning
UThe service account to rotate (required)
ENVFILEPath to the consumer’s .env to update
KEYThe variable name to set in that .env
POptional explicit password; omit to auto-generate a compliant one

The secret never appears in the lab’s own repository, in chat, or in a commit. It goes from samba-tool straight into the consumer’s .env, which is gitignored on both sides. If you must hand a password to a human, deliver it through a secret channel, not the agent thread.

The fax broker’s write delegation is a separate, tightly scoped account. See Provision a fax DID write delegation.