chore(deps): remove Microsoft.Data.SqlClient transitive pin once EF Core SqlServer floats a patched SqlClient

Ouverte
#610 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
58/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
csharp, postgresql
Domaine
devops, security

Piste de recherche

Read the Directory.Packages.props pin and the issue's linked background in #602 / PR #609. Test a candidate EFCoreVersion with the pin temporarily removed, then run dotnet nuget why Datasync.Toolkit.sln System.Security.Cryptography.Pkcs and the vulnerable package check. Done when a patched SqlClient is floated, the pin and comment are removed, and the listed restore, build, and test checks pass.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Blocked dependencies Infrastructure

Part of the outdated-package sweep (#587-#594). Follow-up to #602 / PR #609.

Background

#602 added an explicit transitive pin in the root Directory.Packages.props:

<PackageVersion Include="Microsoft.Data.SqlClient" Version="6.1.8" />

Microsoft.EntityFrameworkCore.SqlServer 10.0.14 floats Microsoft.Data.SqlClient 6.1.7, which depends on System.Security.Cryptography.Pkcs 9.0.11 (GHSA-846f-f764-76mx, GHSA-2fmv-rv2c-59x7; fixed in 9.0.21 / 10.0.13). The pin is a workaround and should not live forever.

Task

Remove the Microsoft.Data.SqlClient pin (and its explanatory comment) once a Microsoft.EntityFrameworkCore.SqlServer release floats a Microsoft.Data.SqlClient that is not affected, i.e. one that depends on System.Security.Cryptography.Pkcs >= 9.0.21 (net9.0 group) / >= 10.0.13.

How to check

  1. Bump EFCoreVersion (or test a candidate version) and run dotnet nuget why Datasync.Toolkit.sln System.Security.Cryptography.Pkcs with the pin temporarily removed.
  2. If the resolved Pkcs is >= 9.0.21 and the resolved Microsoft.Data.SqlClient is >= 6.1.8, the pin is no longer needed.

Acceptance criteria

  • Pin and comment removed from Directory.Packages.props.
  • dotnet restore shows no NU1901-NU1904 warnings.
  • dotnet list Datasync.Toolkit.sln package --vulnerable --include-transitive reports nothing.
  • dotnet build && dotnet test pass (Docker running for the SQL Server Testcontainers suite); build-library.yml green.
  • Suggested PR title: chore(deps): remove Microsoft.Data.SqlClient transitive pin.
Langage dominant
C#
Étoiles
184
Forks
48
Merge moyen
12 min
PR mergées (30 j)
21

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de CommunityToolkit/Datasync

Toutes les issues de CommunityToolkit/Datasync

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.