[CLD-7443] Allow rtcd service to be exposed on a privileged port#457
[CLD-7443] Allow rtcd service to be exposed on a privileged port#457streamer45 wants to merge 3 commits intomasterfrom
rtcd service to be exposed on a privileged port#457Conversation
| {{- end }} | ||
| dnsPolicy: ClusterFirstWithHostNet | ||
| hostNetwork: true | ||
| hostNetwork: false |
There was a problem hiding this comment.
If we decide to do this, I would make this a variable that can be controlled from the values file since there are still cases where it would be valuable to use host networking since it simplifies the generation of local candidates.
|
@streamer45 Is this still something we consider to merge? |
@stafot Ideally yes. We still have some clients failing to join calls on Community/Hub occasionally, likely because 8443 is blocked on their side. This could help. |
|
@streamer45 If we want to maerge let's do variable hostNetwork and have true as default value. |
|
@stafot Sounds good. I'd also like to try this in our test environment before merging since I haven't yet validated this in a real deployment. |
|
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
Summary
PR proposes a possible solution to the issue we are facing when trying to have
rtcdlisten on a privileged port (lower than 1024).So far we've tested a couple of workarounds (full context at https://hub.mattermost.com/private-core/pl/5ubornsmpfnkuyxnmyixgfpich):
NET_BIND_SERVICEcapability in the container security context.net.ipv4.ip_unprivileged_port_startsysctl in the pod security context.Unfortunately, none of the above is working, possibly because the image was meant to be run using an unprivileged user at all times.
So I was thinking we could avoid the problem altogether by using the k8s service as designed and let it forward the traffic from privileged (node level) to unprivileged (container level). The only caveat is that to do so we'll need to disable host networking.
This is the bit I will need some guidance on because I don't have a full understanding of other potential side effects of doing so (e.g. DNS policy?).
Ticket Link
https://mattermost.atlassian.net/browse/CLD-7443