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

> Send all outbound traffic from e6data In-VPC on AWS through your firewall or proxy with an FQDN allow-list.

ReferenceApplies to: CloudPrem on AWS

The Hardened architecture sends all outbound traffic through your firewall or proxy, which allows only named hosts. It is verified end to end with an explicit proxy for the console and with a central inspection VPC over Transit Gateway. Engine pods need no internet access; enforce that with the default-deny egress policy below (or with no routed egress), and the allow-list stays short.

## Diagram

![Hardened architecture on AWS: an EKS cluster in private subnets sends all outbound HTTPS 443 through your firewall or proxy, which allows only named hosts such as the e6data control plane and cloud and registry hosts and rejects the rest; engine pods read storage through the S3 gateway endpoint, and users reach an internal load balancer on ports 443 and 5432](https://mintcdn.com/e6data/btk547UQntSoisHC/images/platform/in-vpc/aws-hardened.svg?fit=max\&auto=format\&n=btk547UQntSoisHC\&q=85\&s=f82eff2d751612ff886405a4f9dfaa34)

## Requirements

* Every outbound connection from the cluster goes through your firewall or proxy.
* The firewall or proxy allows the hosts in [Hostnames, ports and IPs](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md), and denies everything else.
* Denied hosts must be **rejected** immediately (HTTP 403 from a proxy, or a TCP reset). A silent drop makes the console hang at startup.
* The endpoint is an internal load balancer, as in the [Standard architecture](https://docs.e6data.com/platform/deploy/aws-cloudprem/reference-architecture-standard.md).
* 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/aws-cloudprem/proxy-and-tls-inspection.md).

| Item | AWS | Required? | Why |
| - | - | - | - |
| Egress control | Explicit HTTP(S) proxy for the console, or a central inspection VPC over Transit Gateway | Yes | All egress is inspected |
| Proxy as the only route out (no other egress path) | Not supported today. The query router fetches sign-in keys directly | - | - |
| Console proxy setting | `HTTPS_PROXY`, `HTTP_PROXY`, `NO_PROXY` in the console environment | Yes | The console makes the control-plane calls. This setting covers the console only. If the proxy is your only way out, nodes (image pulls), Karpenter, the AWS Load Balancer Controller and the EBS CSI driver need VPC endpoints or their own proxy settings. Only the console path has been verified behind the proxy |
| `NO_PROXY` | Cluster domains, VPC CIDR, Kubernetes service CIDR, `169.254.169.254`, `169.254.170.23` | Yes | Keeps in-cluster and metadata traffic off the proxy |
| AWS APIs | Through the proxy, or VPC endpoints for S3, STS, EC2, ECR | Yes | Metadata bucket, credentials, instance types, image checks |
| Default-deny egress NetworkPolicy | Optional (VPC CNI network policy agent, Calico or Cilium) | Optional | Proves nothing bypasses the firewall |

> [!WARNING]
>
> Do not add `.amazonaws.com` to `NO_PROXY` unless you have VPC endpoints for every AWS service the console uses. Otherwise the console's startup download bypasses the proxy, is silently dropped, and the console restarts in a loop.

## Steps

1. Allow HTTPS (CONNECT on 443) on your proxy to the control-plane host and, if you don't use VPC endpoints, the AWS service hosts. Deny everything else with a 403.

2. Point the console at the proxy. In the **Apply the NamespaceConfig** step of [Deploy workspace and e6data](https://docs.e6data.com/platform/deploy/aws-cloudprem/deploy-workspace.md), add these lines under `console.environmentVariables`:

   ```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
         HTTPS_PROXY: "http://<PROXY_HOST>:<PORT>"
         HTTP_PROXY: "http://<PROXY_HOST>:<PORT>"
         NO_PROXY: ".svc,.svc.cluster.local,.cluster.local,<VPC_CIDR>,<K8S_SERVICE_CIDR>,169.254.169.254,169.254.170.23,localhost,127.0.0.1"
   ```

   For a workspace that is already running, use the `kubectl patch` in [Proxy and TLS inspection](https://docs.e6data.com/platform/deploy/aws-cloudprem/proxy-and-tls-inspection.md).

3. Optional: apply a default-deny egress NetworkPolicy to the workspace and operator namespaces. Allow DNS to kube-system (53 UDP/TCP), your proxy, the VPC CIDR, the service CIDR, `169.254.169.254/32`, `169.254.170.23/32`, and 443 to your region's S3 prefix-list CIDRs.

4. Optional, central inspection VPC: attach the workspace VPC to your Transit Gateway, send `0.0.0.0/0` from the workspace subnets to it, and add return routes in the inspection VPC for every workspace VPC CIDR (secondary and IPAM ranges too).

## Traffic paths

| # | Traffic | From | To | Port | AWS path |
| - | - | - | - | - | - |
| 1 | Control-plane polling | Console | e6data control plane | TCP 443 | Proxy (or Transit Gateway to central firewall) |
| 2 | Release bundles | Console | e6data release host | TCP 443 | Proxy (denying this host did not break the workspace when verified) |
| 3 | Image pulls | Nodes | Registry | TCP 443 | ECR endpoints or proxy route |
| 4 | Data reads | Engine pods | Your storage | TCP 443 | S3 gateway endpoint (no proxy) |
| 5 | Kubernetes API | Pods | API server | TCP 443 | Inside the VPC |
| 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 proxy or 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 -x http://<PROXY_HOST>:<PORT> https://example.com` from a pod: it returns quickly with an error.
* From a pod in the e6data namespace, a direct connection to an internet host times out; the same request through the proxy succeeds.
* The proxy log shows `CONNECT <CONTROL_PLANE_HOST>:443` from the console.
* 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 proxy or firewall reject denied hosts; keep `.amazonaws.com` out of `NO_PROXY` |
| Inspection VPC drops return traffic | Missing return route for a workspace CIDR | Add every workspace VPC CIDR to the inspection VPC route table |
| Pod CIDR blocked by firewall (AWS custom networking) | Firewall sees node addresses | Allow the node subnets; traffic from pods is translated to node IPs |

## Limitations

* The proxy as the only route out is not supported today. The query router needs its own path to the control plane for sign-in keys, for example through a firewall route.
* e6data publishes no fixed IP ranges for its hosts. Use an FQDN-aware firewall or proxy; security-group IP rules alone are not practical.
* A fully disconnected cluster is not supported today.

## See also

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


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