docker-jitsi-meet icon indicating copy to clipboard operation
docker-jitsi-meet copied to clipboard

Creating users for internal authentication

Open niCSan opened this issue 3 years ago • 6 comments

I would like to have an option to create users per demand to be moderators on the sessions via composer or some args.

I run jitsi on ECS and the only way to create users is to use a personalized Dockerfile and ADD my USER.dat on the /config/data/meet%2ejitsi/accounts path.

The documentation indicate that the only way to create users is running inside the container the prosodyctl command, but should be a way to create users in the building process.

niCSan avatar Mar 03 '21 22:03 niCSan

Do you have a suggestion?

saghul avatar Mar 04 '21 06:03 saghul

Do you have a suggestion?

Thanks for your answer @saghul

Maybe some args bypassed to the .env file something like

PROSODY_USERn = "USER" and PROSODY_PASSWORDn = "HashedPasswd"

Where n indicates the number of the users created

niCSan avatar Mar 04 '21 13:03 niCSan

I don't think that can work because we need to know the exact env variables in order to pass them around.

saghul avatar Mar 04 '21 13:03 saghul

I don't think that can work because we need to know the exact env variables in order to pass them around.

Or maybe not many users but only one?

niCSan avatar Mar 04 '21 13:03 niCSan

This could be implemented by using a file which can be mounted into the container. It could be in this format:

username\tpassword\n

So each line would contain username and password separated by a TAB. This is easy to parse in bash and create the users on container startup if the file exists.

saghul avatar Mar 04 '21 15:03 saghul

That would be great!

niCSan avatar Mar 04 '21 17:03 niCSan