diff --git a/samples/datasync-server-cosmosdb-singlecontainer/src/Controllers/TodoItemController.cs b/samples/datasync-server-cosmosdb-singlecontainer/src/Controllers/TodoItemController.cs index 86c7aa47..12ae4ed5 100644 --- a/samples/datasync-server-cosmosdb-singlecontainer/src/Controllers/TodoItemController.cs +++ b/samples/datasync-server-cosmosdb-singlecontainer/src/Controllers/TodoItemController.cs @@ -14,5 +14,9 @@ public class TodoItemController : TableController public TodoItemController(IRepository repository) : base(repository) { + // UnsafeEntityLogging is intentionally left at its secure default (false). + // This sample stores user-supplied TodoItem content (Title), so only the + // entity ID is logged; the full serialized entity is never written to the logs. + Options = new TableControllerOptions { UnsafeEntityLogging = false }; } } \ No newline at end of file diff --git a/samples/datasync-server-cosmosdb-singlecontainer/src/Controllers/TodoListController.cs b/samples/datasync-server-cosmosdb-singlecontainer/src/Controllers/TodoListController.cs index 1795e77a..7bbf19e3 100644 --- a/samples/datasync-server-cosmosdb-singlecontainer/src/Controllers/TodoListController.cs +++ b/samples/datasync-server-cosmosdb-singlecontainer/src/Controllers/TodoListController.cs @@ -13,6 +13,9 @@ public class TodoListController : TableController { public TodoListController(IRepository repository) : base(repository) { - Options = new TableControllerOptions { EnableSoftDelete = true }; + // UnsafeEntityLogging is intentionally left at its secure default (false). + // This sample stores user-supplied TodoList content (Title), so only the + // entity ID is logged; the full serialized entity is never written to the logs. + Options = new TableControllerOptions { EnableSoftDelete = true, UnsafeEntityLogging = false }; } } \ No newline at end of file diff --git a/samples/datasync-server-cosmosdb-singlecontainer/src/Sample.Datasync.Server.SingleContainer.csproj b/samples/datasync-server-cosmosdb-singlecontainer/src/Sample.Datasync.Server.SingleContainer.csproj index 000edcef..9d103873 100644 --- a/samples/datasync-server-cosmosdb-singlecontainer/src/Sample.Datasync.Server.SingleContainer.csproj +++ b/samples/datasync-server-cosmosdb-singlecontainer/src/Sample.Datasync.Server.SingleContainer.csproj @@ -10,6 +10,15 @@ + + + +