toaruser is able to *get* information from REST
We created toaruser as the user, who is able to get information via FastAPI's REST interface.
This is not working:
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL: role "toaruser" is not permitted to log in
The implemented database connection does not work without login.
This is a security issue -- and should be more deeply investigated.
I think, joinuser (in previous Django version) would have also not worked...
join_user in operational version is able to login!
pytests are creating a test database -- this needs "Create DB" privileges (which will not be given to toaruser at all!)
Therefore, pytests are done with the role of toaradmin (on local machine -- with no password shown anywhere!).
The same holds for toaruser's password.
The files holding these passwords for the operational machine (toardb/utils/database.py and toardb/test_base.py) should never be exported to any repository!
For installation on production service (only admin information (f. ex. Sabine)), see https://gitlab.version.fz-juelich.de/toar/toardb_fastapi/-/issues/10#note_53506