Resetting the mzadmin Password(5.0)
If the password for mzadmin is lost, it can either be changed by another user belonging to the Administration group or be set according to the following procedure:
Access the pod’s platform terminal using the
kubectl execcommand and then using the commandmzsh encryptpasswordto get the encryption which will be used in the following step.
Examplemzadmin@platform-0:/opt/mz$ mzsh encryptpassword samplepw DR-4-CC7A55C17B6EA7A4CFBCFFFE5AA296C8Locate and open values.yaml file. Find the section,
systemPropertiesand add the configuration propertymz.user.emergency.unlockas in the example below:platform: pullPolicy: Always systemProperties: - mz.user.emergency.unlock=DR-4-1D2E6A059AF8120841E62C87CFDB3FFExample
mz.user.emergency.unlock=DR-4-CC7A55C17B6EA7A4CFBCFFFE5AA296C8Upgrade the installation.
Examplehelm upgrade <release_platform> usage-engine-private-edition --atomic --cleanup-on-fail --debug --version <version> -f <valuesfile> -n <namespace> --set-file licenseKey=<license>Login with the new temporary password and key in your new password twice to change it.
Once successfully logged in, remove the property,
mz.user.emergency.unlockand upgrade the Platform pod again.