> ## 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.

# Hardened reference architecture

> e6data on AKS with all outbound traffic routed through your firewall, which allows only named hosts.

ReferenceApplies to: CloudPrem on Azure

The Hardened architecture sends all outbound traffic through your firewall, which allows only named hosts. Every pod reaches only the hosts on your allow-list. Engine pods are kept off the internet entirely only with the optional default-deny policy below. The allow-list is short.

Install and cluster start have been verified through a hub Azure Firewall allow-list in this layout.

## Diagram

![Hardened architecture on Azure: an AKS cluster in a spoke VNet with no NAT gateway sends all outbound traffic over a user-defined 0.0.0.0/0 route to a hub Azure Firewall with an FQDN allow-list, which reaches only the e6data control plane and allow-listed cloud and registry hosts; users reach an internal load balancer and engine pods read storage through a service or private endpoint](https://mintcdn.com/e6data/btk547UQntSoisHC/images/platform/in-vpc/azure-hardened.svg?fit=max\&auto=format\&n=btk547UQntSoisHC\&q=85\&s=db6ac2bf77b562c5386bc1bf01a0285c)

* **Outbound:** a user-defined route `0.0.0.0/0` sends all traffic from the AKS subnet to a hub Azure Firewall with an FQDN allow-list and forced tunnelling. The firewall allows HTTPS 443 to named hosts only (the e6data control plane, and the cloud and registry hosts on your allow-list), and rejects denied hosts immediately (HTTP 403 or a reset).
* **Spoke VNet:** no NAT gateway. The e6data namespaces can have an optional default-deny egress NetworkPolicy. The console goes through the firewall. Engine pods reach allow-listed hosts only, or none with the default-deny policy.
* **Users and data:** your users and BI tools reach the internal load balancer on 443 and 5432. Engine pods read your data and metadata storage through a storage service endpoint or private endpoint.

## Requirements

* Every outbound connection from the cluster goes through an FQDN-aware firewall, with a default route to it (tested with Azure Firewall).
* The firewall allows the hosts in [Hostnames and ports](https://docs.e6data.com/platform/deploy/azure-cloudprem/hostnames-and-ports.md), and denies everything else.
* Denied hosts must be **rejected** immediately (HTTP 403 or a TCP reset). A silent drop can make the console hang at startup.
* The endpoint is an internal load balancer, as in the [Standard](https://docs.e6data.com/platform/deploy/azure-cloudprem/reference-architecture-standard.md) architecture.
* Allow TCP 443 to the AKS API server's IP as a network rule. Pods call the Kubernetes API by IP with no hostname, so an FQDN rule can't match it.
* Also allow Microsoft's standard AKS outbound rules (the `AzureKubernetesService` FQDN tag, NTP and the AKS network rules).
* If your firewall decrypts TLS, either exempt the control-plane host or give the e6data console your inspection CA. See [Proxy and TLS inspection](https://docs.e6data.com/platform/deploy/azure-cloudprem/proxy-and-tls-inspection.md).

| Item | Azure | Required? | Why |
| - | - | - | - |
| Egress control | An FQDN-aware firewall with a default route to it; AKS outbound type `userDefinedRouting` (tested with a hub Azure Firewall and forced tunnelling) | Yes | All egress is inspected |
| Proxy as the only route out (no other egress path) | Not supported today | - | Autoscaled nodes and some components ignore the proxy |
| Default-deny egress NetworkPolicy | Optional (tested with Cilium) | Optional | Proves nothing bypasses the firewall |
| DNS logging | Any resolver that logs lookups, with VNet DNS pointing at it (tested with the Azure Firewall DNS proxy) | Recommended | Every lookup is logged |

> [!WARNING]
>
> Azure Firewall policy changes can take 2 to 6.5 minutes to apply. Wait before re-testing.

## Steps

1. Route `0.0.0.0/0` from the AKS subnet to your firewall with a route table. Create the cluster with `--outbound-type userDefinedRouting`.
2. Allow the `AzureKubernetesService` FQDN tag, NTP (UDP 123), and the AKS network rules (UDP 1194 and TCP 9000 to `AzureCloud.<region>`).
3. Add a network rule for TCP 443 to the AKS API server's IP.
4. Add application rules for the e6data hosts in [Hostnames and ports](https://docs.e6data.com/platform/deploy/azure-cloudprem/hostnames-and-ports.md). For the plain-HTTP port 80 host listed there, either allow it or make the firewall reject it at once. If it's blocked, query history degrades.
5. Optional: apply default-deny Cilium policies with e6data's tested allow-list. Ask e6data for the policy file for your release.

## Traffic paths

| # | Traffic | From | To | Port | Azure path |
| - | - | - | - | - | - |
| 1 | Control-plane polling | Console | e6data control plane | TCP 443 | Hub firewall |
| 2 | Release bundles | Console | e6data release host | TCP 443 | Hub firewall (required) |
| 3 | Image pulls | Nodes | Registry | TCP 443 | Hub firewall, or private endpoint to your registry |
| 4 | Data reads | Engine pods | Your storage | TCP 443 | Firewall rule, service endpoint or private endpoint |
| 5 | Kubernetes API | Pods | API server | TCP 443 | Network rule to the API server IP |
| 6 | Users and BI tools | Your network | Internal load balancer | TCP 443, 5432 | Private network |
| 7 | Anything from e6data | e6data | Your network | none | Never |

## Validation checklist

* Your firewall log for one resume, query and suspend cycle shows only allow-listed hosts as allowed.
* Denied hosts get an immediate reject (403 or reset), not a timeout. Test with `curl -m 10 https://example.com` from a pod: it returns quickly with an error.
* `az network route-table route list -g <RG> --route-table-name <RT> -o table` shows `0.0.0.0/0` to `VirtualAppliance` at the firewall IP.
* `az aks show -g <RG> -n <CLUSTER> --query networkProfile.outboundType -o tsv` returns `userDefinedRouting`.
* The workspace shows **Running** in the e6data control plane.
* After the restriction is in place, a console restart becomes Ready. A pod that was running before the restriction does not prove the setup. (This step restarts the console; plan it with your team.)
* You can sign in, resume a cluster, run a query and see it in Query History.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| Console restarts in a loop after a restart | A startup download is silently dropped | Make the firewall reject denied hosts |
| cert-manager crash-loops | No rule for TCP 443 to the API server IP | Add the network rule |
| Workspace never gets a metadata service | Release host blocked | Allow the release host listed in [Hostnames and ports](https://docs.e6data.com/platform/deploy/azure-cloudprem/hostnames-and-ports.md) |
| New Karpenter nodes never join | Explicit-proxy-only egress; autoscaled nodes don't use the proxy | Use firewall-based egress |

## Limitations

* Explicit-proxy-only egress: not supported today. Use firewall-based egress.
* e6data publishes no fixed IP ranges for its hosts. Use an FQDN-aware firewall; NSG IP rules alone are not practical.
* A fully disconnected cluster is not supported today.

## See also

* [Choose an architecture](https://docs.e6data.com/platform/deploy/azure-cloudprem/reference-architectures.md)
* [Isolated reference architecture](https://docs.e6data.com/platform/deploy/azure-cloudprem/reference-architecture-isolated.md)
* [Proxy and TLS inspection](https://docs.e6data.com/platform/deploy/azure-cloudprem/proxy-and-tls-inspection.md)
* [Data that leaves your network](https://docs.e6data.com/platform/trust/data-that-leaves-your-network.md)
* [Hostnames and ports](https://docs.e6data.com/platform/deploy/azure-cloudprem/hostnames-and-ports.md)


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