Skip to main content
Table of Contents

Enum BusEnvelopeIntegrityMode

Namespace
Stratara.Abstractions.Messaging
Assembly
Stratara.Abstractions.dll

Controls how IBusEnvelopeSigner-based integrity protection is enforced on inbound bus envelopes. See BusEnvelopeIntegrityOptions for binding.

public enum BusEnvelopeIntegrityMode
Extension Methods

Fields

Off = 0

No signing on publish, no verification on consume. Default in 3.x. Hosts opt in by calling AddBusEnvelopeIntegrity(...) and setting a non-Off mode.

Permissive = 1

Publishers attach a signature to every outbound envelope, but consumers accept unsigned envelopes for a rolling deployment window. Signature failures are logged at warning level and otherwise tolerated. Recommended bootstrap mode when retrofitting integrity to an existing fleet.

Strict = 2

Publishers attach a signature and consumers reject any envelope whose signature is missing or invalid. The dispatch throws InvalidOperationException; the message-bus implementation routes the rejection through its standard failure path — the bounded redelivery of MessageRetryOptions, then the subscription's dead-letter destination, on both brokers. A transient client subscription on RabbitMQ has no dead-letter destination and drops the envelope instead.