Skip to content

Overly complex scope hierarchy #78

@clundie-CL

Description

@clundie-CL

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:write

This 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions