Skip to content

Web: Role-Based Access Control (RBAC) Migration to Zanzibar Model #180

Description

@wagmiiii

Repo context. accensa-app is the off-chain half of Accensa — the merchant back-office for x402 sellers on Stellar. Three workspace packages matter: apps/web (Next.js dashboard and the indexer at src/app/api/sync), packages/sdk (@accensa/sdk), and apps/demo-merchant. The Soroban contracts live in accensa-contracts.

🟢 Unblocked. Independent backend architecture change.

Problem

The current RBAC implementation in apps/web is hardcoded and inflexible, preventing enterprise merchants from creating custom roles. We need a massively scalable authorization architecture.

What to build

Replace the legacy permissions system with a Google Zanzibar-inspired centralized authorization service (e.g., Authzed/SpiceDB). Implement fine-grained permission checks at the edge and in all Next.js API routes.

Acceptance criteria

  • SpiceDB cluster deployed and integrated.
  • All API routes protected with fine-grained authorization checks.
  • UI for merchants to define custom roles and permissions.

Contact & Support

Metadata

Metadata

Labels

Stellar WaveDrips Wave Programarea: webWork in webcomplexity: high200 pts — integrations or architectural work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions