Sign in

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

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

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

Self-hosted forge that lives in your Git repo.

Manage release channels from the releases page

de72893e35f2fe73bb1741b88dcbabdfb238c8b0 · Keenan Nemetz · 17d ago · parent 529a8457

Manage release channels from the releases page

Channels no longer have a separate listing page. Releases shows the
channel list, a badge on each target release, and a maintainer form
that creates, moves, and clears channels with the same validation and
audit record as the CLI.

server/web/audit.go +21−4

@@ -7,15 +7,32 @@ package web
7 7 //
8 8 // A write failure is reported to the server log at error level and nothing else:
9 9 // the action has already happened, and refusing the response would not undo it.
10 // The acts that must fail closed — account, key and ACL changes, and a repository
11 // deletion — are recorded before they happen by the store they go through
12 // (forge/identity, forge/access, forge/repo), so a request that could not be
13 // recorded never reaches this file's callers.
10 // The acts that must fail closed — account, key and ACL changes, a repository
11 // deletion, and a channel move — are recorded before they happen, by the store
12 // they go through (forge/identity, forge/access, forge/repo) or by auditBefore,
13 // so a request that could not be recorded never reaches this file's callers.
14 14
15 15 import (
16 16 "rodent.software/vole/internal/audit"
17 17 )
18 18
19 // auditBefore appends the record for a privileged action that is not durable in
20 // Git, and returns the error so the caller can refuse the action. A channel move
21 // takes this path for the same reason the SSH handler writes its audit line before
22 // the row: a move without a record is not allowed.
23 func (w *Web) auditBefore(action, actor, subject, detail string) error {
24 path := ""
25 if w.Cfg != nil {
26 path = w.Cfg.AuditLog()
27 }
28 return audit.Append(path, audit.Record{
29 Action: action,
30 Actor: actor,
31 Subject: subject,
32 Detail: detail,
33 })
34 }
35
19 36 // audit appends one record for an action that has already been taken. A failure
20 37 // is loud, never silent, and never changes the answer the browser already earned.
21 38 func (w *Web) audit(action, actor, subject, detail string) {