materia-server icon indicating copy to clipboard operation
materia-server copied to clipboard

Integrate @materia/users in @materia/server and use admin users to remove rootPassword

Open thyb opened this issue 6 years ago • 0 comments

If we integrate @materia/users in this repository and install it by default in every applications, we can use admin role to connect materia-server admin API instead of using rootPassword.

Advantage:

  • no rootPassword written in clear text in materia.json & materia.prod.json
  • Same login system than the one used in the application (not duplicated in 2 different system)

If no database setup, we can still connect to a local sqlite database to have the minimal user structure

If no admin user defined, need a cli command to initialize the first admin user (to let materia-designer connect the admin API)


  • Materia Version: v1.0.0-beta.1

thyb avatar Oct 13 '18 19:10 thyb