Thursday, March 20, 2025
dev@conference.yunohost.org
March
Mon Tue Wed Thu Fri Sat Sun
          1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 18
19
20
21
22
23
24
25
26
27
28
29
30
31
           

[11:03:22] <Salamandar> https://aria.im/_bifrost/v1/media/download/ARfx6q5ygKKcL-1P6umYjhh7G8h_8GoNCIgkY48jXq5A7PkGYjqBk3-WD3sEIsTzd-L4gyj7JPuuNtJPva7SG4pCeVuF84CAAG1hdHJpeC5vcmcvTG1sWkNrSE11WkRXUUpzc1V0Q0FmcVJJ
[11:03:44] <Salamandar> News from Sury. We can now use his PHP repository for Trixie.
[12:08:34] <orhtej2> Nice!
[13:03:35] <Aleks (he/him/il/lui)> soooo i'm working on packaging v3 and ending up with many situation where, for example, i want to handle nginx/php/systemd/etc.. confs from the python code, but we already have ynh_config_add in bash, and we probably want to keep the possibility from calling ynh_config_add somehow for edge cases, but then we need python code and bash code doing the same stuff

so instead i'm studying the possibility of having bash helpers that would internally call some python script that would parse the `--foo=bar` args (such that ideally someday we get rid of getopts maybe), such that we can have unified code between the declarative stuff and the bash helpers
[13:04:54] <Aleks (he/him/il/lui)> also possibly that would allow to transform the `ynh_read_var_from_file` / `write_var_from_file` into python instead of uuuuuh bash regex mess 😬
[14:22:56] <kayou> why did we removed [this part](https://github.com/YunoHost/yunohost/blob/c6b9cead67f7a868ef6c145954b5fb9c6350d802/src/firewall.py#L329-L331) in the 12.1.

I used it for custom rules for example
[14:25:01] <Aleks (he/him/il/lui)> ughr it's also used by vpnclient and hotspot
[14:25:09] <Aleks (he/him/il/lui)> buuuuut i think it's handled in the regenconf or something ?
[14:25:58] <Aleks (he/him/il/lui)> 🤔
[14:26:52] <Aleks (he/him/il/lui)> eeeeh
[14:27:32] <Aleks (he/him/il/lui)> (nope it disappeared 😬)
[14:27:40] <Aleks (he/him/il/lui)> smol poke Salamandar
[15:03:39] <kayou> (we could also depreciate this hook and rename it `post_firewall_rules` or `post_nftable_rules`)
[15:07:50] <Aleks (he/him/il/lui)> meh yeah but then we have to convert for example this https://github.com/YunoHost-Apps/vpnclient_ynh/blob/master/conf/hook_post-iptable-rules to nftables x_x
[15:08:17] <Aleks (he/him/il/lui)> but hmyeah i think i remember Salamandar talking about having a folder where app or stuff would dump extensions to the default conf or something
[15:25:30] <Salamandar> > <@kayou:matrix.org> why did we removed [this part](https://github.com/YunoHost/yunohost/blob/c6b9cead67f7a868ef6c145954b5fb9c6350d802/src/firewall.py#L329-L331) in the 12.1.
>
> I used it for custom rules for example

It is still called but via systemd
[15:26:05] <Salamandar> Well i did a weird trick but it is supposed to work (i think i tested)