trow
trow copied to clipboard
Populate Users from Config on Start up
Problem being Solved:
Currently, there is a basic user setup using SQlite but no way to populate this DB with users, I proposed that we create a way to populate the DB with Users
Solutions to Problem:
As I see it there are potentially Two ways to handle this:
- We create restful endpoints that configure the users, this will be quite complex as we will need a way to create the first user and all the different ways to manage a user
- Use a config file in order to populate the database, this is a simpler way that will allow us to have a quick-fix solution. Downsides are that users and passwords will be stored in plaintext on the file systems. This can be made more secure in Kubernetes using Secrets. Decisions needed to be made are what format file will trow use (
.yaml,.josn,.toml, etc)