DEV Community

Discussion on: Docker: Restricting in- and outbound network traffic

 
andre profile image
André König • Edited

Well, I did not violate PoLP because of the fact that the subject to isolate is the actual application, but this is the aspect you don't want to see. Anyways ...

Thread Thread
 
bbenzikry profile image
Beni Ben zikry

Hi André, I came across the post while looking for something completely unrelated but just had to reply and say I'm really sorry you had to endure this entire thread.

As you mentioned ( and as this post is indeed old ) there are more expressive ways to deal with those issues today on the orchestration layer, and with many k8s options for local testing ( Kind, microk8s, minikube etc. ), one can easily configure and test privileges, assign granular security contexts, define network policies and control and monitor ingress/egress traffic.

In a real life scenario I would take this a step further and try to sniff outgoing requests with something like ksniff to look at what goes out to the C&C / output.

Thread Thread
 
andre profile image
André König

Hi Beni, that is good to hear. Thanks a lot for your kind words :)