Closed Gredin67 closed 9 months ago
!testme
!testme
!testme
@Josue-T it's starting to work, but I don't know what to do with
e2e_enabled_by_default
, which is not a boolean in homeserver.yaml
, but
[client.experience.e2e_enabled_by_default]
ask = "End-to-End Encryption by default for locally-created Rooms"
type = "select"
choices = ["all", "invite", "off"]
bind = "encryption_enabled_by_default_for_room_type:/etc/matrix-__APP__/homeserver.yaml"
You use e2e_enabled_by_default
in many places that I don't necessarily understand. Can you sort this out?
correct parameter handling should be double-checked for (non-exhaustive)
allow_registration
turn_allow_guests
sso_enabled
password_enabled
@thardev can you check /scripts/config
to see if it fits latest config_panel standards?
And also check/add sed
stuff for allowed_local_3pids
and auto_join_rooms
!testme close #284 close #315 close #350
@Josue-T it's starting to work, but I don't know what to do with
e2e_enabled_by_default
, which is not a boolean inhomeserver.yaml
, but[client.experience.e2e_enabled_by_default] ask = "End-to-End Encryption by default for locally-created Rooms" type = "select" choices = ["all", "invite", "off"] bind = "encryption_enabled_by_default_for_room_type:/etc/matrix-__APP__/homeserver.yaml"
You use
e2e_enabled_by_default
in many places that I don't necessarily understand. Can you sort this out?
Well, I think this settings was probably dropped by #311 in the yaml config. I think the new settings that you added is ok we can drop the old one.
@thardev can you check
/scripts/config
to see if it fits latest config_panel standards? And also check/addsed
stuff forallowed_local_3pids
andauto_join_rooms
and we still require the contribution of @thardev on the lists
was probably dropped by #311 in the yaml config
it is still required here as a boolean "im.vector.riot.e2ee": {"default": __E2E_ENABLED_BY_DEFAULT__ }
Can we somehow drop this?
was probably dropped by #311 in the yaml config
it is still required here as a boolean
"im.vector.riot.e2ee": {"default": __E2E_ENABLED_BY_DEFAULT__ }
Can we somehow drop this?
Oh I forgot this part. Well, we probably need to do some test to understand how it works between theses settings. It's quite complicated when we have settings like the same on the client and on the service side, I don't really know the priority between the client and the server.
oops I merged just after you did, bad timing..
Main settings tab:
With registration disabled:
Bottom:
resources:
Advanced:
@Josue-T @thardev I won't be able to work further on this, to handle yaml lists in config panel and at upgrade, someone could get inspiration from:
!testme
@Josue-T @thardev I won't be able to work further on this, to handle yaml lists in config panel and at upgrade, someone could get inspiration from:
* https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh/blob/expose-config-panel/scripts/config#L16-L114 * https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh/blob/expose-config-panel/scripts/upgrade#L274-L293
Hello,
Really thanks for the PR, but I'm just too busy, I won't be able to work on this pull request personally.
Would be also really good if we add also this in the config panel as we can't enable at all currently.
@rosbeef while you're at contributing, would you mind adding setters/getters for all settings requiring a yaml list? Something like here, but should be simpler. Basically everywhere I ping @thardev in this PR.
I would, but I'm a bit stressed those days, fires are starting every days kms around my location. As soon as i get in peace I do.
Sorry @Gredin67 I could not help a lot here, I'm quite busy recently, hopefully I can help to review some stuff but those complex sed
setters/getters I'm afraid I won't be able to help :(
I would, but I'm a bit stressed those days, fires are starting every days kms around my location. As soon as i get in peace I do.
@rosbeef hope the fires were not too bad for you those days... Are you up to finishing this PR ?
!testme
Hi, sorry i had no time. Fire didn't come to my side thanks
What do you mean about if I'm up to finish? If i can Include all yaml config getter setter?
Winter is coming now, I have to prepare it then I will have a bit more time. Like at start of June.
I'm a bit alone in my collaboration, i' m not sure about how much time I have to spend on open source project to not disturbe more than help.
What do you mean about if I'm up to finish? If i can Include all yaml config getter setter?
yes there 4 or 5 settings requiring using setters/getters sed or yq or whatever. I'm not sure I will find time either, so I'm thinking of merging without those settings. So if nobody works on it within the next days I'll remove them.
Could we include Automatic double-puppeting for bridge users in the config panel?
I would add this in a separate PR, as it seems more complicated than just exposing a parameter in homeserver.yaml
Le 23 avril 2023 22:31:22 GMT+02:00, Thatoo @.***> a écrit :
Could we include Automatic double-puppeting for bridge users in the config panel?
-- Reply to this email directly or view it on GitHub: https://github.com/YunoHost-Apps/synapse_ynh/pull/356#issuecomment-1519149718 You are receiving this because you were mentioned.
Message ID: @.***> -- Sent from /e/ Mail.
What do you mean about if I'm up to finish? If i can Include all yaml config getter setter?
yes there 4 or 5 settings requiring using setters/getters sed or yq or whatever. I'm not sure I will find time either, so I'm thinking of merging without those settings. So if nobody works on it within the next days I'll remove them.
@rosbeef by any chance would you have time to have a look at thiese setters/getters ? If yes we could merge this full config panel rather than the limited #374
Sorry i did not follower the modification stream.
I can do something now, but on which file i can start.
I understand that setters|getters are required when multiple replace on one file is required, is thatright ? indicated on top of this pr
Seems good. Please report bugs
I could upgrade and open the config panel. :rocket: Did not test the sed you proposed yet. @Josue-T should we merge testing in this branch ?
I thought it better an I think that i implement on a bad way the tags fields. But i can modify that on Saturday, and make possible to do manage multiple values.
"J'ai galéré", Please test. I tested the sed individualy and the config panel inside yunohost. ~~the only problem i have is that synapse does not start even if the config is well generated. maybe because i have 2 synapse instance on the same server. sed is not replacing well the multiple spaces on start of the pattern line. it replace with only 1 space instead of the 4 i specified inside the regex.~~
Ok @Gredin67 , now it is ok to merge in testing. synapse start, config panel get and set values. the only things i did not test is the final usage ( if escaped values are well interpreted by synapse on the end user side.)
if you have a list of those variables and corresponding escaped values, we could ask on synapse's github or matrix room
after upgrade from a previous commit of this branch, I get :
An error prevents the configuration panel from being displayed:
Corrupted TOML read from /etc/yunohost/apps/synapse/config_panel.toml (reason: Reserved escape sequence used (line 49 column 1 char 1948))
Please report this error to the YunoHost team to get it fixed!
I got
\#example:example.com
auto_join_rooms:
^[^@]+@matrix.org$
should be ^[^@]+@matrix\.org$
^[^@]+@matrix\\.org$
in the panel fieldShould be :
auto_join_rooms:
- "#example:example.com"
allowed_local_3pids:
- if not solvable, a workaround would be to ask people to write
^[^@]+@matrix\\.org$
in the panel field
I tested the workaround and it writes properly in the config file. It should be explained in the help field of the panel if applicable.
Apart from the small bug, The msisdn/email handling is great ! Thanks for the awesome job!
I tested the workaround with email registration restricted to a domain name, it worked !
But at upgrade I had a strange behaviour : values regarding register only with given format
were reset to default in the config file although they showed as personalized in the config panel fields. Maybe a cashing issue in my browser..
I think it is values in old config are not escaped. So in update it require to rewrite value with escaped caracteres. I think sed will do the trick one more time.
I will try it as soon as I can sit in front of a big screen. Or maybe better apply escape characters in the getter.
hey i had some time, i hope we can finalize that :) but i have some comments.
i tested msisdn and email with \ in config panel and it works why to put \\ ? i corrected help with \ back
why to put a bind option in the config toml for auto_join_rooms as we use getter setters ?
in install and update script why auto_join_rooms parameter is set to #auto_join_rooms: $server_name by default ? this value is arbitrary at my eyes and correspond to nothing.
in install and update script too
Maybe set next values to null and do not allow open registration in install script
allowed_local_3pids_email=""
allowed_local_3pids_msisdn=""
yunohost basic users are using ldap integrated directory, and advances users know how to configure the registrations.
i tested msisdn and email with \ in config panel and it works why to put \ ? i corrected help with \ back
With my workaround, I tested that the config panel was generating the right syntax AND that registration was limited to a given email domain name. Did you test that registration was effectively working with this syntax? If yes I would agree with you solution.
But we have to think about people that edit the config file in CLI following the config template instructions/syntax. What happens if they write '^[^@]+@matrix\.org$'
I think then '^[^@]+@matrix\\.org$'
would be displayed in the config panel field.
This is working
I had a strange bug (after upgrade I think), screenshot is taken after applying the config on the right, it is not applied in the config file
Maybe settings should be re-applied after upgrade, see what I had to do here :
https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh/blob/master/scripts/upgrade#L269-L294
__FOOBAR__
element
TODO :
scripts/conf
, see https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh/pull/74allowed_local_3pids
andauto_join_rooms