Skip to content

Missing role-based access control (RBAC) enforcement #247

Description

@chonilius

Problem

The README states that role-based authorization guards are not yet implemented:

Add role-based authorization guards (currently JWT-authenticated but not role-scoped) to maintainer/sponsor-only endpoints.

Impact

Currently, any authenticated user can access admin-only endpoints like:

  • Bounty approval/rejection
  • Milestone budget allocation
  • Escrow release/refund operations
  • Maintenance pool fund assignment

Solution

Implement NestJS guards to enforce role checks:

@UseGuards(RolesGuard)
@Roles('maintainer')
@Post('bounties/:id/approve')
async approveBounty() { ... }

Priority

High - Critical for production security

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions