netatlas Star on GitHub

See what can reach what in every Kubernetes cluster you run, and which open workloads are vulnerable.

netatlas is a free, open-source security UI for all your Kubernetes clusters: NetworkPolicies, Istio AuthorizationPolicies, traffic and Kubescape findings. Self-hosted and read-only, in one pod installed with Helm.

helm install netatlas oci://ghcr.io/kitecorp/charts/netatlas --version 0.3.1 --namespace netatlas --create-namespace -f values.yaml
Star on GitHub

The chart reads a values.yaml that names your cluster first: the three install steps.

The demo, 70 seconds with no sound, on the two example clusters, atlas-a and atlas-b. What it shows:

  1. The Overview: both clusters in one table, and the list of what needs attention, which starts with atlas-b's open workload with high vulnerabilities and names cart-allow as the policy that keeps cart from istiod.
  2. The Policy map of atlas-b: recommender is marked open and vulnerable, and its panel says no policy restricts who may call it and counts its vulnerabilities and failed controls.
  3. cart-allow in the editor: an egress rule to istiod on TCP 15012 is added as a draft, the review shows the added lines, and Copy YAML copies the policy. Nothing is applied.
  4. The Traffic map: the calls Istio measured, each line drawn around the boxes in its way, recommender's mark, and the list of what stands out.
  5. The Outbound view: outside-http.example and the TCP calls Istio cannot name, each with the workloads that may call it and the one that does.
  6. The Findings view: atlas-b's workloads with what Kubescape found, then recommender's page with its vulnerabilities and its failed controls.

From every cluster to one call

Each view is read live from your clusters and changes by itself when they do.

Overview

Every cluster in one table: its Kubernetes version, workloads, policies, open workloads, and the critical and high findings Kubescape reports.

A list beside it says what needs attention first, such as open workloads with critical or high vulnerabilities.

What makes a workload open

Watch the Overview, 11 seconds

The Overview of the two example clusters, atlas-a and atlas-b: the totals, a row per cluster with its Kubernetes version, workloads, policies, open workloads, enforcer, Istio mode and critical and high findings, and the list of what needs attention, which starts with the open workloads that are vulnerable

Findings from Kubescape

What Kubescape found in each workload: the vulnerabilities in its images and the controls its configuration fails, counted by severity.

Open workloads with a critical or high vulnerability are marked on both maps, and the Overview's list of what needs attention starts with them.

How the Findings view works

Watch the Findings view, 11 seconds

The Findings view of atlas-b: the time of Kubescape's newest scan, the filters, and its workloads in groups by namespace, each with its kind, an open mark, and its critical, high, medium and low counts of vulnerabilities and of failed controls, or not scanned

What it reads, and what it never does

netatlas only looks. A change happens only when you apply one, with your own token.

  • Read-only

    Its role may only get, list and watch. It cannot create, change or delete anything.

  • Never reads Secrets

    Its role has no rule for Secrets. The one ConfigMap it reads is Istio's mesh config, named istio.

  • Apply uses your own token

    The only write is a NetworkPolicy you apply from the editor. Your token goes in that one request and is never stored, so Kubernetes decides what you may change.

  • Sends nothing to us

    netatlas runs in your own cluster, needs no account and sends nothing to us. Outside your clusters it calls only the Prometheus you name and, for an EKS login through IAM roles for service accounts, AWS STS.

Every rule of the chart's read-only role charts/netatlas/files/reader-rules.yaml
- apiGroups: [""]
  resources: [configmaps]
  resourceNames: [istio]
  verbs: [get, list, watch]
- apiGroups: [""]
  resources: [namespaces, pods]
  verbs: [get, list, watch]
- apiGroups: [apps]
  resources: [daemonsets, replicasets]
  verbs: [get, list, watch]
- apiGroups: [batch]
  resources: [jobs]
  verbs: [get, list, watch]
- apiGroups: [networking.istio.io]
  resources: [serviceentries, sidecars]
  verbs: [get, list, watch]
