-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jitsi should have option to lock conferences only to room participants #1668
Comments
Thought about this briefly and I think the simplest way would be if jitsi had a mode where you needed to be authed to create rooms but anyone could join existing rooms (or possibly set room passwords and share them in the jitsi state event). This would also need us to provide the creds in the increasingly many places we allow the custom jitsi domain to be specified from. |
how would this work with custom Jitsi's anyhow without them modifying them to also have this mode |
Yeah, it would need this adding to jitsi if this isn't something it can do already. |
I think the Jitsi instance could be configured with secure domain, such that only registered users can create conferences. These users can be authenticated via JWT tokens that can be passed to the Jitsi instance via the API (https://github.com/jitsi/jitsi-meet/blob/master/doc/api.md). You would have to configure the token though (maybe in the config.json?). Would that solve the issue? |
Is there a way only matrix users cat use jitsi? and only through matrix? As @awesome-michael said there is a authentication method via JWT in jitsi api. but can't find any way to config riot-web for using this method. |
Jitsi already supports authentication such that only registered users can use it. Currently it supports internal, LDAP and JWT authentication. The point of this issue is to pass authentication from Riot to Jitsi; at the moment the Matrix user accounts and the Jitsi user accounts are separate things. |
For what I see we need to implement JWT token authentication [1].
Question: does Riot have persistent access to user's Matrix password? If so, login/password authentication could be done against JWT generator service [1] https://github.com/jitsi/jitsi-meet/blob/master/doc/api.md |
Nope, it exchanges it for a Matrix Access Token during login and never stores it. |
No, and highly unlikely to do so. |
I think that this suggestion can be merged with what is exposed in PR element-hq/element-web#13986 . |
After the simple approach of adding jwt in an input form is closed, I end up with a different approach... let me tell... So I end up creating an authenticating module that tries to authenticate with a jwt token as jitsi suggests and if it fails it will fallback to matrix authenticating via client-api. It is done in the module Element
With these properties
If all is ok then the user in matrix will be allowed to create the jitsi room Others joined with the same method will also be jitsi room admins. The critical thing is adding the accesstoken to be able to check things in matrix as the interested user... It's not stored but I don't know if it's safe enough. Patches of matrix-react-sdk and riot-web are in https://gitlab.com/communia/matrix_prosody_modules/-/tree/master/element%20patches . If you think is ok, I can provide it as PR. |
Element Web since 1.7.6 now has support for a custom auth module for Prosody that uses an OpenID token given by a Matrix server to verify a user and a separate verification service to verify room memberships (currently Synapse only). This is not really a full solution to this issue but posting here for interested parties, please see https://github.com/matrix-org/prosody-mod-auth-matrix-user-verification for the flow. |
Filing here because we don't have anywhere better - but a recurring theme since publishing https://matrix.org/blog/2020/04/06/running-your-own-secure-communication-service-with-matrix-and-jitsi has been (quite reasonably): "hang on, doesn't this mean anyone on the internet can use your jitsi and consume your bandwidth"?
Suggestions welcome for how we can configure things to lock down so that only people in an associated Matrix room can join and start confs.
The text was updated successfully, but these errors were encountered: