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

# Proxy and TLS inspection

> Send the e6data console's outbound traffic through your HTTP(S) proxy on AWS, and make it trust your TLS-inspection CA.

How-to guideApplies to: CloudPrem on AWS

The e6data console can send its outbound traffic through your HTTP(S) proxy, and it can trust your TLS-inspection CA. Both work end to end.

## Requirements

* Only the e6data console talks to e6data. Query engine pods never leave your cloud account: they reach your storage and catalog only.
* Proxy: allow `CONNECT` on 443 to the e6data control-plane host, and to AWS APIs you don't reach through VPC endpoints.
* `NO_PROXY` must include cluster, VPC and metadata addresses (below).
* Denied hosts must be rejected at once (HTTP 403 or TCP reset), not dropped silently.
* TLS inspection with your CA: the CA certificate must include a Subject Key Identifier extension.

| Item | AWS |
| - | - |
| Console through an explicit proxy | Supported |
| Proxy as the only route out | Not supported today |
| Explicit proxy through a central firewall | Supported |
| TLS inspection, e6data hosts exempt | Supported |
| TLS inspection of e6data traffic with your CA | Supported (resume, query and suspend all work) |

## Steps: explicit proxy

**1. Allow the control plane on your proxy**

On your proxy, allow `CONNECT <CONTROL_PLANE_HOST>:443`. If you have no VPC endpoints, also allow `.amazonaws.com`. Everything else can stay blocked.

**2. Point the console at the proxy**

The proxy settings go in the console's environment variables in the NamespaceConfig. For a new workspace, add these three lines under `console.environmentVariables` in the [Apply the NamespaceConfig](https://docs.e6data.com/platform/deploy/aws-cloudprem/deploy-workspace.md#step-2-deploy-the-workspace) step:

```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, add them to the live NamespaceConfig. The other variables stay as they are:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl -n ${NAMESPACE} patch namespaceconfig ${WORKSPACE_NAME}-nsc --type merge -p '{
  "spec": {"console": {"environmentVariables": {
    "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"
  }}}}'
```

`NO_PROXY` must list your VPC range, the Kubernetes service range (the API server lives there), and the EKS Pod Identity agent `169.254.170.23`. Don't add `.amazonaws.com` unless you have VPC endpoints for every AWS service.

**3. Optional: enforce it**

Turn on network policies in the Amazon VPC CNI and limit the console's egress to DNS, your proxy, the VPC and service ranges, `169.254.170.23`, `169.254.169.254`, and 443 to your region's S3 prefix-list ranges. Apply the policy in both e6data namespaces (the workspace namespace and `e6operator`). If your proxy only allows in-VPC destinations, allow S3 on it too. When you change the VPC CNI add-on, pass `--service-account-role-arn` only if the add-on has its own IAM role (IRSA).

**4. Restart the console**

Restart the console after the restriction is in place:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl -n ${NAMESPACE} rollout restart deploy/e6-console
```

> [!WARNING]
>
> A console pod that started before the restriction proves nothing. The AWS VPC CNI allows traffic for a few seconds after a pod starts. Always test with a fresh pod start.

## Steps: TLS inspection with your CA

**1. Store your CA certificate**

Store your CA certificate (public certificate only, no private key) in the workspace namespace:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl -n ${NAMESPACE} create secret generic customer-ca --from-file=ca.crt=<your-inspection-ca>.pem
```

`ca.crt` can hold several PEM certificates (root and intermediates).

**2. Tell the console to trust it**

For a new workspace, add `trustedCABundleSecret: customer-ca` under `console:` (next to `enabled: true`) in the [Apply the NamespaceConfig](https://docs.e6data.com/platform/deploy/aws-cloudprem/deploy-workspace.md#step-2-deploy-the-workspace) step. For a workspace that is already running, set it on the live NamespaceConfig:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl -n ${NAMESPACE} patch namespaceconfig ${WORKSPACE_NAME}-nsc --type merge \
  -p '{"spec":{"console":{"trustedCABundleSecret":"customer-ca"}}}'
```

The console adds your CA to its standard trust store. It still trusts public CAs.

**3. Send the console's traffic through the proxy**

Follow the explicit proxy steps above.

**4. Optional: exempt AWS APIs**

Exempt `*.amazonaws.com` from inspection. e6data needs nothing extra for that.

What your proxy shows: workspace status (about every 30 seconds), role and workspace sync, and release lookups. The content is described on [Data that leaves your network](https://docs.e6data.com/platform/trust/data-that-leaves-your-network.md).

## Preflight check

* Proxy: from a host in the node subnets, `curl -x http://<PROXY_HOST>:<PORT> -sS -o /dev/null -w '%{http_code}\n' https://<CONTROL_PLANE_HOST>/` returns an HTTP code.
* Proxy denies: `curl -x http://<PROXY_HOST>:<PORT> -m 10 https://example.com/` returns 403 at once, not a timeout.
* CA: `openssl x509 -in <your-inspection-ca>.pem -noout -text | grep -A1 'Subject Key Identifier'` prints a value.

## Verify

1. Your proxy log shows `CONNECT <CONTROL_PLANE_HOST>:443` from the console.
2. The workspace shows **Running** in the e6data console.
3. After a console restart, the new pod becomes Ready. Its logs show no `x509` or `certificate signed by unknown authority` errors.
4. From a pod with the console's labels, a direct request to the internet times out. The same request through the proxy succeeds.
5. Resume a cluster and run a query from the e6data console. It appears in Query History.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| Console restarts over and over behind the proxy | The query-history extension download is silently dropped | Reject denied hosts at once (HTTP 403), or allow the TCP 80 host on [Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md) |
| Console can't reach the Kubernetes API or its credentials | `NO_PROXY` misses the service range or `169.254.170.23` | Add them |
| Console rejects your CA | CA lacks a Subject Key Identifier | Use a CA with that extension (corporate CAs normally have it) |
| `x509: certificate signed by unknown authority` | CA secret missing or not referenced | Check the secret name in `trustedCABundleSecret` |
| New nodes stay `NotReady` after enabling VPC CNI network policies | Add-on update dropped its own IAM role (only if it uses IRSA) | Re-run with `--service-account-role-arn` |

## Limitations

* A network where the proxy is the only route out (no NAT, no direct route to the control plane): Not supported today. The query router fetches sign-in keys directly.

## See also

* [Network requirements](https://docs.e6data.com/platform/deploy/aws-cloudprem/network-requirements.md)
* [Private-only deployment](https://docs.e6data.com/platform/deploy/aws-cloudprem/private-only-deployment.md)
* [Hardened reference architecture](https://docs.e6data.com/platform/deploy/aws-cloudprem/reference-architecture-hardened.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/aws-cloudprem/hostnames-and-ports.md)


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