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

Redact PrimaryKey and SecondaryKey of ServiceBus Admin Client test #23246

Merged
merged 2 commits into from
Jul 30, 2021

Conversation

YijunXieMS
Copy link
Contributor

No description provided.

Comment on lines +31 to +32
private static final Pattern PRIMARY_KEY_PATTERN = Pattern.compile("(?:<PrimaryKey>)(.*)(?:</PrimaryKey>)");
private static final Pattern SECONDARY_KEY_PATTERN = Pattern.compile("(?:<SecondaryKey>)(.*)(?:</SecondaryKey>)");
Copy link
Member

Choose a reason for hiding this comment

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

Another solution for this is to add the redactions when constructing the RecordNetworkCallPolicy in the Service Bus admin client tests with this.

Co-authored-by: Alan Zimmer <48699787+alzimmermsft@users.noreply.github.com>
@YijunXieMS YijunXieMS merged commit 6ec2b15 into Azure:main Jul 30, 2021
@YijunXieMS YijunXieMS deleted the cred-scan-servicebus branch July 30, 2021 00:29
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-java that referenced this pull request Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants