Recover the superuser account
Have you blocked the superuser account? You may need to use the groovy rescue app through rescue mode in your values.yaml file.
Instructions
- Get the current values for
NAMESPACE.
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()
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