Skip to content

Secure EncryptCredentials datasource endpoints - #244

Open
KupoCat wants to merge 3 commits into
microsoft:masterfrom
KupoCat:kupocat-secure-datasource-endpoints
Open

Secure EncryptCredentials datasource endpoints#244
KupoCat wants to merge 3 commits into
microsoft:masterfrom
KupoCat:kupocat-secure-datasource-endpoints

Conversation

@KupoCat

@KupoCat KupoCat commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary

  • require Microsoft Entra authentication and the PowerBI.DatasourceAdmin app role for the EncryptCredentials UI and privileged datasource endpoints
  • return fail-closed 401/403 API responses and protect state-changing requests with antiforgery tokens
  • move the sample to .NET 8 and current, non-vulnerable identity/Power BI dependencies
  • document the separate operator app registration and HTTPS callback configuration

Validation

  • dotnet test ".NET Core\EncryptCredentials\EncryptCredentials.sln" --configuration Release (8 tests passed)
  • dotnet list ".NET Core\EncryptCredentials\EncryptCredentials\EncryptCredentials.csproj" package --vulnerable --include-transitive (no vulnerable packages)

Tomer Wintner and others added 3 commits September 2, 2026 15:46
Require an assigned Entra app role for privileged datasource operations, add CSRF protection, and return fail-closed API authorization responses.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replace the controller metadata assertion with integration coverage proving authenticated datasource administrators can access every protected endpoint.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Remove the test project and restore the production service methods that were made virtual only for test substitution.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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