Skip to content

A plugin declaring an empty area is left unguarded #73

Description

@SirLouen

Current state: a plugin holds its protected routes to one scope area by implementing sdk.AreaProvider, and the host treats an empty area as no declaration, so the route guard is skipped entirely. Nothing validates the value at startup. In this repo the arm is dead because only the WhatsApp plugin declares an area, but a third party deriving its area from configuration and finding it unset would fail open with no signal at all.

Proposal: decide whether an empty area is an error or a deliberate opt-out, then either refuse it when the host collects the areas or say plainly in the SDK contract that it means unguarded.

Trigger: the plugin route guard shipped with the empty case undecided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions