Conversation
c6db30a to
1716f5e
Compare
|
If |
|
Cosmetical cosmetics, I'd guess dashed list syntax works slightly better for most admins: auth_stored_password_types:
- scram_sha1
- scram_sha256
- scram_sha512 |
Default valuesIn my opinion, it makes sense to set sane default values in the code, so ejabberd.yml.example can be simple, and only used to set specific options. Newly enabled optionsRegarding The next ejabberd release is planned to be 26.03, and will include mostly bug fixes and security fixes. In principle, it would be preferable to only modify the example configuration file if it's fixing some problem; and delay improvements for the next major release. In this particular case, if adding those specific options does not require any warning in the release notes, and it doesn't break upgrade, nor affect if an administrator forgets to read the upgrade notes, then they could be included in this fix-release. Commented optionsThis commit from 2018 explains the current attempt (I think this is not mentioned anywhere else): 77163c4 If there is a need to explain something in the configuration file, then it probably means the documentation could be improved to cover that topic. Either the option explanation, or the option example, or the feature paragraph, or a new tutorial or page covering that user-case. Right now only those options have comments:
|
|
As I mentioned in the ejabberd channel, personally I believe it's better to avoid adding documentation (beyond short hints) to the example config file. We had an endless example configuration in the past and decided to strip that down in 2018 due to our experiences. I get that some admins might have a workflow of reading through all available settings and like having their documentation inline. But I think the downsides clearly outweigh the benefits:
Edit: Oh sorry, hadn't seen @badlop's comment. |
|
While I agree with the general sentiment here, I've added things like But then, maybe The comment I left on How about we do it like this? We modify |
Should I uncomment it for now (see my other comment)? |
1716f5e to
c6d4585
Compare
Aren't those unrelated questions?
I see pros and cons for 1, but would personally opt against 2 either way. As important as we might view the implications of storing different hash algos in the DB, this is not a topic I'd actively try to bother newcomers with by throwing text at them. If you have zero idea what the hell this is about, chances are the explanation will leave you just as unsure whether and what to do about this option as without that text. |
|
True, with this comment I didn't have newcomers in mind but rather backlash from some security concerned people who keep a close look at what we're doing. We can answer those questions in person if required, doesn't need to clutter the config for everyone. |
f3d92b4 to
a5f3b58
Compare
|
TODO: apply changes as applicable to |
This allows "user invites", i.e. XEP-0379, not account creation
c5f26d1 to
e9b75b4
Compare
Collection of small changes to the default config