Skip to content

fix(analysis): enforce RBAC checks for saved query endpoints#710

Merged
cct08311github merged 1 commit intodotnet10from
fix/daily-bug-scan-savedquery-access
Mar 21, 2026
Merged

fix(analysis): enforce RBAC checks for saved query endpoints#710
cct08311github merged 1 commit intodotnet10from
fix/daily-bug-scan-savedquery-access

Conversation

@cct08311github
Copy link
Owner

Summary

  • enforce Resolve + CheckAccess in analysis saved-query endpoints (ListSavedQueries, SaveQuery, GetSavedQuery)
  • keep existing endpoint behavior for invalid VM / invalid config by returning NotFound or BadRequest
  • add regression tests for forbidden access on role-restricted VM types

Why

Saved-query endpoints introduced in #684 did not run the same VM RBAC gate used by query/export flows, allowing unauthorized users to interact with restricted VM saved queries.

Testing

  • Attempted: dotnet test test/WalkingTec.Mvvm.Core.Test/WalkingTec.Mvvm.Core.Test.csproj --filter "FullyQualifiedName~AnalysisControllerTests"
  • Blocked in this environment by offline NuGet restore (NU1301 to https://api.nuget.org/v3/index.json)

Closes #709

@cct08311github cct08311github merged commit 3940076 into dotnet10 Mar 21, 2026
4 checks passed
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.

Bug: enforce RBAC on analysis saved-query endpoints

1 participant