Replies: 14 comments 1 reply
-
Hi, Indeed, this plugin includes the Prosody XMPP server, and spawns it as a child process. By default, the Prosody server only listen on one port, and only on localhost interface. There are settings to open other ports, to allow XMPP clients or servers to connect, but this is totally optional. By default, all communications are proxyfied through Peertube (using Websocket or HTTP polling). First versions of the plugin required admins to install Prosody manually. But many admins complained, finding it "too difficult" (...). Or there were some instance admins who were not root on the server, so they can't install the plugin. If you don't trust the Prosody packaged in the plugin, you can install Prosody on your server (using debian packages, prosody source files, ... as you want). Then go to the plugin settings, and enable "use system prosody". If you do so, Peertube will still spawn prosody as child process, you don't have to enable the Prosody service on your system. This is mainly for following reasons:
If this is still a problem for you, can you explicit your concerns? |
Beta Was this translation helpful? Give feedback.
-
Then they shouldn't be running internet facing web applications if they can't administrate a server. In docker setups: add another container to the compose/pod configuration. OS wide it'd be setting up a daemon -- all pretty simple.
Quite frankly, yes, I don't trust it. This is the reason package repositories exist and are cryptographically signed.
I don't want it to spawn any process. I have my PeerTube instance jailed using SELinux and don't want it to log thousands of security policy events. -- If that is the case, that'd meet my requirements. |
Beta Was this translation helpful? Give feedback.
-
Trying to satisfy everyone is not easy... NB: in any case, Peertube needs to write the prosody configuration files. So, without root access, it can't be in /etc/prosody, so in any case i can't use the system daemon. And in docker installation, it would require some configuration to share files between containers.
Can you just authorize
Not sure to fully understand this comment. Just to be clear: if you enable this settings, instead of running the build in binary, it will use |
Beta Was this translation helpful? Give feedback.
-
Why does it need to do that? I can modify those configuration files myself just fine.
I rather not. Why does it need these binaries?
I was under the assumption it'd connect on a protocol level only, not spawn binaries. |
Beta Was this translation helpful? Give feedback.
-
And instead of hardcoding That'd allow Prosody to run in another container and communicate via internal docker networking afaict. |
Beta Was this translation helpful? Give feedback.
-
Some options need to be set depending on the plugin configuration on Peertube (there are API keys, filepaths, some component that can be enabled/disabled, ...).
Sorry, but what you are asking is to difficult to maintain and document. I don't have the budget and the time to do so. Unless you can sponsor such features (and on the long term, because it will require additional work on each new feature). |
Beta Was this translation helpful? Give feedback.
-
An sysadmin is perfectly able to modify
I can restart and reload Prosody myself when required.
Will submit a PR. |
Beta Was this translation helpful? Give feedback.
-
There are some settings that have to be modified dynamically from the Peertube settings.
As i said, such feature would require a lot of additional work for me on the long term. This plugins needs to interact with the Prosody server in several ways (files on the filesystem, options in the configuration, tcp connections, ...). Maintaining and testing such features on such setup will require a lot of development time, documentation time and testing time. |
Beta Was this translation helpful? Give feedback.
-
Those features could be hidden and/or disabled when using remote Prosody is preferred.
All features I can do without, the tcp connection handling is a proxy which once configurable suffices. I fail to see how this would be a maintenance burden. I'll maintain a fork then. |
Beta Was this translation helpful? Give feedback.
-
Yes, but that means extra work each time i add a new option: should it be hidden?, test that it works in your use case, ...
Yes, be my guest. Please just respect the AGPL-v3 license, and publish your code. |
Beta Was this translation helpful? Give feedback.
-
You can add a notice that there's no support offered for remote Prosody configurations. If it breaks I fix it.
Ofcourse! I'll maintain a fork on my profile here on GitHub. |
Beta Was this translation helpful? Give feedback.
-
Tips: if you have the plugin installed somewhere, you can see how looks the prosody.cfg file generated by the plugin, using the diagnostic tool. |
Beta Was this translation helpful? Give feedback.
-
This file is generated by the It contains several methods, to enable/configure some features (for example |
Beta Was this translation helpful? Give feedback.
-
And please note that this file will be subject to change in a very near future. I'm working on many new features that will require new configuration entries. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
From reading the documentation and very briefly some of the source code, it seems this plugin spawns its own server for chatting?
As a sysadmin I rather stay in control of which apps run where and how.
Describe the solution you'd like
This plugin to support bring your own chatserver configurations.
Beta Was this translation helpful? Give feedback.
All reactions