far2c
far2c

Reputation: 121

Are messages encrypted when consuming from Event Hub to my application? Is it SSL Secured?

I am consuming messages from the Azure Event Hub to my application and I am successfully receiving the messages. I want to know whether the messages sent from the Event Hub is encrypted. I searched in learn.microsoft.com but could not find much information. It would be a great help if anyone can help me out to understand.

Upvotes: 2

Views: 3165

Answers (1)

Peter Bons
Peter Bons

Reputation: 29780

Short answer: yes.

As you can find in the docs:

Any entity that reads event data from an event hub is an event consumer. All Event Hubs consumers connect via the AMQP 1.0 session and events are delivered through the session as they become available...

Now, there is more documentation around the use of AMQP regarding to the Service Bus and Event Hub, it can be found here:

It is the primary protocol of Azure Service Bus Messaging and Azure Event Hubs. Both services also support HTTPS.

and, more important in this context:

Azure Service Bus ( note: also Event Hub ) requires the use of TLS at all times. It supports connections over TCP port 5671, whereby the TCP connection is first overlaid with TLS before entering the AMQP protocol handshake, and also supports connections over TCP port 5672 whereby the server immediately offers a mandatory upgrade of connection to TLS using the AMQP-prescribed model. The AMQP WebSockets binding creates a tunnel over TCP port 443 that is then equivalent to AMQP 5671 connections.

In addition, Event Hub data is encrypted at rest, see [the docs])(https://learn.microsoft.com/en-us/azure/security/azure-security-encryption-atrest)

Upvotes: 3

Related Questions