[GH-ISSUE #89] Add default admin logic #45

Closed
opened 2026-09-04 00:21:46 +02:00 by Stone_Red · 1 comment
Owner

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)

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)
Author
Owner

@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:

  • 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: detleph/server#45