1. Resetting Console’s password

If you forgot your Prisma Cloud Console password for a local account in Prisma Cloud, you can reset it. Follow this procedure with caution because unintended changes to the database can break Console.

To reset the admin password:

Prerequisites

  • You have root access to the host where Prisma Cloud Console is installed.

Procedure

  1. Create a hash for the desired password that you wish to reset your Prisma Cloud account to.

    $ echo -n admin | openssl dgst -binary -sha256 | openssl base64

    where admin is the desired clear text password.

  2. Exec into Console container

    $ docker exec -ti twistlock_console /bin/ash
  3. Run mongo.

    $ mongo \
      --ssl --sslAllowInvalidHostnames \
      --sslCAFile /var/lib/twistlock/certificates/ca.pem \
      --sslPEMKeyFile /var/lib/twistlock/certificates/client.pem \
      --sslPEMKeyPassword `cat /var/lib/twistlock/certificates/service-parameter`
  4. Set password for user 'admin' to admin

    > use twistlock
    > db.users.update({username:"admin"},{$set: {password:"jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg="}})
    WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })
  5. Exit out of database and container

    > exit
    $ exit
  6. Verify the changes by logging into Console with your new password.