Difficulty: Intermediate
Estimated Time: 5 minutes

CloudSecOps

We'll learn how to use OPA Gatekeeper to prevent any kind of ingress/egress IP CIDR Ranges.

In this scenario, we have seen how to prevent any kind of ingress/egress access rules and the reason behind using the policies for our organization.

For more info on this scenario - Restrict Ingress IP CIDR Ranges in NetworkPolicies.

For more OPA Gatekeeper use-cases - Mastering OPA Policies

Restrict Ingress/Egress IP CIDR Ranges in NetworkPolicies

Step 1 of 4

Reason

This allows us to implement finer controls for the cluster by following the principle of least privilege and making sure that access is given to a particular resource only if it is needed.