Skip to content

feat: Add user-scoped state/entity API filtering#28

Open
adityastic wants to merge 1 commit into
SamAthanas:mainfrom
adityastic:feature/state-api-filter
Open

feat: Add user-scoped state/entity API filtering#28
adityastic wants to merge 1 commit into
SamAthanas:mainfrom
adityastic:feature/state-api-filter

Conversation

@adityastic

@adityastic adityastic commented Jun 16, 2026

Copy link
Copy Markdown

Filter websocket get_states, REST /api/states, and entity/area/device registry lists by RBAC role via a User.permissions wrapper, so restricted users never receive forbidden entities on Overview.

Includes deny_all allow-list optimization, role-based visibility cache, registry cache invalidation, HA 2026.6 permissions patch fix, rbac.js deny_all support, and unit tests.

Some examples from my HA setup:
User without permissions:
image

User with permissions:
image

The same applies to every room entity inside any auto generated per room overview dashboard

Related Issues:
#20

@adityastic adityastic force-pushed the feature/state-api-filter branch 2 times, most recently from 7428a50 to 89da8c4 Compare June 16, 2026 18:54
@adityastic adityastic changed the title Add user-scoped state/entity API filtering with scalability hardening. Add user-scoped state/entity API filtering Jun 16, 2026
@adityastic adityastic force-pushed the feature/state-api-filter branch from 89da8c4 to 5c6d98f Compare June 16, 2026 18:58
Filter websocket state, entity/area/device registry, and REST states by role; harden setup for double-load and HA 2026.6 options flow; hide RBAC internal entities from restricted users; and drive frontend blocking from the per-user API.

Co-authored-by: Cursor <cursoragent@cursor.com>
@adityastic adityastic force-pushed the feature/state-api-filter branch from 1fd6a8c to 56854ef Compare June 16, 2026 19:20
@adityastic adityastic changed the title Add user-scoped state/entity API filtering feat: Add user-scoped state/entity API filtering Jun 16, 2026
@adityastic adityastic force-pushed the feature/state-api-filter branch from 19081b9 to 56854ef Compare June 16, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant