-
Notifications
You must be signed in to change notification settings - Fork 2
Upgrade application to .NET 10 and update dependencies #461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "ConnectionStrings": { | ||
| "DefaultConnection": "Server=.\\sqlexpress;Database=sloth;Trusted_Connection=True;MultipleActiveResultSets=true" | ||
| "DefaultConnection": "Server=.\\sqlexpress;Database=sloth;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: Same security concern as in Sloth.Api/appsettings.json. This setting disables SSL/TLS certificate validation and should only be used in development environments, never in production. Ensure this configuration is environment-specific and production deployments use properly validated certificates. 🤖 Prompt for AI Agents |
||
| }, | ||
| "Logging": { | ||
| "IncludeScopes": false, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "ConnectionStrings": { | ||
| "DefaultConnection": "Server=.\\sqlexpress;Database=sloth;Trusted_Connection=True;MultipleActiveResultSets=true" | ||
| "DefaultConnection": "Server=.\\sqlexpress;Database=sloth;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: Same security concern as in other appsettings.json files. This setting should only be used in development environments with self-signed certificates, never in production. 🤖 Prompt for AI Agents |
||
| }, | ||
| "Stackify": { | ||
| "AppName": "Sloth.Jobs.CyberSource.BankReconcile", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "ConnectionStrings": { | ||
| "DefaultConnection": "Server=.\\sqlexpress;Database=sloth;Trusted_Connection=True;MultipleActiveResultSets=true" | ||
| "DefaultConnection": "Server=.\\sqlexpress;Database=sloth;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: Same security concern as in other appsettings.json files. Ensure this is only used in development and not deployed to production environments. 🤖 Prompt for AI Agents |
||
| }, | ||
| "Sparkpost": { | ||
| "ApiKey": "[External]", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "ConnectionStrings": { | ||
| "DefaultConnection": "Server=.\\sqlexpress;Database=sloth;Trusted_Connection=True;MultipleActiveResultSets=true" | ||
| "DefaultConnection": "Server=.\\sqlexpress;Database=sloth;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: Same security concern applies here. This setting compromises connection security and must not be used in production deployments. 🤖 Prompt for AI Agents |
||
| }, | ||
| "Logging": { | ||
| "IncludeScopes": false, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "ConnectionStrings": { | ||
| "DefaultConnection": "Server=.\\sqlexpress;Database=sloth;Trusted_Connection=True;MultipleActiveResultSets=true" | ||
| "DefaultConnection": "Server=.\\sqlexpress;Database=sloth;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: Same security concern as in other appsettings.json files across the solution. All connection strings in this PR add Consider creating a solution-wide strategy for managing connection strings across environments to prevent this setting from reaching production. 🤖 Prompt for AI Agents |
||
| }, | ||
| "Sparkpost": { | ||
| "ApiKey": "[External]", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical:
TrustServerCertificate=Truedisables certificate validation.Adding
TrustServerCertificate=Truedisables SSL/TLS certificate validation, making the connection vulnerable to man-in-the-middle attacks. This setting should never be used in production environments.Recommended approach:
Encrypt=Falseif the network is trusted and isolated🔐 Proposed fix for environment-specific configuration
Move this setting to
appsettings.Development.json:appsettings.Development.json:
{ "ConnectionStrings": { "DefaultConnection": "Server=.\\sqlexpress;Database=sloth;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True" } }appsettings.json (base):
appsettings.Production.json:
{ "ConnectionStrings": { "DefaultConnection": "[Override from environment variables or Key Vault]" } }🤖 Prompt for AI Agents