Changeset 0.8.2 (#45)

This commit is contained in:
2026-02-22 01:56:58 +00:00
parent c0d95fd7f5
commit 5111d595f7
14 changed files with 642 additions and 6 deletions

View File

@@ -166,7 +166,8 @@ The missing middle tier: scoped administration without system-admin access.
- [x] System admin creates teams + assigns first team admin
- [x] Team admin self-manages: add/remove members
(RequireTeamAdmin middleware, scoped /teams/:teamId routes)
- [ ] Team admin: create team presets, manage team channels, view team usage
- [x] Team admin: create team presets (Settings → Teams tab, self-service UI)
- [ ] Team admin: manage team channels, view team usage
**Private Provider Policy**
- [x] `is_private` flag on provider configs (marks local/self-hosted endpoints)
@@ -179,10 +180,11 @@ The missing middle tier: scoped administration without system-admin access.
Required for enterprise and compliance. Cheap to build, expensive to retrofit.
**Audit Log**
- [ ] `audit_log` table: actor_id, action, resource_type, resource_id,
- [x] `audit_log` table: actor_id, action, resource_type, resource_id,
metadata (jsonb), ip_address, timestamp
- [ ] Every mutating handler inserts audit entry
- [ ] Admin audit viewer (filter by actor, action, resource, date range)
- [x] Every mutating handler inserts audit entry
(user CRUD, team CRUD, member management, presets, auth)
- [x] Admin audit viewer (filter by action, resource type, paginated)
- [ ] Team admin sees audit entries scoped to their team
**Usage / Cost Tracking**