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

# Network security

> Private nodes, a locked-down Kubernetes API, zero-trust networking, encryption in transit, and how Inframan reaches your cluster.

## Each infrastructure is its own network

Every infrastructure gets its own VPC and its own cluster. Infrastructures don't share a network with each other or with other Inframan customers.

* **Nodes are private.** They have no public IP addresses.
* **Inbound traffic** reaches your services only through the infrastructure's load balancer and Istio ingress gateway, and only for domains you've attached.
* **Outbound traffic** leaves through a NAT gateway with a static IP address, so third parties can allow-list one address for all your services. Services receive it as `INFRAMAN_EGRESS_IP`.
* **AWS nodes** require IMDSv2 and use encrypted disks.

## The Kubernetes API

| | How the cluster's API is reached |
| - | - |
| Google Cloud, hosted control plane | A public endpoint that accepts connections only from Inframan's own outbound addresses |
| Google Cloud, control plane in your project | A private endpoint, reachable only from your instance's network |
| AWS | A private endpoint, plus a public endpoint that accepts connections only from Inframan's outbound addresses |

On Google Cloud, GKE's DNS-based endpoint is also enabled. It's protected by Google Cloud IAM, so only identities with access to your project can use it. On AWS, the cluster uses access entries and the identity that created it gets no administrator rights. Inframan's role is the only cluster administrator.

People reach the API with the [kubectl tunnel](https://inframan.mintlify.site/provision/cluster-access.md): TLS runs end to end from kubectl to the cluster, and kubectl's token lasts about an hour and is never written to disk. Only Admins can open a tunnel.

## Zero-trust security

Zero-trust security is a choice you make when you [create an infrastructure](https://inframan.mintlify.site/provision/create-infrastructure.md). It's off by default.

When it's on:

* Every application pod gets an Istio sidecar, and traffic between sidecars uses mutual TLS.
* An authorization policy admits traffic from inside the cluster and from the ingress gateway.
* PostgreSQL and Redis get a network policy that refuses every connection except from the services [connected](https://inframan.mintlify.site/deploy/connections.md) to them.
* The cluster enforces Kubernetes network policies.

It costs roughly one extra system node, plus about 100m of CPU per pod for the sidecar.

> [!WARNING]
>
> Mutual TLS runs in **permissive** mode: a pod still accepts plain connections from a client without a sidecar. Strict mode, and turning zero trust on or off for an existing infrastructure, aren't available.

Without zero trust, PostgreSQL and Redis are reachable from any pod in the cluster, and are protected by their passwords.

## Encryption in transit

| Connection | Protection |
| - | - |
| Visitors to your domains | TLS with a Let's Encrypt certificate, renewed automatically. HTTP is redirected to HTTPS. |
| Your browser to the console | TLS |
| Services to PostgreSQL | TLS is required by the connection URL |
| kubectl to the cluster | TLS end to end, through the tunnel |
| Inframan to your monitoring data | Mutual TLS where it crosses a public network. See below. |
| Between services | Mutual TLS between sidecars, with zero-trust security on |

## How Inframan reads your monitoring data

Prometheus, Loki and Tempo have no public address. When you open a chart, Inframan checks your permissions and reads the data for you.

Where your instance has a private network path to the cluster, such as a control plane in your own Google Cloud project, Inframan reads over it. Everywhere else, including every AWS infrastructure, it reads through the infrastructure's own load balancer:

* On a dedicated hostname that never resolves in public DNS.
* Only with **mutual TLS**. Each infrastructure has its own certificate authority, created in and kept in your cloud account's secret manager. Inframan's client certificates last one hour.
* Only `GET` requests to the read endpoints the console uses. Everything else is refused at the gateway.

Alerts flow the other way, out of the cluster to Inframan, so nothing needs to reach into your cluster to alert you.


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