Skip to content

Security and Network Policy

Ingress Authentication

If user wants to utilize basic auth or oauth at ingress, it can be done as described in official documentation or in our documentation.

This approach has one big security flaw. Authentication is required when connecting via ingress only, e.g., from outside of Kubernetes cluster. However, user of the platform can also connect from inside cluster directly to the corresponding service (they need to guess it IP though) and in such a case, there is no authentication required.

This flaw can be mitigated using Network Policy that can limit origin of network traffic. In this case, it is useful to allow ingress traffic to server from kube-system namespace only. The kube-system namespace hosts Ingress Nginx instance, therefore, connection from this and only this namespace is required.

Example of network policy can be downloaded here. This policy allows ingress traffic from kube-system to Pod named myapp. This policy is applied to the namespace where the Pod myapp is.


Last update: August 5, 2022