This is article 8 of 10 in Beyond Kubernetes Defaults . Read article 7: Desired State Is Not Enough first, or start with article 1 .
NetworkPolicy is one of the most useful security controls available to Kubernetes operators.
It reduces attack surface by limiting which network paths exist.
It does not tell the application who is on the other end of the connection.
Reachability answers one question
A policy can express something like:
Pods with label A may connect to service B on port 443
Enter fullscreen mode
Exit fullscreen mode
That is valuable.
It is still different from:
This exact cryptographic workload identity is calling service B under the current generation for an operation it is authorized to perform.
Enter fullscreen mode
Exit fullscreen mode
The second statement needs identity and authorization.
Labels are not cryptographic principals
Kubernetes labels are operational metadata controlled through the Kubernetes API.
They are excellent selectors for scheduling and policy.
For…