aws / containers-roadmap

This is the public roadmap for AWS container services (ECS, ECR, Fargate, and EKS).
https://aws.amazon.com/about-aws/whats-new/containers/
Other
5.22k stars 321 forks source link

[EKS] [request]: FQDN Network Policies #2222

Closed dkimdon closed 9 months ago

dkimdon commented 11 months ago

Community Note

Tell us about your request

I would like support for FQDN Network Policies in EKS. Details on the feature are here: https://cloud.google.com/kubernetes-engine/docs/how-to/fqdn-network-policies

Which service(s) is this request for? EKS

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?

I want to be able to control what hosts on the Internet pods in Kubernetes are allowed to access. I want the configuration to use FQDN's and/or wildcards then do a DNS lookup and filter based on teh resulting IP.

Our options today for egress control are:

There are other options that involve various service meshes or changes to the CNI but I don't want to manage the CNI.

Are you currently working around this issue?

We use AWS Network Firewall.

claytonolley commented 11 months ago

I believe your only option for such outbound control is via an http forward proxy server like squid etc. Network devices such as firewalls generally only work with IP addresses although some devices historically have included http proxy features as addon features.

claytonolley commented 11 months ago

I found this solution that uses squid in ECS, might be what you need? https://aws.amazon.com/blogs/networking-and-content-delivery/providing-controlled-internet-access-through-centralised-proxy-servers-using-aws-fargate-and-privatelink/

dkimdon commented 11 months ago

Thanks for the pointer, I hadn't seen that. That squid config does look similar in function to what I'm looking for. However, it is more complex than network policies. I also don't want to be limited to http since we have at least RabbitMQ hosts that we need to provide controlled access to via the same mechanism.

There is a bit more discussion on FQDN Network Policies here: https://groups.google.com/g/kubernetes-sig-network/c/pPxnx6B_ygI

and here : https://docs.google.com/document/d/1wOO6fgY0PRToJ85yC5WFDywAhwkK0m-ynLrHW-EmuGM/edit

sjastis commented 11 months ago

This is a duplicate of #2180

sjastis commented 9 months ago

Lets track this as part of #2180