fison67 / mi_connector

Connector for Xiaomi Devices with Smartthings, Hubitat
MIT License
213 stars 595 forks source link

Improvement for DB Connections #89

Open ritaru opened 1 year ago

ritaru commented 1 year ago

Hello,

I am a Backend Engineer based in South Korea. The node application seems to connect to a hardcoded username and database when connecting to mariadb instance, leading to some problems when using single DBMS for multiple applications.

A simple tweak in the db/db-connector.js and routes/config.js and such would be nice, since using root account for end-user applications is a security hazard.

I appreciate for your hard work, and hope you have a pleasant day.

PS. If possible, I would be delighted to contribute to your docker image.