Skip to content

Feature Request: Implement RBAC (Role-Based Access Control) as Auth Presets in Postpipe #60

@Sourodip-1

Description

@Sourodip-1

Add Role-Based Access Control (RBAC) to Postpipe as reusable authentication presets, allowing users to quickly enable role-based permissions in their projects without manually setting up access logic.

Problem

Postpipe currently supports authentication, but lacks built-in role and permission presets. This makes it harder for users to create secure multi-user apps with role-specific access.

Requested Improvements

  1. RBAC as a Preset in Auth Section

Add RBAC as a selectable preset alongside existing authentication options:

Owner
Admin
Editor
Viewer
Custom roles (optional)

2. Auto-Generated Role Logic

When RBAC is enabled:

Generate role fields in database schema
Add middleware for route protection
Add helper functions for permission checks
Create session/user role handling

3. Template-Level Integration

Ensure generated templates include:

Protected routes
Role-aware UI rendering
Permission-based component visibility

4. Dashboard Support

Allow users to:

Assign roles to team members
View role mappings
Edit access permissions

5. Developer Experience

Make setup simple:

One-click enable in Forge/static presets
Sensible defaults
Clear documentation

Expected Outcome

Faster setup for secure apps
Reduced manual auth boilerplate
Better team collaboration support
Stronger product offering

Priority
Very High

Metadata

Metadata

Assignees

Labels

Priority : Level 41 is least prioritized 5 is Maximun PriorityenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions