Skip to content

Commit 63053f6

Browse files
committed
✨ Allow disabling RabbitMQ broker requirement checks via connection string
For multi-tenant RabbitMQ deployments where tenants cannot be granted management API access, operators can now add DisableBrokerRequirementChecks=true to the connection string.
1 parent b2e7a6b commit 63053f6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/ServiceControl.Transports.RabbitMQ/RabbitMQTransportExtensions.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,13 @@ public static void ApplySettingsFromConnectionString(this RabbitMQTransport tran
4242
_ = bool.TryParse(useExternalAuthMechanismString, out var useExternalAuthMechanism);
4343
transport.UseExternalAuthMechanism = useExternalAuthMechanism;
4444
}
45+
46+
if (dictionary.TryGetValue("DisableBrokerRequirementChecks", out var disableBrokerRequirementChecksString)
47+
&& bool.TryParse(disableBrokerRequirementChecksString, out var disableBrokerRequirementChecks)
48+
&& disableBrokerRequirementChecks)
49+
{
50+
transport.DisabledBrokerRequirementChecks =
51+
BrokerRequirementChecks.Version310OrNewer | BrokerRequirementChecks.StreamsEnabled;
52+
}
4553
}
4654
}

0 commit comments

Comments
 (0)