netfetch
netfetch copied to clipboard
Feature: netpols with namespaceSelector
Currently, we are checking network policies and their podSelectors + pods and their labels to match pods against the policies targeting them.
However, a networkPolicy in kubernetes can use a namespaceSelector which would apply to all pods within a specific namespace. We should implement logic to uncover these as well.
This would include changes to the ScanNetworkPolicies function.