Skip to content

docs: document secure UnsafeEntityLogging default in todoapp-mvc sample - #485

Merged
adrianhall merged 1 commit into
CommunityToolkit:mainfrom
adrianhall:issues/480
Jul 6, 2026
Merged

docs: document secure UnsafeEntityLogging default in todoapp-mvc sample#485
adrianhall merged 1 commit into
CommunityToolkit:mainfrom
adrianhall:issues/480

Conversation

@adrianhall

Copy link
Copy Markdown
Collaborator

Closes #480

Summary

Reviews the samples/todoapp-mvc server sample against v10.1.0's UnsafeEntityLogging option (#446).

  • Bumps CommunityToolkit.Datasync.Server and CommunityToolkit.Datasync.Server.EntityFrameworkCore package references from 10.0.0 to 10.1.0, since the sample was still pinned to the release that predates UnsafeEntityLogging.
  • Explicitly sets UnsafeEntityLogging = false in TodoItemsController with a comment documenting that this is the deliberate secure default — entity logging is intentionally left disabled so TodoItem contents are never written to the logs.

No behavior change: the sample already defaulted to UnsafeEntityLogging = false before this PR; the change only makes the default explicit and documented, and updates the package version so the sample actually builds against the option that introduced it.

Testing

  • dotnet build samples/todoapp-mvc/part5.sln — succeeds with 0 warnings / 0 errors.

…le (CommunityToolkit#480)

- Bump CommunityToolkit.Datasync.Server(.EntityFrameworkCore) to
  10.1.0 so the sample builds against the release that introduced
  UnsafeEntityLogging (CommunityToolkit#446).
- Explicitly set UnsafeEntityLogging = false in TodoItemsController
  with a comment explaining the sample keeps entity logging disabled
  to avoid writing TodoItem contents to logs.
@adrianhall
adrianhall merged commit b3d4587 into CommunityToolkit:main Jul 6, 2026
2 checks passed
@adrianhall
adrianhall deleted the issues/480 branch July 6, 2026 07:53
adrianhall added a commit that referenced this pull request Jul 6, 2026
…903 (#489) (#493)

- Bump samples/todoapp-mvc Microsoft.EntityFrameworkCore.SqlServer 10.0.3 -> 10.0.9
  to match the repo's EFCoreVersion (missed in #485).
- Bump stray Microsoft.AspNetCore.Components.WebAssembly*/Microsoft.Extensions.Http
  pins in todoapp-blazor-wasm from 10.0.3 -> 10.0.9.
- Bump Microsoft.EntityFrameworkCore (Avalonia), Microsoft.Extensions.Logging.Debug
  (MAUI), Microsoft.Extensions.DependencyInjection (WinUI3), and
  System.Text.Json/System.Formats.Asn1/System.IO.Packaging (Uno, local CPM) from
  10.0.3 -> 10.0.9 across the todoapp client-platform samples.
- Bump CommunityToolkit.Datasync.Client 10.0.0 -> 10.1.0 across every client
  sample (Avalonia, MAUI, Uno, WPF, WinUI3, todoapp-tutorial/ClientApp,
  todoapp-blazor-wasm/Client) to match the latest published package, alongside
  the already-updated 10.1.0 server samples.
- Pin Microsoft.OpenApi to 2.7.5 in root Directory.Packages.props to resolve the
  NU1903 high-severity advisory (GHSA-v5pm-xwqc-g5wc) on the 2.0.0 version
  floated transitively via Microsoft.AspNetCore.OpenApi/NSwag.AspNetCore/
  Swashbuckle.AspNetCore. CentralPackageTransitivePinningEnabled propagates this
  through project references into samples/datasync-server and
  samples/datasync-server-cosmosdb-singlecontainer without needing per-sample
  pins; verified every restored project.assets.json in the repo now resolves
  Microsoft.OpenApi/2.7.5.

The remaining NU1903 advisory (SQLitePCLRaw.lib.e_sqlite3, GHSA-2m69-gcr7-jv3q)
has no patched version available and is tracked separately in #492.

Verified: dotnet restore/build/test on Datasync.Toolkit.sln (2280+ tests
passing across all suites), plus restore+build for every affected sample
solution/project (todoapp-mvc, todoapp-blazor-wasm, datasync-server,
datasync-server-cosmosdb-singlecontainer, todoapp-tutorial, TodoApp.Avalonia,
TodoApp.Avalonia.Desktop, TodoApp.WPF). TodoApp.MAUI/TodoApp.Uno mobile TFMs
and TodoApp.WinUI3 build could not be fully exercised in this environment due
to missing Android/iOS/Windows workloads, but package restore succeeded up to
that point, confirming the version pins resolve cleanly.

Co-authored-by: ahall <ahall@cloudflare.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Examples: Review todoapp-mvc server for UnsafeEntityLogging secure default (#446)

1 participant