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/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

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

Let instance admins read every repository

381d6aac38ab785d879fa82a6b8397ce6f543bab · Keenan Nemetz · 14d ago · parent 074ae160

Let instance admins read every repository

An instance administrator can already rewrite any repository's ACL, so hiding its content only hides what they govern. Raise them to at least read in the web and SSH paths, preserving any higher explicit role, and enforce the read rule on SSH upload-pack, where any authenticated key could previously clone a private repository by name. Anonymous HTTP clone still answers 404 because it carries no identity.

Group the admin surface into Repositories and Users tabs with a shared header, and teach Page.Section to mark the active tab.

server/web/templates/admin.html +6−14

@@ -1,14 +1,9 @@
1 1 {{define "admin"}}
2 2 {{template "header" .}}
3 <div class="page-head">
4 <div class="page-head-main">
5 <h1>Admin</h1>
6 <p class="page-sub">Instance-wide administration. Repository admins manage their own description, default branch, and visibility.</p>
7 </div>
8 <div class="page-head-actions">
9 <a class="button secondary" href="/admin/repos/new">{{icon "plus"}}New repository</a>
10 <a class="button secondary" href="/admin/users">{{icon "users"}}Users</a>
11 </div>
3 {{template "adminhead" .}}
4 <div class="toolbar">
5 <span class="muted">{{len .Repos}} repositories</span>
6 <a class="button secondary" href="/admin/repos/new">{{icon "plus"}}New repository</a>
12 7 </div>
13 8
14 9 {{if .Repos}}
@@ -40,15 +35,12 @@
40 35
41 36 {{define "admin_access"}}
42 37 {{template "header" .}}
43 <div class="page-head">
38 {{template "adminhead" .}}
39 <div class="page-head subhead">
44 40 <div class="page-head-main">
45 41 <h1>{{.Name}} access</h1>
46 42 <p class="page-sub">{{if .Description}}{{.Description}} · {{end}}{{if .Public}}public{{else}}private{{end}} · instance-admin rules</p>
47 43 </div>
48 <div class="page-head-actions">
49 <a class="button secondary" href="/admin">{{icon "book-open"}}All repositories</a>
50 <a class="button secondary" href="/admin/users">{{icon "users"}}Users</a>
51 </div>
52 44 </div>
53 45
54 46 {{if .Error}}<div class="flash bad">{{.Error}}</div>{{end}}