Skip to content

Enhancement/Spike: Improve role handling #32

@dominiquekleeven

Description

@dominiquekleeven

Currently the ml-forecast service expects read:admin write:admin roles (#3)

These are quite broad and don't indicate that they provide access to this service, therefore ideally the service has more specific roles such as write:config-forecast read:config-forecast or something similar.

Investigate this particular issue and detail a method on how to implement more granular and service-specific roles.

Ideally this implementation allows annotation similar to JAX-RS e.g. RolesAllowed this should be fairly straight forward using python decorators. This can also then be used to automatically exclude paths from the middleware that are missing the appropriate annotation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementImprovement of an existing featureSpikeInvestigation to gain knowledge or reduce uncertainty

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions