Skip to content

Reject subscription establishment if subscriber has no access #18485

Closed
@mrjerryjohns

Description

Problem

See this spec issue.

Proposed Solution

Iterate over every expanded path in the SubscribeRequest and check if any of the paths have at least View privilege (this is already handled by calling RequiredPrivilege::ForReadAttribute(aPath)). If not a single path has that privilege, the subscription should not be established.

This processing should happen BEFORE we allocate a ReadHandler to serve the subscription. This ensures we don't tear down existing valid subscriptions to serve a subscription that is not valid.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions