Recover the superuser account
Have you blocked the superuser account? You nay need to use the groovy rescue app through rescue mode in your values.yaml file.
Instructions
-
Get the current values
NAMESPACEvalues.helm -n NAMESPACE get values NAMESPACE -o yaml > values.yaml -
Set rescue mode to
trueinvalues.yaml.magnoliaAuthor: rescueModeDX: true -
Deploy the helm chart in rescue mode.
helm -n NAMESPACE upgrade NAMESPACE mironet/magnolia-helm --version 1.4.5 -f values.yaml -
Use the provided Groovy Script.
session = MgnlContext.getJCRSession('users') superuser = session.getNode('/system/superuser') superuser.pswd = info.magnolia.cms.security.SecurityUtil.getBCrypt('superuser') superuser.enabled = true (1) session.save()1 Don’t forget to enable the superuser. -
Toggle the value of rescue mode to
false.magnoliaAuthor: rescueModeDX: false -
Deploy the helm chart again to remove rescue mode.
helm -n NAMESPACE upgrade NAMESPACE mironet/magnolia-helm --version 1.4.5 -f values.yaml