Skip to content

Admin panel: browser UI over the admin package - #104

Merged
ManavA merged 2 commits into
mainfrom
feat/keel-93
Sep 20, 2026
Merged

ManavA merged 2 commits into
mainfrom
feat/keel-93

Conversation

@ManavA

@ManavA ManavA commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Closes #93.

Login, users list with per-admin session revoke, and filterable audit trail as Go html/templates plus htmx, no build step. Mount with Service MountUI. Form logins run through the same rate-limited Login as the JSON API. RequireAdmin now compares the token epoch against the admin row, so RevokeSessions ends that admin's sessions on JSON routes and UI pages alike. Audit listing takes an exact-match filter (action, actor, outcome) on the handler, memory store, and Postgres store. Migration 0003 adds admin_users.session_epoch.

Evidence:

  • gofmt clean, go vet clean on ./admin/...
  • go test ./admin/... green, including with KEEL_REQUIRE_DB=1 (admin/pg green against a Docker-provided database)
  • Regressions: ./app/... ./auth/... ./flags/... ./examples/... ./cmd/... all green
  • Mutation checks: inverted epoch comparison fails TestAdminUIRevokeSessionsEndsThatAdminsTokens; bypassed page auth fails TestAdminUIUsersRequiresAdmin and TestAdminUIAuditRequiresAdmin; both restored to green
  • golangci-lint is not installed in this environment, so that step was skipped

@ManavA
ManavA merged commit 4a7690d into main Sep 20, 2026
8 checks passed
@ManavA
ManavA deleted the feat/keel-93 branch September 20, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin panel: browser UI over the admin package

1 participant