Skip to content

fix(security): gate saved-dashboard CRUD on connection ACL (#54) - #58

Open
venkateshsakamuri-lab wants to merge 2 commits into
mainfrom
cursor/saved-dashboard-access-c497
Open

fix(security): gate saved-dashboard CRUD on connection ACL (#54)#58
venkateshsakamuri-lab wants to merge 2 commits into
mainfrom
cursor/saved-dashboard-access-c497

Conversation

@venkateshsakamuri-lab

Copy link
Copy Markdown
Contributor

Summary

Fixes #54: SavedDashboardController create/update/delete/favorite (and GET list/by-id/search/folder/favorites) had no connection ACL. Only /share* was checked.

Mirrors SavedQueryController:

Op Check Connection id
POST / create assertCanManageConnectionContent body connectionId
PUT / DELETE / favorite assertCanManageConnectionContent persisted row connectionId
GETs assertCanReadConnectionContent path / loaded row
/share* unchanged (assertCanReadConnectionContent) persisted

Updates/deletes authorize against the stored connection so a spoofed body connectionId cannot re-home a dashboard onto a connection the caller cannot manage.

Test plan

  • ./mvnw test -Dtest=SavedDashboardControllerAccessTest (create denied never persists; update/delete use persisted connection; body spoof ignored; GETs assert read)
  • Manual: with auth enabled, user without connection grant gets 403 on create/list for that connection; granted editor can CRUD

Closes #54.

Open in Web Open in Cursor 

Mirror SavedQueryController: manage on create/update/delete/favorite
(persisted connectionId for mutations), read on GETs. Closes #54.

Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
@venkateshsakamuri-lab
venkateshsakamuri-lab marked this pull request as ready for review August 15, 2026 14:57
@venkateshsakamuri-lab
venkateshsakamuri-lab requested a review from a team as a code owner August 15, 2026 14:57
@cursor

cursor Bot commented Aug 15, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

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.

SavedDashboardController: create/update/delete have no access-control check

2 participants