You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DaprMetadataResourceBuilderExtensions overload WithMetadata(this IResourceBuilder<IDaprComponentResource> builder, string name, IValueProvider valueProvider) adds the value as a DaprSecretKeyRef and thus later in the lifecycle creates a secret store. However, it does not add a DaprComponentSecretAnnotation annotation, which allows the lifecycle hook to add an auth.secretstore reference to the component yaml later in the process.
This means the component cannot read the secret and thus the reference doesn't load.
My specific use case is:
var serviceBusResource = builder.AddAzureServiceBus("ServiceBus").RunAsEmulator();
builder.AddDaprComponent("servicebus-pubsub-queue", "pubsub.azure.servicebus.queues")
.WithMetadata("connectionString", serviceBusResource );
This does sucessfully create the component and YAML, however during startup the following error occurs:
initialization error occurred for servicebus-pubsub-queue (pubsub.azure.servicebus.queues/v1): either one of connection string or namespace name are required
Indicating the connection string reference cannot be read. Manually adding
auth:
secretStore: secretstore
and restarting does allow the reference to be read.
There does not seem to be a good way to work around this, as all of the annotations and schema references are internal so I am unable to manually add them.
We have noticed this issue has not been updated within 21 days. If there is no action on this issue in the next 14 days, we will automatically close it. You can use /stale-extend to extend the window.
Activity
github-actions commentedon Oct 29, 2026
We have noticed this issue has not been updated within 21 days. If there is no action on this issue in the next 14 days, we will automatically close it. You can use
/stale-extendto extend the window.Steve887 commentedon Oct 29, 2026
/stale-extend