Skip to content

Conversation

@jimson-msft
Copy link
Contributor

@jimson-msft jimson-msft commented Mar 29, 2021

Suppress CredScanner

@jimson-msft jimson-msft requested a review from a team as a code owner March 29, 2021 20:12
{ "DOCacheHost", "10.0.0.100:80,myhost2.com:8080" },
{ "IoTConnectionString", "HostName=instance-company-iothub-ver.host.tld;DeviceId=user-dev-name;SharedAccessKey=abcdefghijklmnopqrstuvwxyzABCDE123456789012=;GatewayHostName=10.0.0.200" }
// [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not credentials (false positive)")]
{ "IoTConnectionString", "HostName=instance-company-iothub-ver.host.tld;DeviceId=user-dev-name;SharedAccessKey=dummysha256hash;GatewayHostName=10.0.0.200" }
Copy link
Collaborator

@shishirb-MSFT shishirb-MSFT Mar 29, 2021

Choose a reason for hiding this comment

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

dummysha256hash [](start = 115, length = 15)

Is changing the string required even with the suppression? #Resolved

@jimson-msft jimson-msft changed the title Remove SharedAccessKey= from test code Supress CredScanner Mar 29, 2021
@shishirb-MSFT
Copy link
Collaborator

shishirb-MSFT commented Mar 29, 2021

SetIoTConnectionString("HostName=instance-company-iothub-ver.host.tld;GatewayHostName=" TEST_MOCK_MCC_HOST ";DeviceId=user-dev-name;SharedAccessKey=abcdefghijklmnopqrstuvwxyzABCDE123456789012=");

Need it above this line too? #Resolved


Refers to: client-lite/test/mcc_manager.tests.cpp:104 in d6bf3fb. [](commit_id = d6bf3fb, deletion_comment = False)

@shishirb-MSFT
Copy link
Collaborator

shishirb-MSFT commented Mar 29, 2021

Update PR title to reflect the move to suppression. #Resolved

@shishirb-MSFT
Copy link
Collaborator

By the way, for PRs with a single commit, I've noticed that github doesn't use the PR title when merging. We'll need to double check these..


In reply to: 809689341 [](ancestors = 809689341)

Copy link
Collaborator

@shishirb-MSFT shishirb-MSFT left a comment

Choose a reason for hiding this comment

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

:shipit:

@jimson-msft jimson-msft merged commit aa63923 into main Mar 29, 2021
@jimson-msft jimson-msft deleted the user/jimson/cleanup branch March 29, 2021 20:34
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