Configure ServiceBusProcessorOptions for Azure Service Bus listeners (supersedes #3286)#3293
Merged
Merged
Conversation
…HSA-v5pm-xwqc-g5wc) Microsoft.AspNetCore.OpenApi 10.0.0 pulls the vulnerable Microsoft.OpenApi 2.0.0 transitively on net10.0. With TreatWarningsAsErrors=true, the NU1903 restore audit turns that advisory into a hard build break across the solution. Add a centrally-versioned Microsoft.OpenApi 2.7.5 (same 2.x major, API-compatible) and a scoped direct reference in Directory.Build.targets that only applies when a project targets net10.0 AND references Microsoft.AspNetCore.OpenApi — so the patched version wins over the transitive 2.0.0. net9.0 (Microsoft.OpenApi 1.6.x) and Swashbuckle-only web apps (1.2.x) are left untouched since neither is in the affected range; non-web test projects inherit the pin transitively through project references. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jul 9, 2026
Merged
This was referenced Jul 14, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #3286 (by @jorik). The original commit is preserved verbatim (same authorship); this PR adds only the dependency fix needed to get CI green on current
main.Feature (from #3286, @jorik)
Adds a
ConfigureProcessor(Action<ServiceBusProcessorOptions>)fluent method on bothAzureServiceBusQueueListenerConfigurationandAzureServiceBusSubscriptionListenerConfiguration, so long-running inline handlers can raiseMaxAutoLockRenewalDuration(and set any otherServiceBusProcessorOptions) instead of being stuck at the Azure SDK's 5-minute default.ReceiveModeis re-asserted toPeekLocksince the inline listener acks/defers/dead-letters against the lock. Scoped to the non-session inline processor paths. See #3286 for the full write-up.Why a superseding PR
#3286's branch was behind
mainand its core CI jobs (build,test,CIKafka,CIPersistence,describe-handlers-smoke) went red — not because of the ASB change, but because a newly-published advisory tripped restore repo-wide.Dependency fix
Microsoft.AspNetCore.OpenApi 10.0.0transitively pullsMicrosoft.OpenApi 2.0.0, which now carries a high-severity advisory (GHSA-v5pm-xwqc-g5wc — uncontrolled recursion / stack overflow parsing circular schema refs; patched in 2.7.5). WithTreatWarningsAsErrors=true, theNU1903restore audit becomes a hard build break.Fix:
Microsoft.OpenApi 2.7.5inDirectory.Packages.props.Directory.Build.targets, applied only when a project targetsnet10.0and referencesMicrosoft.AspNetCore.OpenApi, so the patched 2.7.5 (same 2.x major) wins over the transitive 2.0.0.Deliberately narrow — verified against the actual resolved graphs:
net9.0resolvesMicrosoft.OpenApi 1.6.x(not in the affected range) → left untouched.Microsoft.OpenApi 1.2.x→ forcing 2.x would break Swashbuckle 6.5.0, and they aren't vulnerable → left untouched.Wolverine.Kafka.Tests) inherit the pin transitively via their project references to the web apps.Verification (local)
dotnet restore wolverine.slnx→ exit 0, 0 × NU1903, no new errors.InMemoryMediatornet10 →2.7.5, net9 →1.6.17; Swashbuckle-only app →1.2.3both TFMs;Wolverine.Kafka.Testsnet10 →2.7.5(inherited).CoreTests(net9.0): 1834 passed, 0 failed, 2 skipped.Wolverine.AzureServiceBus/.Testsbuild clean.Closing #3286 in favor of this. Full credit to @jorik for the feature.
🤖 Generated with Claude Code