Skip to content

SECURITY: Add TableOptions flag for unsafe entity logging #446

Description

@ahallctr-jpg

2. Sensitive Data Logged in Production Code (Information Disclosure)

Files:

  • TableController.Create.cs
  • TableController.Replace.cs
  • TableController.Read.cs
  • TableController.cs

Issue: Full entity contents are logged via entity.ToJsonString() at LogInformaion level. This means all entity field values (potentially including PII, secrets, or sensitive business data) are written to application logs in production. The authorization failure log at line 163 also serializes the full entity.

TO DO:

Add an option to the table options UnsafeEntityLogging: boolean (defaults to false)
If UnsafeEntityLogging == true, then the entity ID is logged at Information and the Serialization is logged at Debug.
If UnsafeEntityLogging == false, then only the entity ID is logged at Information.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ServerImprovements or additions to the server code

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions