np-guard / netpol-analyzer

A Golang library for analyzing k8s connectivity-configuration resources (a.k.a. network policies)
Apache License 2.0
9 stars 2 forks source link

Exposure analysis #236

Open adisos opened 10 months ago

adisos commented 10 months ago

Consider enhancement of the connectivity analysis: A "what-if" analysis, to report if an analyzed workload is exposed (ingress of egress) to workloads which are not included in the input manifests.

adisos commented 8 months ago

More details:

Possible situations, which may not be reflected on the current connectivity report (since such connections may only be possible with peer workloads that do not exists on the input dir of the analyzed workload manifests):

How to provide/add this information in a connectivity report / graph? (Currently, the concept of a “connection” between workloads in the report is defined only for workloads that exist on the input dir, and for which both source is allowed by netpols to egress to destination, and destination is allowed by netpols to ingress from source).

zivnevo commented 8 months ago

The analysis provided by ACS only includes the first two bullets + indicating pods that are externally exposed. image

shireenf-ibm commented 6 months ago

work plan: