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

  1. Get the current values NAMESPACE values.

    helm -n NAMESPACE get values NAMESPACE -o yaml > values.yaml
  2. Set rescue mode to true in values.yaml.

    magnoliaAuthor:
      rescueModeDX: true
  3. Deploy the helm chart in rescue mode.

    helm -n NAMESPACE upgrade NAMESPACE mironet/magnolia-helm --version 1.4.5 -f values.yaml
  4. Use the provided Groovy Script.

    session = MgnlContext.getJCRSession('users')
    superuser = session.getNode('/system/superuser')
    superuser.pswd = info.magnolia.cms.security.SecurityUtil.getBCrypt('superuser')
    session.save()
  5. Toggle the value of rescue mode to false.

    magnoliaAuthor:
      rescueModeDX: false
  6. Deploy the helm chart again to remove rescue mode.

    helm -n NAMESPACE upgrade NAMESPACE mironet/magnolia-helm --version 1.4.5 -f values.yaml
Feedback