Currenty there is no admin when the system is first deployed (-> No way to set the server up), so the server administrator has to manually add an admin to the database using SQL.
There should be a possibility to gain default credentials for an admin (maybe through a reandomly generated name, pw or through an env variable)
Originally created by @stephan418 on GitHub (Jul 4, 2022).
Original GitHub issue: https://github.com/detleph/server/issues/89
Originally assigned to: @Flexla54 on GitHub.
Currenty there is no admin when the system is first deployed (-> No way to set the server up), so the server administrator has to manually add an admin to the database using SQL.
There should be a possibility to gain default credentials for an admin (maybe through a reandomly generated name, pw or through an env variable)
I'd implement this by randomly generate a basic user and hand it over via the CLI. I prefer this approach because there are no unnecessary vulnerabilities like setting a useless password (e.g. "Sport") and/or making it possible for strangers to obtain credentials via a man-in-the-middle attack.
Outgoing tasks:
Implement the logic in the middleware folder
Testing the functionality of the default admin
<!-- gh-comment-id:1284049866 -->
@Flexla54 commented on GitHub (Oct 19, 2022):
I'd implement this by randomly generate a basic user and hand it over via the CLI. I prefer this approach because there are no unnecessary vulnerabilities like setting a useless password (e.g. "Sport") and/or making it possible for strangers to obtain credentials via a man-in-the-middle attack.
Outgoing tasks:
- [x] Implement the logic in the middleware folder
- [x] Testing the functionality of the default admin
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @stephan418 on GitHub (Jul 4, 2022).
Original GitHub issue: https://github.com/detleph/server/issues/89
Originally assigned to: @Flexla54 on GitHub.
Currenty there is no admin when the system is first deployed (-> No way to set the server up), so the server administrator has to manually add an admin to the database using SQL.
There should be a possibility to gain default credentials for an admin (maybe through a reandomly generated name, pw or through an env variable)
@Flexla54 commented on GitHub (Oct 19, 2022):
I'd implement this by randomly generate a basic user and hand it over via the CLI. I prefer this approach because there are no unnecessary vulnerabilities like setting a useless password (e.g. "Sport") and/or making it possible for strangers to obtain credentials via a man-in-the-middle attack.
Outgoing tasks: