SciCatProject / backend-v3

SciCat Data Catalogue Backend
https://scicatproject.github.io/documentation/
BSD 3-Clause "New" or "Revised" License
13 stars 17 forks source link

Updating Functional Accounts with the functionalAccounts.json file #726

Open JeffreyFG opened 1 year ago

JeffreyFG commented 1 year ago

Issue Name

Updating Functional Accounts with the functionalAccounts.json file

Summary

As part of developing with Scicat, my team and I have found it necessary to use the basic authentication for our in-gestation automation. When spinning up Scicat for the first time the default functional accounts are created unless the functionalAccounts.json is modified. These passwords are not sufficiently complex and are dangerous.

Steps to Reproduce

Follow the docker compose setup instructions on the documentation, which will lead you to use scicatlive. clone the repo. Then inside the cloned repo simply use docker compose up command. If you do this and do not modify or provide a new functionalAccounts.json the functional accounts will be created with the default passwords.

Current Behaviour

When you modify the functionalAccounts.json file those changes to the users are not implemented when the sever is started.

Expected behavior

Expected/ wanted behavior is that when you change the password of a functional account in the functionalAccounts.json file that this change is reflected with the users entry in the database. With out this once an account is created there is no way to modify it with out first removing it from the database manually.