Skip to content

Update Admin Credentials for Web UI

This document explains how to update the admin credentials for the diagnostics tool's Web UI. Ensure that you have the necessary permissions and access rights to make these changes.

Note

  • This guide applies only if basic authentication is enabled.

Default Credentials:

 Username: admin 
 Password: welcome1 

STEP 1: Generate Password

The Diagnostic Server requires a hashed password for security purposes. You can generate a hashed password as follows:

I. Install the Werkzeug Python library:

Bash
pip install werkzeug
II. Run the following Python script to generate a hashed version of your desired password:
Bash
from werkzeug.security import generate_password_hash 
print(generate_password_hash("<put your password here>", "sha256"))

STEP 2: Update Generated Password

After generating the password in STEP 1, update it in the Diagnostic Server configuration as follows:

I. Open the privacera-diagnostics.yml file to update credentials diagnostics tool:

Bash
1
2
3
cd ~/privacera/privacera-manager
cp config/sample-vars/vars.privacera-diagnostics.yml config/custom-vars
vi config/custom-vars/vars.privacera-diagnostics.yml

II. Uncomment and update the following variables in vars.privacera-diagnostics.yml

  • DIAG_SERVER_BASIC_AUTH_ENABLED : Set it to "true".
  • DIAG_SERVER_BASIC_AUTH_PASSWORD: Replace this with the hashed password generated in STEP 1, e.g., <GENERATED_HASHED_PASSWORD>.

III. Save and close the file.

Comments