Skip to content

Commit af0956a

Browse files
committed
document security features
1 parent a012431 commit af0956a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

SECURITY.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
This software is in beta and has not yet been subject to formal security audit. It may lack adequate user input validation or other features.
44

55
Therefore, gone is only intended for use on a secure network with trusted devices, such as a private LAN.
6+
7+
# Features
8+
9+
- basic authentication (via header or form field)
10+
- delay "tarpit" applied to requests failing auth
11+
- robust audit logging with time and event detail
12+
- files stored, indexed with randomly-selected id
13+
- global request rate limiting (throttle package)

storage/serve.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,8 @@ func (s *Storage) ServeWall(w http.ResponseWriter) {
3939
disposition := "attachment; filename=\"wall.txt\""
4040
w.Header().Set("Content-Disposition", disposition)
4141
w.Header().Set("Content-Type", "text/plain")
42-
fmt.Fprintf(w, "%s", s.WallContent)
42+
_, err := fmt.Fprintf(w, "%s", s.WallContent)
43+
if err != nil {
44+
return
45+
}
4346
}

0 commit comments

Comments
 (0)