How do I change the default admin password automatically?

Created by Steve Place, Modified on Wed, 20 Sep 2023 at 11:53 AM by Steve Place

By default, Stardog's `admin` user has a password of `admin`. Because this information is publicly available, this setup is insecure, and we strongly recommend you do not deploy Stardog in a production environment with the default password.

Changing the password manually is easy - just use `stardog-admin user passwd`. If you want to update it automatically, you can write a shell script that does this when you deploy Stardog. You can find an example of such a shell script at our publicly available Helm Charts here. A few notes on this:

  • You don't need to use Kubernetes/Helm for a script like this to work, but you will need some way of ensuring the script runs when you deploy Stardog.
  • The linked script reads the new password from the `values.yaml` file in our Helm Charts. If you are not using Stardog's Helm Charts, you'll need to supply the new password to the function via a different method.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article