-
Notifications
You must be signed in to change notification settings - Fork 11
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
chore(deps): deprecate arcus.security references in service-bus projects #471
base: main
Are you sure you want to change the base?
chore(deps): deprecate arcus.security references in service-bus projects #471
Conversation
✅ Deploy Preview for arcus-messaging canceled.
|
I think we should not only support ManagedIdentity to connect to ServiceBus. |
That's still kinda possible as we still support the |
I'd have to take a look at what you mean exactly. |
Currently supported, even after this PR: Host.CreateDefaultBuilder()
.ConfigureAppConfiguration(config => config.AddAzureKeyVault(new Uri(...), new ClientSecretCredential(...))
.ConfigureServices(services =>
{
services.AddServiceBusTopicMessagePump("<subscription>", (IConfiguration config) =>
{
return config["Topic:ConnectionString:From:IConfig:Via:KeyVault");
});
}); |
Yeah, but it's a pity you have to use it like that if your program that is using Arcus.Messaging is also using Arcus.Security. |
Think that is a bit the purpose, that people see that they need to migrate to something else. |
True. I do understand that you want to remove the dependency to Arcus.Security though. string connectionstring = await secretProvider.GetRawSecretAsync(mySecretName);
services.AddServiceBusQueueMessagePump(connectionString); |
string entityName, | ||
string subscriptionName, | ||
ServiceBusEntityType serviceBusEntity, | ||
Func<IConfiguration, string> getConnectionStringFromConfigurationFunc, |
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.
I'm not a fan of having to retrieve the connctionstring from config.
Why not just pass in the connectionstring as a string ? Its the responsibility of the user to retrieve it from any location he wants.
@@ -29,6 +29,7 @@ public static class AzureClientFactoryBuilderExtensions | |||
/// <exception cref="ArgumentException">Thrown when the <paramref name="connectionStringSecretName"/> is blank.</exception> | |||
/// <exception cref="InvalidOperationException">Thrown when the Arcus secret store is not registered.</exception> | |||
/// <exception cref="SecretNotFoundException">Thrown when no Azure EventHubs connection string secret was found in the Arcus secret store.</exception> | |||
[Obsolete("Will be removed in v3.0, please use Microsoft's built-in Azure SDK clients to register a " + nameof(ServiceBusClient) + " to remove the " + nameof(ISecretProvider) + " requirement")] |
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.
I believe we can make the entire class obsolete ?
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.
Yes, probably in time, but the scope of this PR is only to deprecate Arcus.Security references.
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.
Oh, my mistake, thought that this was another extensions class, yes we can.
Best to discus this separately: 'What to do with projects that use Arcus.Security in combination with Arcus.Messaging.’ What I think about:
|
Arcus.Security
types in the Service bus-related projects with a deprecation message on what to do instead.This is part of the excerise described in #470 where the Messaging repo becomes more lightweight and less dependent on other packages.