A lot of users seem to install Bahmni/OpenMRS and don’t change the DEFAULT admin credentials. This is a serious security risk.
If you are an ADMIN of any Bahmni server, that is being used in Production / QA / Public exposed – please change the admin/superman credentials, to reduce your security risk. Also don’t use default DB credentials.
Bumping this up. We came across another PUBLIC instance of Bahmni today, where the default admin credentials were setup. This is very bad!
Please request everyone to ensure that for Bahmni deployments in production/real world to CHANGE ALL DEFAULT CREDENTIALS. Not doing so can put the implementor / hospital in Legal trouble and serious headaches.
This is true for any OpenMRS/Bahmni deployment. Be responsible. Refer to the links attached in this thread on how to make changes.
I don’t know if this happens to me only but once I reset the atomfeed password and update the .env file, I see an error message in the openmrs log that says authentication with openelis failed. As soon as I change it back to the default password, the error is cleared. What could be causing this?
I tried changing the password from UI and from the database but the same issue occurs. I’m wondering if there is some place again where the password persists after resetting it.
Can you provide some more information. Did you change the openelis creds from UI/DB, and then updated OpenMRS configuration for ELIS passwords (atomfeed files, .env, etc) and still OpenMRS gave an error?
If you can provide the high level sequence of steps you took and which system gave an error, it might help resolve the issue.
I assume since you mentioned .env file, you are using Docker version of Bahmni.
I have retested the behaviour and password change is working as expected.
Steps followed-
Update the password in UI → Error didn’t occur and sync is working fine.
Restarted the OpenMRS container using command docker compose restart openmrs → Error came as expected(Authentication with OpenELIS failed)
Update the credentials for OpenELIS atomfeed in .env file OPENELIS_ATOMFEED_USER and OPENELIS_ATOMFEED_PASSWORD (Same as updated in UI)
Recreate OpenMRS service using the command docker compose up -d → No errors and sync is working fine with the new credentials.
With this we can understand that the password is not cached anywhere and working as expected. If issue still persist please reach out to us through Slack, we can connect.