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

Add new properties in the IOutputSanitizer #425

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

vidai-msft
Copy link
Contributor

Add IgnoredModules and IgnoredCmdlets to bypass unnecessary modules and/or cmdlets for secrets detection.

@vidai-msft vidai-msft marked this pull request as ready for review July 22, 2024 03:22
@vidai-msft vidai-msft requested a review from isra-fel July 22, 2024 03:22
namespace Microsoft.WindowsAzure.Commands.Common.Sanitizer
{
public interface IOutputSanitizer
{
bool RequireSecretsDetection { get; }

IEnumerable<string> IgnoredModules { get; }
Copy link
Contributor

Choose a reason for hiding this comment

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

why IEnumerable not HashSet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just want to keep the interface definition more flexible and enumeration is the necessary feature of the collection. In the implementation, I will use string array instead as IgnoredModules and IgnoredCmdlets are both small lists while HashSet is efficient for large list and looks like a bit heavy for this scenario.

Copy link
Member

@isra-fel isra-fel left a comment

Choose a reason for hiding this comment

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

LGTM

@VeryEarly VeryEarly merged commit ccb149a into main Jul 23, 2024
2 checks passed
@VeryEarly VeryEarly deleted the vidai/feature-secrets-detection branch July 23, 2024 01:02
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.

3 participants