Feature: Router security #297
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
experiment
suggestion
support
Testing
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/framework#297
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem Statement
The new routing engines in Hazaar MVC currently lack the capability to define secure routes that require specific security profiles. Secure routes are essential for controlling access to sensitive parts of the application based on user roles or other security criteria. Adding support for secure routes will enhance the security framework of Hazaar MVC, ensuring that only authorized users can access certain routes.
Who will benefit?
Developers and system administrators using Hazaar MVC who need to implement security measures to restrict access to certain parts of their applications will benefit from this feature. It provides a way to enforce security policies at the route level, improving overall application security.
Benefits and risks
Benefits
Risks
Proposed solution
Security Middleware (Per Route)
403 Forbidden
response or redirect (configurable).Security Profile Definition
config/security.php
) or registered dynamically.admin
,user
,editor
) and permission-based (manage_users
,edit_content
) access control.security=["admin", "editor"]
).Per-Route Security Configuration
security
attribute.security
.Examples:
Middleware Execution
security
, middleware is skipped.403 Forbidden
response or are redirected.Example Middleware Implementation (Simplified):
Integration with Existing Security Features
Open Questions
Priority/Severity
assigned to @jamie
changed the description
created branch
297-feature-router-security
to address this issuementioned in merge request !235