-
Notifications
You must be signed in to change notification settings - Fork 0
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
Should we get rid of the admin.prose.org.local
VirtualHost
?
#18
Comments
I added support for |
|
Medium-term, we could also switch to the new implementation of |
Short answer: yes (we should). Reading explanations from Zash, I believe we should. I'll be honest, I've initially been used |
We should "use Footnotes
|
I was referring to the former indeed 😄 |
@valeriansaliou Following some discussions with the Prosody team yesterday evening, I had a look at
mod_groups_internal
, which they recommended me overmod_groups
. Here is a screenshot where they explain whymod_groups
won’t suit our needs and the other one is better:mod_groups_internal
doesn’t use a config file, but rather needs to be invoked from a plugin. We havemod_admin_rest
for that, I just need to add a few routes. However, while looking at the code I noticed the exposed functions don’t take bare JIDs as arguments but just local parts (usernames). They use the current host to construct a JID.mod_admin_rest
was exposed via theadmin.prose.org.local
VirtualHost
… which means we won’t be able to usemod_groups_internal
as we’d expect.mod_admin_rest
uses basic auth + prosody roles to authenticate insecure HTTP requests, and the “main”VirtualHost
already exposes onehttp_port
formod_rest
(sending stanzas via HTTP REST). Would it be okay if I migratemod_admin_rest
to the “main”VirtualHost
(getting rid ofadmin.prose.org.local
altogether) or should I modifymod_groups_internal
to support bare JIDs? The latter seems very tricky, while the former doesn’t seem like a security breach since calls are authenticated… WDYT?The text was updated successfully, but these errors were encountered: