TeamCity can now override both master and staging passwords using OVERRIDE_API_PASSWORD.