Skip to content

⬆️ chore(dotnet-10): upgrade la .NET 10 LTS + Node 22 (stivuit pe #39) - #40

Merged
edyc24 merged 1 commit into
masterfrom
fix/dotnet-10
Nov 10, 2026
Merged

edyc24 merged 1 commit into
masterfrom
fix/dotnet-10

Conversation

@edyc24

@edyc24 edyc24 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Problem

.NET 8 iese din suport pe 10 noiembrie 2026 — fără patch-uri de securitate pentru runtime-ul API-ului chiar în fereastra auditului ANAF + Biroul de Credit („platformă suportată" e un checkbox standard). Node 20 e EOL din aprilie 2026. Stivuit pe #39 (bază fix/audit-hardening-2); se retarghetează după merge-urile anterioare.

What was done

  • Toate cele 6 proiecte din MoneyShop.sln: net8.0 → net10.0 (LTS, suport până în nov 2028). global.json pinuiește SDK 10.0.301 cu rollForward: latestFeature.
  • Pachete aliniate la framework: Microsoft.EntityFrameworkCore / .SqlServer / .Tools 8.0.11 → 10.0.14; Microsoft.AspNetCore.Authentication.JwtBearer 8.0.11 → 10.0.14; System.IdentityModel.Tokens.Jwt 8.1.2 → 8.23.0 (cerut de JwtBearer 10, altfel NU1605); System.Security.Cryptography.Pkcs → 10.0.14 (EF Core 10 aducea tranzitiv 9.0.11 cu advisories).
  • Microsoft.AspNetCore.Http.Features 5.0.17 (pachet din era .NET 5) scos din ServiceInterface → FrameworkReference Microsoft.AspNetCore.App (ca în proiectul EF).
  • Breaking changes: new X509Certificate2(bytes) → X509CertificateLoader.LoadCertificate(bytes) (SYSLIB0057, FirebaseTokenVerifier); KnownNetworks.Clear() → KnownIPNetworks.Clear() (ASPDEPR005, Program.cs).
  • CI: dotnet-version: 10.0.x în ambele job-uri, node-version: 22, job redenumit Backend (.NET 10); în deploy-backend, înainte de az webapp deploy: az webapp config set --linux-fx-version "DOTNETCORE|10.0" — stack-ul App Service se comută în același deploy (un build net10 framework-dependent nu ar porni pe imaginea 8, și invers).
  • Neatinse (compilează pe net10): itext7, EPPlus, Serilog, Swashbuckle, FirebaseAdmin, FluentValidation, ApplicationInsights.

Deliberation

  • Branch protection: check-ul obligatoriu pe master e acum Backend (.NET 8); după merge-ul acestui PR trebuie actualizat la Backend (.NET 10) (altfel PR-urile viitoare par blocate; adminii pot ocoli). Fac eu actualizarea imediat după merge.
  • Rollback: revert al commit-ului + az webapp config set --linux-fx-version "DOTNETCORE|8.0"; deploy-ul următor repune net8.
  • Frontend neschimbat (doar Node 22 în CI).

Checks performed

  • ~/.dotnet/dotnet build MoneyShop.sln -c Release (SDK 10.0.301) — succes, 0 erori; 59 avertismente, toate preexistente (nullable), 0 noi
  • dotnet list package --vulnerable --include-transitive — fără pachete vulnerabile
  • Smoke test local pe net10 (ASPNETCORE_ENVIRONMENT=Production, fără DB): GET /api/health/ping → 200, fără excepții la pornire
  • ci.yml validat YAML

🤖 Generated with Claude Code

…ode 22, stack App Service comutat la deploy

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@edyc24
edyc24 changed the base branch from fix/audit-hardening-2 to master November 10, 2026 20:26
@edyc24
edyc24 merged commit 177f1df into master Nov 10, 2026
4 checks passed
@edyc24
edyc24 deleted the fix/dotnet-10 branch November 10, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant