If you are installing Codacy for the first time, you will be prompted if you wish to have the Control Panel access protected by authentication:
Create user? (y/n)
If you decide to create a user, you will be prompted for a Username and Password:
Now the access to the Control Panel is protected by username and password.
I forgot my password
If you forgot your password you just need to run the installation script, and a new username/password will be prompted
My current installation doesn't have authentication yet
If your installation doesn't have authentication yet you just need export the variables to the host environment and run the update script afterwards:
bash -c "$(curl -fsSL https://getenterprise.codacy.com/get)" -s update
Will I lose any data if I install the Control Panel again?
No. No data will be lost if you reinstall the Control Panel, except for the username and password.