Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

[3.1] Credscan followup - #43054

Merged
danmoseley merged 6 commits into
dotnet:release/3.1from
aik-jahoda:jajahoda/credscan-3.1followup
Mar 26, 2021
Merged

[3.1] Credscan followup#43054
danmoseley merged 6 commits into
dotnet:release/3.1from
aik-jahoda:jajahoda/credscan-3.1followup

Conversation

@aik-jahoda

Copy link
Copy Markdown

Adds suppression messages.

// Login data validation Rules
//
internal const ushort MAXLEN_HOSTNAME = 128; // the client machine name
// [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a password.")]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should this be on the line below?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This one is weird. The

        internal const ushort MAXLEN_USERNAME = 128; // the client user id
        internal const ushort MAXLEN_PASSWORD = 128; // ...

is considered as password even with the new line (something like MAXLEN_USERNAME = MAXLEN_PASSWORD = 128 )
This is why the suppression message is on line which doesn't look like password. Perhaps the justification message can be better.

@danmoseley

Copy link
Copy Markdown

We should not merge any suppressions until we get exemption mail.

Would it make sense to have two PR's, one for suppression and one for PLACEHOLDER changes?

@aik-jahoda

Copy link
Copy Markdown
Author

Now it is in two PRs, PLACEHOLDERS needs to be merged prior we can close work items, for suppress messages I think we are fine if we do when we have the exception and we can merge it in next branch open window. This PR will clean a lot when we merge the #43051.

@danmoseley

Copy link
Copy Markdown

Now it is in two PRs,

I'm confused, this PR contains both suppressions and PLACEHOLDERS?

@aik-jahoda

Copy link
Copy Markdown
Author

Yep, it is based on last commit of the #43051. When the previous one is merged, this one will contain the suppression only. It is because I needed to run the tool on whole repository with all changes.

@danmoseley

Copy link
Copy Markdown

Oh of course - got it!

@danmoseley

Copy link
Copy Markdown

Failure is Writing3MBBase64Bytes - unrelated.

@danmoseley danmoseley changed the title [DONT MERGE][3.1] Credscan followup [3.1] Credscan followup Mar 25, 2021
@danmoseley
danmoseley merged commit 8591c91 into dotnet:release/3.1 Mar 26, 2021
@aik-jahoda
aik-jahoda deleted the jajahoda/credscan-3.1followup branch March 26, 2021 09:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants