Docker-jitsi-meet: running JVB as root

Created on 16 May 2019  路  18Comments  路  Source: jitsi/docker-jitsi-meet

Hi,

i'd like to run JVB on port 80 (<= 1024), for that i need to JVB to run as root.
Any ideas on where to start?

also, will let's encrypt work if HTTP_PORT is set to a port different than 80?

10x!

Most helpful comment

@roeycohen There are a lot of articles about it in the web. Here is the first one I've found.

https://medium.com/@mccode/processes-in-containers-should-not-run-as-root-2feae3f0df3b

Yeah I think all containers are running as root right now but in my environment I can not start containers with root because this is restricted. To get them running I forked the repository and fixed the permissions so that the containers are working without root.
It's still on my list to cleanup my changes and create an PR to follow the recommended security standard in the official images.

All 18 comments

You should NEVER run containers as root for security reasons.

I think enabling some of the capabilities (CAP_NET_ADMIN maybe?) you can bind low ports as a user.

As for LetsEncrypt, no, it only works on port 80/443.

10q guys for replying! :)

@sapkra - why not? it's the only service in it's container, and other services in the jitsi stack are running as root (e.g. nginx).

@saghul - i'll take a look on it. do you have experience with using port 80 instead 10,000? do you think it will work?

@roeycohen There are a lot of articles about it in the web. Here is the first one I've found.

https://medium.com/@mccode/processes-in-containers-should-not-run-as-root-2feae3f0df3b

Yeah I think all containers are running as root right now but in my environment I can not start containers with root because this is restricted. To get them running I forked the repository and fixed the permissions so that the containers are working without root.
It's still on my list to cleanup my changes and create an PR to follow the recommended security standard in the official images.

@sapkra 10x!

running jbv on lower ports seems to fail...

JVB 2019-05-19 08:51:03.384 WARNING: [2163] org.jitsi.videobridge.EndpointMessageTransport.log() SCTP connection with drdsdocx not ready yet.
JVB 2019-05-19 08:51:03.385 WARNING: [2163] org.jitsi.videobridge.EndpointMessageTransport.log() No available transport channel, can't send a messag

guess it wasn't meant to be 馃槳

It's still on my list to cleanup my changes and create an PR to follow the recommended security standard in the official images.

鉂わ笍

running jbv on lower ports seems to fail...

Have you modified the container to run privileged or passed in the cap I mentioned?

Have you modified the container to run privileged or passed in the cap I mentioned?

no, just ran the jvb as root(i guess it should be enough for testing...)
exec s6-setuidgid jvb -> exec s6-setuidgid root

made some more tests, indeed, if port <= 1023 - no data is sent to jitsi.

I鈥檓 not sure that鈥檚 enough.

@saghul are you referring to CAP_NET_ADMIN? because the JVB process isn't running as a service but by calling /init command (at least for this dockers project)

yes, that's the one. Hum, good point, /init calls it... I wonder how to solve this. The webserver does bind to 80 and 443 so I guess it should just work 馃し鈥嶁檪

i believe it does, because i get different error messages...

Can you paste a full error log? Those lines above in this thread don't seem related, I think.

Hi Saghul,
attaching you two logs, one with 10,000 port which is working and the other is 80 which isn't.
80_notworking.log
10000_working.log

appreciate your time :)

I don't see any failures in the log. Is port 80 UDP open in the firewall?

don't think there's a firewall involved...
the dockers runs on VirtualBox installed on my machine, and also i also added an outbound rule in windows firewall to allow UDP 80 just in case.
maybe you can learn something from the chrome log?
jitsi.blossom.office-1558531392019.log

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ErrorInPersona picture ErrorInPersona  路  3Comments

mrWodoo picture mrWodoo  路  5Comments

mikemorris picture mikemorris  路  8Comments

phlegx picture phlegx  路  10Comments

menzbua picture menzbua  路  12Comments