-
Notifications
You must be signed in to change notification settings - Fork 326
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
Mitigated CodeQL logging security Alerts #533
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of questions.
@msalemcode there seems to be some conflicts, could you please resolve them? |
65a7b01
to
de7bc3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments.
@@ -1,4 +1,5 @@ | |||
using System.Linq; | |||
using System.Web; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you add a code that requires the System.Web?
@@ -1,5 +1,6 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Web; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you add a code that requires the System.Web?
{ | ||
/// <summary> | ||
/// The logger. | ||
/// </summary> | ||
private readonly ILogger<MeteredBillingApiService> logger; | ||
private ILogger<T> logger; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
readonly made sense on the old code... If this is not going to be re-assigned later, it makes sense to have it.
This PR to fix CodeQL logging security alerts.
1- Centralize logging to use a common library under services
2- Adding Encoding methods to encode user input to prevent sql injection
3- Prevent Exposure of private information