How to rotate passwords on VCF

As every good administrator knows, from the security point of view rotating password on all of your infrastructure components is mandatory on a regular basis. VMware Could Foundation (VCF) is not an exception. VCF consists of many components like SDDC Manager, NSX Manager, vCenter Server(s) etc. so changing all passwords for every component will become a lengthy task. Luckily, there is a build-in tool in the SDDC Manager that will change the password on all VCF components at once. So, let’s have a look on how to rotate passwords on VCF.

As a best practice, rotating the passwords on VCF should be your day 2 operation right after the bring-up process.

Rotate passwords on VCF

According to the documentation, the passwords of the following accounts will be changed:

  • Accounts used for service consoles (i.e. ESXi root account).
  • Single sign-on administrator account.
  • Default administrative user account used by virtual appliances.
  • Cumulus account used by switches running Cumulus Linux (i.e. Management Switch).
  • Network admin roles used by switches not running Cumulus Linux.
  • Internal database service accounts (i.e. JDBC account).
  • SDDC Manager Utility VM.

Note that the tool will NOT change the password of the SDDC Manager. This needs to be done manually. Also, to rotate passwords on VCF the user logged in must have the Admin-privileges.

  1. Login to your SDDC Manager with your VCF admin account.
  2. Navigate to Dashboard –> Settings -> Password Rotation.rotate password on VCF - 1
  3. Click Password Rotation button at the bottom of the page and wait for the results.
  4. Once completed successfully, the passwords are changed on all components listed in the results pane.rotate password on VCF - 4

Show passwords

The passwords are hidden by default. In order to see the passwords you have to SSH to the SDDC Manager and look it up.

  1. Once logged in on the SDDC Manager type: # /home/vrack/bin/lookup-passwords
  2. A list of all passwords will be displayed as depicted below.rotate password on VCF - 2

If you are looking for one particular password, let’s say for the vCenter Server you can leverage the grep command to filter out the results. For example: # /home/vrack/bin/lookup-passwords | grep –B 1 –A 7 “vCenter”rotate password on VCF - 3

The last password that you should change at this point is the VCF administrator password that is used to log in to the SDDC Manager.

Cheers!

– Marek.Z

Be the first to comment

Leave a reply...