generated from host-uk/core-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
lang:phpPHP/LaravelPHP/Laravel
Description
Description
The existing tests do not verify that unauthorized users are blocked from developer tools.
Location
- File: src/Tests/UseCase/DevToolsBasic.php
Issue
The current test file:
- Creates a regular user (not explicitly a Hades user)
- Tests that pages load with assertOk()
- Does not verify that non-Hades users get 403 responses
The tests should verify:
- Unauthenticated users get redirected
- Authenticated non-Hades users get 403
- Hades users can access all features
- Rate limiting works correctly
Without these tests, authorization regressions could go unnoticed.
Recommendation
Add test cases for:
- Guest access returns redirect/401
- Regular user access returns 403
- Hades user access returns 200
- API endpoint rate limiting
- Cross-workspace isolation (user A cannot access user B's servers)
Severity
Medium - Missing test coverage for security-critical functionality
Metadata
Metadata
Assignees
Labels
lang:phpPHP/LaravelPHP/Laravel