Due to permission restrictions on the MongoDB Atlas platform, it is currently not possible to perform password rotation directly through a connection. Password rotation must be performed using the Atlas CLI.
To integrate this operation with the senhasegura password management system, it is necessary to establish an SSH template that allows the execution of the change commands through the Atlas CLI, directly in MongoDB. In addition, it is essential that the target device has the Atlas CLI installed, is connected to senhasegura and has port 22 released, to allow the execution of this password rotation operation.
Therefore, the only way to perform password rotation in MongoDB Atlas, in the current context, is through this specific procedure.