- apiGroups: [networking.k8s.io]
  resources: [networkpolicies]
  verbs: [get, list, watch]
- apiGroups: [security.istio.io]
  resources: [authorizationpolicies]
  verbs: [get, list, watch]
- apiGroups: [spdx.softwarecomposition.kubescape.io]
  resources: [vulnerabilitymanifestsummaries, workloadconfigurationscansummaries]
  verbs: [list]
- apiGroups: [spdx.softwarecomposition.kubescape.io]
  resources: [vulnerabilitymanifests]
  verbs: [get, list]
- apiGroups: [spdx.softwarecomposition.kubescape.io]
  resources: [workloadconfigurationscans]
  verbs: [get]

How it works

netatlas is installed once, in any one of your clusters. It reads each cluster only through its Kubernetes API and the Prometheus you name. For an EKS login through IAM roles for service accounts, it also asks AWS STS for its role's credentials.

How netatlas works You open netatlas in a browser. netatlas, one pod installed once, reads each cluster's Kubernetes API and its Prometheus. Kubescape stores its results in the Kubernetes API of each cluster. The only write is a NetworkPolicy you apply with your own token. You, in a browser netatlas one install, one pod Each cluster you list netatlas runs in any one of them Kubernetes API policies, workloads, findings Kubescape scans images, settings Prometheus Istio's metrics reads, never Secrets Apply, with your token reads call rates How netatlas works You open netatlas in a browser. netatlas, one pod installed once, reads each cluster's Kubernetes API and its Prometheus. Kubescape stores its results in the Kubernetes API of each cluster. The only write is a NetworkPolicy you apply with your own token. You, in a browser netatlas one install, one pod Prometheus Istio's metrics Kubernetes API policies, workloads, findings Kubescape scans images, settings Each cluster you list netatlas runs in any one of them
  • netatlas reads
  • The only write: a NetworkPolicy you apply with your own token
  • Kubescape stores its results in the Kubernetes API

Because Kubescape stores its results in each cluster's Kubernetes API, findings arrive over the connection netatlas already has. netatlas does not install Kubescape: add it to each cluster with Kubescape's own Helm chart and the values netatlas needs, as Install Kubescape shows, with the hosts Kubescape calls. A cluster without it still shows its policies and traffic.

Install

Install netatlas in a cluster and let it read that cluster with its own ServiceAccount.

  1. Write values.yaml

    Name the cluster netatlas runs in.

    clusters:
      - name: my-cluster
        login:
          type: inCluster
  2. Install the chart

    One pod, in its own namespace.

    helm install netatlas oci://ghcr.io/kitecorp/charts/netatlas --version 0.3.1 --namespace netatlas --create-namespace -f values.yaml
  3. Open netatlas

    Then go to http://localhost:3000.

    kubectl -n netatlas port-forward svc/netatlas 3000:80

To show traffic and what leaves the cluster, name the cluster's Prometheus: Traffic. To read more clusters, list each one with a token or an EKS login: Clusters and EKS.

Questions

Does netatlas change anything in my clusters?

No. It may only get, list and watch, and never reads Secrets. The one write is a NetworkPolicy you apply from the editor with your own token, and Kubernetes decides whether you may.

What does each cluster need?

Read access to its Kubernetes API. The Traffic view, and the calls the Outbound view measures, also need Istio and a Prometheus that scrapes its proxies, and findings need Kubescape; a cluster without them still shows its policies and workloads.

Does it work with EKS?

Yes. netatlas reads EKS clusters as its pod's AWS role, through IAM roles for service accounts or EKS Pod Identity, so it needs no Kubernetes token for them.

Who can open netatlas?

Anyone who can reach it: netatlas has no login of its own, so open it through port-forward or protect its ingress with your identity proxy.

Is netatlas free?

Yes. It is open source under the Apache-2.0 licence, with everything on this page, for any number of clusters.