> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Encryption in transit

> Which traffic in an In-VPC e6data deployment is encrypted with TLS, which isn't, and how to add node-to-node encryption or a service mesh.

ExplanationApplies to: CloudPrem (AWS and Azure)

Traffic from your users to the workspace endpoint and from the workspace to e6data's control plane is encrypted with TLS. Traffic between e6data components inside your cluster is not encrypted by e6data today; on Azure you can encrypt it at the network layer with WireGuard, with no e6data change.

## Traffic paths

| Path | Encryption | AWS | Azure |
| - | - | - | - |
| Your users and BI tools to the workspace endpoint (HTTPS 443, Postgres 5432) | TLS 1.2 / 1.3, terminated by the e6data query router | Yes | Yes |
| Workspace console to the e6data control plane | HTTPS 443 | Yes | Yes |
| e6data pods to your storage | HTTPS | S3 over 443. A bucket policy that denies non-HTTPS requests (`aws:SecureTransport`) works with no change | Works with storage set to HTTPS only and minimum TLS 1.2 |
| e6data pods to your cloud APIs (identity, compute, registry) | HTTPS | Yes | Yes |
| Between e6data components inside the cluster (query router, planner, queue, executors, metadata services, console) | Not encrypted by e6data | Not supported today | Not encrypted by e6data; use WireGuard below |
| Pod-to-pod traffic between nodes, at the network layer | Optional, set on your cluster | No option validated with e6data today | WireGuard (Advanced Container Networking Services) |

Traffic between the query router, planner, queue, executors and metadata services has no TLS option today. The query router to console hop is plain HTTP inside the cluster.

TLS between pods inside the cluster is not offered today. Use your CNI's encryption (for example WireGuard) if you need it.

## Client TLS (workspace endpoint)

* The endpoint listens on 443 (HTTPS) and 5432 (Postgres). Every request needs a valid e6data token. The query router checks it before routing.
* By default the install creates a public endpoint: on AWS an internet-facing NLB open to all source addresses, on Azure a public load balancer. For In-VPC, set it to internal and limit source ranges. See private-only deployment for [AWS](https://docs.e6data.com/platform/deploy/aws-cloudprem/private-only-deployment.md) or [Azure](https://docs.e6data.com/platform/deploy/azure-cloudprem/private-only-deployment.md).
* You can use your own certificate from your corporate CA, e6data's certificate, or Let's Encrypt. This is chosen at setup. On AWS, e6data's install sets up no Let's Encrypt issuer or DNS role; see prerequisites for [AWS](https://docs.e6data.com/platform/deploy/aws-cloudprem/prerequisites.md). How to create and rotate the certificate secret: [TLS certificates](https://docs.e6data.com/platform/identity/tls-certificates.md).
* On AWS, you can put your own Application Load Balancer with an ACM certificate in front of the query router, re-encrypting to it. The query router still checks the token. Postgres (5432) can't go through an ALB. NGINX ingress with TLS passthrough also works.
* On Azure, you can load the endpoint certificate from your Key Vault through the Key Vault CSI add-on. The private key must be exportable, because the query router terminates TLS.

> [!WARNING]
>
> On Azure, a certificate renewed in Key Vault reaches the cluster in about 41 seconds, but the query router keeps serving the old certificate until it restarts. Plan a restart of the query router after each renewal, on both clouds.

## Control-plane link

* Outbound HTTPS 443 only, from the console. Nothing connects in.
* A TLS-inspecting proxy works: give the console your CA and route it through the proxy. See proxy and TLS inspection for [AWS](https://docs.e6data.com/platform/deploy/aws-cloudprem/proxy-and-tls-inspection.md) or [Azure](https://docs.e6data.com/platform/deploy/azure-cloudprem/proxy-and-tls-inspection.md).
* What the console sends: [Data that leaves your network](https://docs.e6data.com/platform/trust/data-that-leaves-your-network.md).

## Node-to-node encryption

> [tab] AWS
>
> No option for encrypting pod traffic between nodes on EKS has been validated with e6data today. Excluding the e6data namespaces from a service mesh (see below) leaves e6data's own hops unencrypted.

> [tab] Azure
>
> WireGuard:
>
> 1. Turn on WireGuard in-transit encryption on the AKS cluster (Advanced Container Networking Services):
>    ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
>    az aks create ... --enable-acns --acns-transit-encryption-type WireGuard
>    ```
>    This runs on the cluster type e6data installs (Azure CNI overlay with Cilium), takes about 5 minutes, and needs no feature registration.
> 2. No e6data change is needed. Nodes e6data adds join the encrypted mesh automatically.
> 3. If you filter traffic between nodes, allow UDP 51871 between node IPs.
>
> What WireGuard doesn't cover: traffic between pods on the same node, host-network pods, node traffic, and egress to Azure services. It is not FIPS-validated.

## Service mesh (Istio)

| Setup | AWS | Azure |
| - | - | - |
| Mesh-wide STRICT mTLS, e6data namespaces excluded from sidecar injection | Works | Works |
| Your meshed services calling the e6data endpoint | Works | Works |
| Sidecars inside the e6data namespaces, PERMISSIVE mode | Refused when Pod Security "restricted" is on | Works |
| Sidecars inside the e6data namespaces, STRICT mode | Not supported today | Not supported today. External 443 and 5432 stop working |

Excluding the e6data namespaces from the mesh means e6data's own internal hops are not covered by mesh mTLS.

## Cost impact

Azure WireGuard:

* Azure charges about \$0.025 per node-hour for Advanced Container Networking Services, on every node.
* Network throughput between two 8-vCPU nodes fell from about 11.8 to 2.8 Gbit/s on a single stream (about 76% lower). Same-node traffic was unaffected.
* Each hop added about 0.1 ms.

## Verify

1. Endpoint certificate:
   ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
   openssl s_client -connect <WORKSPACE_HOSTNAME>:443 -servername <WORKSPACE_HOSTNAME> </dev/null | openssl x509 -noout -issuer -dates
   ```
   Expected: your issuer and the current validity dates.
2. Azure storage:
   ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
   az storage account show --name <STORAGE_ACCOUNT> --resource-group <RESOURCE_GROUP> \
     --query "{httpsOnly:enableHttpsTrafficOnly, minTls:minimumTlsVersion}"
   ```
   Expected: `httpsOnly: true`, `minTls: TLS1_2`.
3. Then resume a cluster and run a query from the e6data console.

## Limitations

* TLS between e6data components inside the cluster: Not supported today.
* STRICT mTLS inside the e6data namespaces: Not supported today.
* Node-to-node encryption on AWS: no option validated with e6data today.
* Azure: picking up a renewed endpoint certificate without restarting the query router: Not supported today.

## See also

* [TLS certificates](https://docs.e6data.com/platform/identity/tls-certificates.md)
* [Encryption at rest and customer-managed keys](https://docs.e6data.com/platform/trust/encryption-at-rest.md)
* [Data that leaves your network](https://docs.e6data.com/platform/trust/data-that-leaves-your-network.md)
* Pod security: [AWS](https://docs.e6data.com/platform/deploy/aws-cloudprem/pod-security.md) · [Azure](https://docs.e6data.com/platform/deploy/azure-cloudprem/pod-security.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.