fix(dp): keep X509Certificate2 alive for DataProtection key ring
- Remove `using var` from dpCert so the cert stays alive for ProtectKeysWithCertificate (was disposed, causing CryptographicException) - Add query filter on DiscoveredStreamUrl for model warning #10622 - Simplify migration retry: call Migrate() directly instead of GetPendingMigrations()+Migrate() to reduce transient startup noise
This commit is contained in:
1 parent
947414cc3f
commit
34037c20bf
3 files changed
+18
-20
No files matched your search
@@ -106,7 +106,7 @@ public static class DependencyInjection
|
||||
}
|
||||
|
||||
#pragma warning disable SYSLIB0057 // X509Certificate2(string, string) is obsolete — X509CertificateLoader not available in this SDK
|
||||
using var dpCert = new X509Certificate2(certFile.FullName, "");
|
||||
var dpCert = new X509Certificate2(certFile.FullName, "");
|
||||
#pragma warning restore SYSLIB0057
|
||||
dpBuilder.ProtectKeysWithCertificate(dpCert);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user