Skip to content

Comments

Implement User & Account Administration#58

Merged
sergeychernyshev merged 9 commits intomainfrom
13-implement-user--account-administration
Feb 16, 2026
Merged

Implement User & Account Administration#58
sergeychernyshev merged 9 commits intomainfrom
13-implement-user--account-administration

Conversation

@sergeychernyshev
Copy link
Member

Based on @specs/admin.md

Goal: Admin interfaces for managing users and accounts.

Requirements:

  • User List: Search, edit details.
  • Account List: Manage status, view details.
  • Impersonation: Ability to log in as any user.

Changes:

  • Created SystemDO to act as a global index for users and accounts.
  • Implemented Admin API endpoints:
    • GET /admin/users: List/Search users.
    • PUT /admin/users/:id: Edit user details.
    • GET /admin/accounts: List/Search accounts.
    • PUT /admin/accounts/:id: Edit account status/plan.
    • POST /admin/impersonate: Create session for another user.
  • Added ADMIN_EMAILS environment variable for access control.
  • Created a simple Admin Dashboard at /users/admin.html.
  • Updated wrangler.jsonc and StartupAPIEnv.ts to support the new Durable Object.

Closing #13
This work assisted by AI.

- Added SystemDO to index users and accounts.
- Implemented Admin API in SystemDO (list, get, update).
- Added Admin routes in src/index.ts.
- Added access control using ADMIN_EMAILS env var.
- Added impersonation functionality.
- Created Admin Dashboard UI at public/users/admin.html.
- Added integration tests for admin workflows.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 2, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
startup-api 6bd9c3d Feb 16 2026, 02:14 AM

@sergeychernyshev sergeychernyshev merged commit 73e1cb6 into main Feb 16, 2026
0 of 2 checks passed
@sergeychernyshev sergeychernyshev deleted the 13-implement-user--account-administration branch February 16, 2026 02:16
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.

1 participant