-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Problem description
Related to review comments included with PR #73
The API currently uses overly complex scope naming patterns for authorization, such as:
network-access-management:isolated-networks:wifi.auxiliary:writeThis results in a 4-level deep scope structure (api:resource:subresource.role:action), which exceeds the typical 2-3 levels recommended by CAMARA. Such deep scope hierarchies are difficult to implement, manage, and audit.
Expected behavior
Scope names should be simplified to use no more than 2-3 levels, following the CAMARA pattern (e.g., api:resource:action). This will make authorization easier to manage and more consistent with other CAMARA APIs.
Alternative solution
If fine-grained access control is required, consider using explicit resource attributes or claims within the token, or separate endpoints for different roles/actions, rather than encoding all details in the scope string.
Additional context
This issue was identified during the CAMARA design review. Simplifying scope hierarchies will improve maintainability, reduce implementation complexity, and align the API with CAMARA security best