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')
    superuser.enabled = true (1)
    session.save()
    1 Don’t forget to enable the superuser.
  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

PaaS

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the Magnolia PaaS docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules