You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From a security point of view we decided that, by default, both the message action and state passed to ILogger.Write should not contain any application data. That is, data that comes from the data store or may be supplied by an end user of the application. Depending on the application, this data may contain sensitive information (usernames, credit card numbers, etc.). Examples include, results from queries, values stored in entity instances, and constant values used in LINQ expressions.
We'll have a simple flag that can be enabled to allow this information to be included. This is especially useful for logging queries, where it is helpful to have the parameter values logged along with the query.
This work item includes:
Creating the flag (off by default)
Reviewing existing logging to make sure it honors the flag
Writing a warning to the log when the flag is enabled (once per context, ServiceProvider, or whatever is easiest)
Wherever data is filtered out of a message, include a message in place of the data letting folks know they can enable the flag to get the data (and a warning that it may result in logging sensitive info)
We should try and add this in a way that makes it easy to use it for future logging that we add.
@rowanmiller I did add a Debug log level and a minimum level to logging a couple months ago, the minimum level prevented more detailed level messages from being distributed to registered loggers for security purposes
Activity
rowanmiller commentedon Jan 9, 2015
@lukewaters please work with @anpete to get some direction on this one
divega commentedon Jun 30, 2015
@rowanmiller @anpete @ajcvickers need to find an owner for this.
rowanmiller commentedon Jun 30, 2015
Didn't we handle this with a log level that applies across all technologies?
anpete commentedon Jun 30, 2015
This should probably be replaced by a bug to switch from logging to event notification.
lukewaters commentedon Jun 30, 2015
@rowanmiller I did add a Debug log level and a minimum level to logging a couple months ago, the minimum level prevented more detailed level messages from being distributed to registered loggers for security purposes
3 remaining items
divega commentedon Jul 1, 2015
Thanks again!
divega commentedon Jul 1, 2015
@anpete all yours!
Logging: All-up logging improvements:
Logging: All-up logging improvements:
Logging: All-up logging improvements: