Skip to content

Conversation

@Ira2222
Copy link
Owner

@Ira2222 Ira2222 commented Oct 28, 2025

Summary

  • bump Azure.Identity to 1.17.0, Microsoft.AspNetCore.OutputCaching.StackExchangeRedis to 8.0.16, and align Entity Framework Core tooling/tests (Design, InMemory, Microsoft.AspNetCore.Mvc.Testing, Microsoft.Data.Sqlite) to 8.0.11
  • add a CI package-audit job that runs dotnet package list --outdated --include-transitive --highest-patch
  • ensure UseSecurityHeaders() executes first and layer a UseCorsVaryHeader() middleware so the allow-list CORS policy (explicit origins only) emits Vary: Origin
  • add AddOptions<DatabaseOptions>()...ValidateOnStart() to fail fast when the selected provider lacks a connection string outside Development/Testing and capture the sweep in docs/reports/2025-11-maintenance.md

Testing

  • dotnet test

https://chatgpt.com/codex/tasks/task_e_6900dca96164832ca287b57a84b4cc52

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

if (string.IsNullOrWhiteSpace(connection))
{
throw new InvalidOperationException("Data:ConnectionStrings:Postgres must be configured when using the Postgres provider.");
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Database Validation Mismatch Across Environments

The DatabaseOptions validation in Program.cs doesn't fully align with the connection string resolution in DataExtensions.cs. For Postgres, validation passes in Testing environments without a configured connection string, but the application fails at runtime. Conversely, for SQLite, validation fails in non-development/testing environments even though the runtime provides an unconditional default connection string.

Additional Locations (1)

Fix in Cursor Fix in Web

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants