Address production-readiness review: clearer errors, safer votes, and ops hardening.

Distinguish auth/lookup failures, make votes idempotent on visible questions, bound shutdown, page admin users, LRU throttle, trusted-proxy CIDRs, avatar cleanup, versioned migrations, and session cleanup logging.
This commit is contained in:
2026-08-22 12:16:59 -07:00
parent 5bdaa8977f
commit 29b0536215
26 changed files with 612 additions and 146 deletions
+8
View File
@@ -4,6 +4,11 @@
<p class="eyebrow">Admin</p>
<h1>Users</h1>
{{if .Error}}<p class="banner error" role="alert">{{.Error}}</p>{{end}}
<form class="ask" method="get" action="/admin/users" style="margin-bottom:1.5rem">
<label for="q">Search</label>
<input id="q" name="q" type="search" value="{{.Search}}" placeholder="username or name">
<button type="submit" class="btn btn-primary">Search</button>
</form>
<div class="admin-users">
<table class="user-table">
<thead>
@@ -40,6 +45,9 @@
</tbody>
</table>
</div>
{{if .HasMore}}
<p><a href="{{.NextCursor}}">Next page</a></p>
{{end}}
</main>
{{template "footer" .}}
{{end}}