Skip to content

Feature Request: possibility to add NET_ADMIN to containers #870

@verysonglaa

Description

@verysonglaa

Is your feature request related to a problem? Please describe.
We need to force all outgoing communication through a sidecar proxy (envoy) to add certain features, headers and restrict outgoing communication on layer 7 (like domain names)

Describe the solution you'd like.
We would need a way for the init_container to run with NET_ADMIN capabilities to create the necessary iptable REDIRECT rules like:

iptables -t nat -A OUTPUT -p tcp --dport 443 -j REDIRECT --to-port 9443 -m owner --uid-owner 65534

(this is the way istio does it)
Describe alternatives you've considered.
If anyone has a different solution how to force all communication through the sidecar without changing the original container I am glad to hear it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions