Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

[3.1] Credscan followup #43054

Merged

Conversation

aik-jahoda
Copy link

Adds suppression messages.

@@ -571,6 +571,7 @@ public enum FedAuthLibrary : byte
// 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
Member

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
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
Member

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
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
Member

Now it is in two PRs,

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

@aik-jahoda
Copy link
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
Member

Oh of course - got it!

@danmoseley
Copy link
Member

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