Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software:2222/vole.git

A free and open-source forge that lives in your Git repo.

Let instance admins create bot accounts from the web UI

8c72543b9ef4ac728740a6f0b3a649f9c3102e7a · Keenan Nemetz · 5d ago · parent f422c24f

Let instance admins create bot accounts from the web UI

The Accounts page could only invite a person with an enrollment link. A bot has no browser sign-in, so it needs an SSH key at creation instead. Add a bot form that reuses identity.CreateBot, keep admin out of its role picker, and hide the enrollment action on a bot's account page.

server/routes.go +1

@@ -99,6 +99,7 @@ func (s *Server) adminRoutes(mux *http.ServeMux) {
99 99 mux.HandleFunc("POST /repos", w.CreateAdminRepo)
100 100 mux.HandleFunc("GET /users", w.AdminUsersPage)
101 101 mux.HandleFunc("POST /users", w.CreateAdminUser)
102 mux.HandleFunc("POST /users/bots", w.CreateAdminBot)
102 103 mux.HandleFunc("GET /users/{name}", w.AdminUserPage)
103 104 mux.HandleFunc("POST /users/{name}/role", w.SetAdminUserRole)
104 105 mux.HandleFunc("POST /users/{name}/retire", w.RetireAdminUser)