-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support XEP-0421: Anonymous unique occupant identifiers for MUCs #3397
Comments
Hi, i want to bump this issue. This XEP solves a lot of problems which exist with anonymous MUCs.
Please consider adding this. For Reference other Server Implementations like for example prosody already support this. |
I've implemented this feature in a new module. You can compile ejabberd from git, or download the installers or the container, then add to ejabberd.yml modules:
mod_muc_occupantid: {}
... It would be great if you can try this in real world and report any problem before the next release. |
Great to hear Some pointers about the implementation that clients may expect which are not directly stated in the XEP
i try and test this, thanks |
I looked at your implementation of the secret and
get_cookie() sounds like not a good idea. the occupant-id in best case should never change. With probably the exception, if the server operator loses his whole database, its probably ok to regenerate the occupant-ids, but then its on him for not having proper backups. Ideas i heard were:
|
I've implemented your suggestions. As they are still experimental, I've committed in a branch in my fork, see master...badlop:ejabberd:3397c If the tests succeed, there will be installers in https://github.com/badlop/ejabberd/actions/runs/5764017825 and container in https://github.com/badlop/ejabberd/pkgs/container/ejabberd |
i did now do a basic test Attaching occupant-id to MAM, subject, messages independent of muc config, seems to work I did not do indepth tests if the ID generation is now stable, i have to trust your impl here. What i found is that for moderated messages the occupant id should also be added <message xmlns="jabber:client" to="lovetox@temptatio.dev/gajim.B937Y3JD" from="ipijoq@conference.temptatio.dev" type="groupchat">
<apply-to id="1691239200105665" xmlns="urn:xmpp:fasten:0">
<moderated by="ipijoq@conference.temptatio.dev/lovetox" xmlns="urn:xmpp:message-moderate:0">
<reason>Spam</reason>
<retract xmlns="urn:xmpp:message-retract:0" />
</moderated>
</apply-to>
</message> See https://xmpp.org/extensions/xep-0425.html#tombstones It should be added to the tombstone, but also to the live message Are there any other messages that are issue by MUCs? nothing comes to mind currently. |
Ok, I added that for live messages. ejabberd does not support tombstones. BTW, there was a bug in message moderation, fixed now. |
… subject (#3397) When changing the room subject, store the original author JID, so later it can be provided in the hook and mod_room_occupantid can use it to calculate and provide the occupant id This is noticeable when a new occupant joins an existing room, and receives the room subject.
I've merged all those fixes. It would be great if you can give it another test |
ejabberd doesn't seem to support XEP-0421: Anonymous unique occupant identifiers for MUCs. It would be nice to have support for it.
The text was updated successfully, but these errors were encountered: