-
Notifications
You must be signed in to change notification settings - Fork 105
Add logging through to Azure services #808
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
Conversation
src/Sign.SignatureProviders.TrustedSigning/TrustedSigningService.cs
Outdated
Show resolved
Hide resolved
8463ad2 to
67fb84e
Compare
test/Sign.SignatureProviders.TrustedSigning.Test/TrustedSigningServiceProviderTests.cs
Outdated
Show resolved
Hide resolved
test/Sign.SignatureProviders.TrustedSigning.Test/TrustedSigningServiceTests.cs
Outdated
Show resolved
Hide resolved
test/Sign.SignatureProviders.KeyVault.Test/KeyVaultServiceProviderTests.cs
Outdated
Show resolved
Hide resolved
test/Sign.SignatureProviders.KeyVault.Test/KeyVaultServiceProviderTests.cs
Outdated
Show resolved
Hide resolved
test/Sign.SignatureProviders.KeyVault.Test/KeyVaultServiceProviderTests.cs
Outdated
Show resolved
Hide resolved
dtivel
left a comment
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.
Minor feedback. Looks good!
- Introduced a private field `servicesToAdd` in `ServiceProviderFactory` to store additional services. - Added `AddServices` method to `ServiceProviderFactory` to add services via an `Action<IServiceCollection>` parameter. - Updated `Create` method to include `servicesToAdd` if not null. - Added `ServiceProviderFactoryTests` to verify new functionality. - Tests include null check, service addition, and service provider creation. - Defined `ITestService`, `TestService`, `ITestService2`, and `TestService2` for testing purposes.
Introduce Microsoft.Extensions.Azure package and refactor TrustedSigningService to use dependency injection for CertificateProfileClient. Update TrustedSigningServiceProvider to rely on service provider for instances. Add localized string resources for "Certificate Details" in multiple languages. Update tests to reflect changes and remove obsolete tests. Log detailed certificate information in TrustedSigningService.
…existing ones to match.
…ly disposed of after use.
- Updated `AzureKeyVaultCommand.cs` to construct and validate URIs for certificates and keys using Azure SDK, and configured Azure clients and services with dependency injection so logging forwards through. - Added `InvalidKeyVaultUrl` localized string in `AzureKeyVaultResources.Designer.cs` and updated `AzureKeyVaultResources.resx`. - Refactored `KeyVaultService.cs` to use `CertificateClient` and `CryptographyClient` for simplified service operations. - Simplified `KeyVaultServiceProvider.cs` by using dependency injection for `KeyVaultService` retrieval. - Removed `PrivateAssets` attribute from `Azure.Security.KeyVault.Certificates` and `Azure.Security.KeyVault.Keys` in `Sign.SignatureProviders.KeyVault.csproj` for runtime availability.
Also avoids unused parameter error
Co-authored-by: Damon Tivel <[email protected]>
…e when signing fails
|
@dotnet/sign-maintainers, can I get a re-review? I applied my feedback on Claire's PR. Since I'm now a contributor, I need an outside reviewer. |
erdembayar
left a comment
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.
LGTM, just 1 question for test.
Refactored to use Azure services via DI as that also configures it to work with ILogger.