feat: org-level ACL audit overview (#292)#303
Open
schmug wants to merge 1 commit into
Open
Conversation
Adds GET /api/v1/org/acl-overview — returns every mailbox with its acl_status, owner, and members[] so operators can audit fleet-wide access without inspecting R2 blobs by hand. Authz: any CF-Access-admitted caller, matching the existing /api/v1/org/overview policy (documented in code comment). Adds a UI route at /acl-overview that groups mailboxes by domain and flags unscoped mailboxes with an amber badge. 8 tests cover scoped, unscoped, mixed fleets, backwards-compat (pre-#27), and ACL-blob isolation. Closes #292 https://claude.ai/code/session_0158NZ9vuCtZ8vUC627Ubm3a
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
ais-hub | 29a8e3f | Commit Preview URL Branch Preview URL |
May 20 2026, 12:15 PM |
This was referenced May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /api/v1/org/acl-overview— returns every mailbox with{ email, acl_status, owner|null, members[] }so operators can audit fleet-wide access without inspecting R2 blobs by hand/acl-overviewthat groups mailboxes by domain, flags unscoped mailboxes with an amber badge (consistent with the/mailboxespage), and shows owner + member lists per mailboxCloses #292
Authz model
Any CF-Access-admitted caller may call this endpoint — no org-admin role exists today. This is documented in the endpoint code comment and matches the existing
GET /api/v1/org/overviewpolicy. Consequence: owner and member emails of scoped mailboxes are visible to all admitted callers — acknowledged as an operator-oriented audit surface, not an end-user surface. A future RBAC/org-admin issue could narrow this.Test plan
node_modules/.bin/vitest run tests/routes/org-acl-overview.test.ts— 8 tests passnpm run typecheck— exit 0node_modules/.bin/vitest run— 1087 passing, 0 failing (all pre-existing tests continue to pass)/acl-overviewin the SPA — table renders grouped by domain, unscoped mailboxes show amber "Unscoped" badge, scoped mailboxes show green "Scoped" badge with owner and members listedFiles changed (5)
workers/index.tsGET /api/v1/org/acl-overviewendpoint (30 lines)app/services/api.tsgetAclOverview()typed API client methodapp/routes.ts/acl-overviewrouteapp/routes/org-acl-overview.tsxtests/routes/org-acl-overview.test.tsDeferred
https://claude.ai/code/session_0158NZ9vuCtZ8vUC627Ubm3a
Generated by Claude Code