Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extends MinimalPermissionsPlugin to log minimal permissions. Closes #1083 #1085

Merged

Conversation

waldekmastykarz
Copy link
Collaborator

Extends MinimalPermissionsPlugin to log minimal permissions. Closes #1083

@waldekmastykarz waldekmastykarz requested a review from a team as a code owner March 23, 2025 13:56
@garrytrinder garrytrinder force-pushed the minimalpermissionsplugin-log branch from 43de255 to cf240af Compare March 29, 2025 08:44
@garrytrinder garrytrinder requested a review from Copilot March 29, 2025 08:47
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR extends the MinimalPermissionsPlugin to log minimal permissions and addresses issue #1083.

  • Introduces a log statement that outputs minimal permissions after recording stops.
  • Enhances troubleshooting by providing visibility into the minimal permissions utilized.
Comments suppressed due to low confidence (1)

dev-proxy-plugins/RequestLogs/MinimalPermissionsPlugin.cs:140

  • [nitpick] The log message token '{MinimalScopes}' does not clearly reflect that the logged data represents minimal permissions. Consider renaming the token to '{MinimalPermissions}' for better clarity.
Logger.LogInformation("Minimal permissions: {MinimalScopes}", string.Join(", ", result.MinimalPermissions));

@garrytrinder garrytrinder merged commit d76b880 into dotnet:main Mar 29, 2025
3 checks passed
@waldekmastykarz waldekmastykarz deleted the minimalpermissionsplugin-log branch March 30, 2025 15:56
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.

Extend MinimalPermissionsPlugin to log minimal permissions
2 participants