Summary
v10.1.0 adds the UnsafeEntityLogging option to TableControllerOptions (see #446). When false (the new default) only the entity ID is logged at Information level and the full serialized entity is never written to the logs; when true the full serialized entity is logged at Debug.
This sample is not the docs-tutorial walkthrough, so it should keep the secure default (UnsafeEntityLogging = false). This issue tracks reviewing the sample against v10.1.0 and explicitly documenting the secure default.
Change required
Review samples/datasync-server-cosmosdb-singlecontainer/src:
Controllers/TodoItemController.cs
Controllers/TodoListController.cs (already sets Options = new TableControllerOptions { EnableSoftDelete = true })
Confirm UnsafeEntityLogging is left at its secure default of false. Optionally add a brief comment near the TableControllerOptions usage noting the option exists and is intentionally left disabled to avoid logging potentially sensitive entity contents.
Acceptance criteria
Related
Summary
v10.1.0 adds the
UnsafeEntityLoggingoption toTableControllerOptions(see #446). Whenfalse(the new default) only the entity ID is logged atInformationlevel and the full serialized entity is never written to the logs; whentruethe full serialized entity is logged atDebug.This sample is not the docs-tutorial walkthrough, so it should keep the secure default (
UnsafeEntityLogging = false). This issue tracks reviewing the sample against v10.1.0 and explicitly documenting the secure default.Change required
Review
samples/datasync-server-cosmosdb-singlecontainer/src:Controllers/TodoItemController.csControllers/TodoListController.cs(already setsOptions = new TableControllerOptions { EnableSoftDelete = true })Confirm
UnsafeEntityLoggingis left at its secure default offalse. Optionally add a brief comment near theTableControllerOptionsusage noting the option exists and is intentionally left disabled to avoid logging potentially sensitive entity contents.Acceptance criteria
UnsafeEntityLoggingremainsfalse(default) in this sample.TableControllerOptionsis configured.Related
UnauthorizedStatusCodeis set, and the conflict-hiding change is internal).