Tuesday, March 26, 2024
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
             

[00:07:25] <Yunohost Git/Infra notifications> [yunohost] orhtej2 opened [pull request #1809](https://github.com/YunoHost/yunohost/pull/1809): Return auth cookie valid for whole main domain.
[00:07:41] <Yunohost Git/Infra notifications> [yunohost] orhtej2 edited [pull request #1809](https://github.com/YunoHost/yunohost/pull/1809): [bookworm] Return auth cookie valid for whole main domain.
[00:09:33] <Yunohost Git/Infra notifications> [SSOwat] orhtej2 opened [pull request #228](https://github.com/YunoHost/SSOwat/pull/228): Explicitly set logging level to DEBUG
[00:09:45] <Yunohost Git/Infra notifications> [issues] Psycojoker edited [issue #2366](https://github.com/YunoHost/issues/issues/2366): make all applications manifest.toml translatable in weblate
[00:13:27] <Yunohost Git/Infra notifications> [issues] OniriCorpe [commented](https://github.com/YunoHost/issues/issues/2366#issuecomment-2016213790) on [issue #2366](https://github.com/YunoHost/issues/issues/2366) make all applications manifest.toml translatable in weblate: > to create a new component per application ouch 😬
[00:13:29] <Yunohost Git/Infra notifications> [issues] OniriCorpe [commented](https://github.com/YunoHost/issues/issues/2366#issuecomment-2016214582) on [issue #2366](https://github.com/YunoHost/issues/issues/2366) make all applications manifest.toml translatable in weblate: > > to create a new component per application > > ouch 😬 We used to have just one gigantic component and it was a tota...
[00:15:37] <Yunohost Git/Infra notifications> [issues] Psycojoker edited [issue #2366](https://github.com/YunoHost/issues/issues/2366): make all applications manifest.toml translatable in weblate
[00:17:35] <Yunohost Git/Infra notifications> [issues] Psycojoker edited [issue #2366](https://github.com/YunoHost/issues/issues/2366): make all applications manifest.toml translatable in weblate
[00:20:45] <Yunohost Git/Infra notifications> [issues] OniriCorpe edited [issue #2366](https://github.com/YunoHost/issues/issues/2366): make all applications manifest.toml translatable in weblate
[17:35:30] <Yunohost Git/Infra notifications> [SSOwat] alexAubin pushed 2 commits to bookworm ([a44988a120a0...8ff76e1441d7](https://github.com/YunoHost/SSOwat/compare/a44988a120a0...8ff76e1441d7))
[17:35:30] <Yunohost Git/Infra notifications> [SSOwat] alexAubin merged [pull request #228](https://github.com/YunoHost/SSOwat/pull/228): Explicitly set logging level to DEBUG
[17:35:35] <Yunohost Git/Infra notifications> [SSOwat/bookworm] Explicitly set logging level to DEBUG - Mateusz
[17:37:33] <Aleks (he/him/il/lui)> (if you feel like iterating over this, I guess ultimately the point is to have debug level to INFO by default and then enabling debug logging by adding something like `debug: true` in the conf)
[17:45:30] <Yunohost Git/Infra notifications> 🏗️ Starting build for ssowat/12.0.0+202403261745 for bookworm/unstable/all ...
[17:46:20] <Yunohost Git/Infra notifications> ✔️ Completed build for ssowat/12.0.0+202403261745 for bookworm/unstable/all.
[18:18:52] <kayou> > <@Alekswag:matrix.org> (if you feel like iterating over this, I guess ultimately the point is to have debug level to INFO by default and then enabling debug logging by adding something like `debug: true` in the conf)

I think I know how to do it
[20:12:47] <Salamandar> > 22748 INFO Deprovisioning database...
> 22801 WARNING /usr/share/yunohost/helpers.d/mysql: line 236: mysqlshow: command not found
[20:12:57] <Salamandar> That's on bookworm
[20:13:17] <Salamandar> oh crap my app is missing mariadb-server
[20:13:20] <Salamandar> don't mind me
[20:36:58] <Émy - OniriCorpe> 👌
[20:57:54] <Bram> > <@Alekswag:matrix.org> (if you feel like iterating over this, I guess ultimately the point is to have debug level to INFO by default and then enabling debug logging by adding something like `debug: true` in the conf)

is SSO in python now?
[20:57:59] <Bram> like, finally?
[20:58:11] <Bram> I don't have to cry anymore because of lua?
[20:59:05] <Émy - OniriCorpe> nope, still lua
[20:59:45] <Bram> 😭
[21:00:32] <Aleks (he/him/il/lui)> 😬
[21:02:17] <Aleks (he/him/il/lui)> it's still lua but it's pretty clear now how we could rewrite it in python
[21:02:22] <Aleks (he/him/il/lui)> http://nginx.org/en/docs/http/ngx_http_auth_request_module.html
[21:02:22] <Bram> > <@oniricorpe:im.emelyne.eu> not in rust?????? what a drama!!! /j

I didn't wrote yunorunner in Go while I wanted to because I knew python would be better for the community ^^'
[21:02:22] <Émy - OniriCorpe> > <@Alekswag:matrix.org> it's still lua but it's pretty clear now how we could rewrite it in python

not in rust?????? what a drama!!! /j
[21:03:01] <Aleks (he/him/il/lui)> so it's still on the table somehow, but mostly i'm being paranoid about "if we do this it means the entire SSO gets broken if the auth daemon is down", though on the other hand, it's somewhat already the case in the new portal anyway because you need the yunohost-portal-api to be up to login anyway ...
[21:03:21] <Bram> ah
[21:03:36] <Bram> there is mod_python like there is mod_lua so we can kinda have the same (awful) architecture
[21:03:42] <Bram> but yeah I totally understand that fear :(
[21:03:50] <Aleks (he/him/il/lui)> like for some reason i try to avoid having yet-another-daemon anytime i can but meh
[21:03:59] <Aleks (he/him/il/lui)> ah ?
[21:04:12] <Salamandar> > <@oniricorpe:im.emelyne.eu> not in rust?????? what a drama!!! /j

tbh python vs lua perf… i'm not sure
[21:04:19] <Aleks (he/him/il/lui)> ah but it probably involves recompiling nginx manually to add it
[21:04:34] <Bram> I need to find it again wait
[21:04:52] <Aleks (he/him/il/lui)> https://github.com/lyokha/nginx-haskell-module 😬
[21:04:56] <Bram> haha
[21:05:05] <Émy - OniriCorpe> > <@Salamandar:matrix.org> tbh python vs lua perf… i'm not sure

it's not about perf but maintainability x)
[21:05:08] <Bram> haskell has a "stop the world" GC which isn't always great for this kind of app
[21:05:12] <Salamandar> it is too
[21:05:14] <Émy - OniriCorpe> who loves lua here? x)
[21:05:35] <Bram> > <@Salamandar:matrix.org> it is too

I'll trade python maintainability for lua anytime
[21:05:49] <Bram> and the bottleneck right now is stoopid awful ldap
[21:05:50] <Salamandar> yeah yeah
[21:05:58] <Salamandar> haha
[21:05:58] <Salamandar> okay
[21:06:10] <Salamandar> there's a ~4 perf ratio on some benchmarks
[21:06:12] <Aleks (he/him/il/lui)> "Lua" like "say again .. you want to what ??? you want to *check if a value is in a list ???*"
[21:06:16] <Bram> https://github.com/arut/nginx-python-module I think it's that thing but I'm not 100% sure
[21:06:34] <Bram> > <@Salamandar:matrix.org> there's a ~4 perf ratio on some benchmarks

benchmarks doesn't show reality for application
[21:06:36] <Salamandar> oh waw
[21:06:46] <Salamandar> python is actually ~twice faster on some benchmarks
[21:06:49] <Bram> it doesn't make much sens to compare those kind of things here
[21:06:51] <Aleks (he/him/il/lui)> "you want to **check if a string starts with a value ????**"
[21:06:51] <Émy - OniriCorpe> lua is only good for pico-8
[21:07:02] <Salamandar> haha
[21:07:09] <Bram> here on nginx it's probably the IO that are the bottleneck, lua vs python perf is meaningless
[21:07:12] <Salamandar> lua is nice to program state machines though
[21:07:19] <Salamandar> but not like… real programming
[21:08:45] <Bram> real programmers wear stripped socks
[21:08:45] <orhtej2> `import butterflies`
[21:08:45] <orhtej2> > <@Alekswag:matrix.org> real programmers use butterfly wings to create small disturbance in the atmosphere to focus cosmic rays on chip using optical lensing

classic
[21:08:45] <Aleks (he/him/il/lui)> real programmers use butterfly wings to create small disturbance in the atmosphere to focus cosmic rays on chip using optical lensing
[21:10:00] <Émy - OniriCorpe> > <@oniricorpe:im.emelyne.eu> lua is only good for pico-8

sweet memories of pixel art with peek/poke on pico-8 lol
[21:10:22] <orhtej2> > `import butterflies`

huh I misquoted, I'm not a real programmer https://xkcd.com/378/
[21:12:18] <Bram> > <@Alekswag:matrix.org> ah but it probably involves recompiling nginx manually to add it

looks like it yeah 😩
[21:12:47] <Bram> I can't find a debian package
[21:13:08] <Bram> I'm pretty sure it only works with python2 also ^^'
[21:15:27] <Salamandar> > <@Bram_:matrix.org> looks like it yeah 😩

no actually
[21:15:28] <Salamandar> debian package for nginx provides it
[21:15:30] <Salamandar> on bookworm at least
[21:15:34] <Salamandar> run `nginx -V`
[21:15:36] <Salamandar> grep for "auth"
[21:15:41] <Bram> really? this dumbass doesn't show it with "apt-cache search"
[21:16:24] <Salamandar> what do you mean ?
[21:16:31] <Salamandar> it's built into nginx itself
[21:16:56] <Salamandar> https://aria.im/_matrix/media/v1/download/matrix.org/AbqxzqSXlwgoWfFVVSCcPZwf
[21:17:00] <Bram> I would have expect "apt-cache search nginx python" to show me either nginx or a module
[21:17:09] <Salamandar> here is part of the output of nginx -V
[21:17:43] <Aleks (he/him/il/lui)> (not sure you're talking about the same stuff)
[21:18:09] <Salamandar> > <@Alekswag:matrix.org> http://nginx.org/en/docs/http/ngx_http_auth_request_module.html

maybe, i'm talking about that
[21:18:16] <Bram> indeed
[21:18:24] <Bram> I'm talking about nginx python module
[21:19:05] <Bram> > nginx -V |& grep python | wc -l
0
[21:19:38] <Salamandar> ah my bad
[21:21:05] <Salamandar> can't find any info about mod_python online
[21:21:05] <Salamandar> there is a mod_python for apache though
[21:21:05] <Salamandar> hum
[21:21:20] <Bram> that's really not the same thing
[21:21:26] <Bram> that's for serving python like php
[21:22:00] <Salamandar> yeah
[21:22:01] <Salamandar> i know
[21:22:11] <Salamandar> but "nginx mod_python" doesn't return anything on google
[21:22:23] <Bram> that's because you want "nginx python module"
[21:22:31] <Bram> > <@Bram_:matrix.org> https://github.com/arut/nginx-python-module I think it's that thing but I'm not 100% sure

see ^
[21:22:38] <Salamandar> ah :)
[21:22:48] <Salamandar> > 7 years ago
[21:22:57] <Bram> yeah, now read
[21:23:04] <Bram> > <@Bram_:matrix.org> I'm pretty sure it only works with python2 also ^^'

^
[21:23:32] <Salamandar> yea
[21:23:39] <Salamandar> i saw that, just not the link before, sorry
[21:25:27] <Bram> https://github.com/decentfox/nginxpy there is this weird thing without any doc that seems abandonned also
[21:26:44] <Bram> idk if it's realistic to use it (if it works) and build on top of it
[21:26:44] <Salamandar> yeah
[21:26:44] <Bram> of the price of maintenance won't be worth it
[21:27:28] <Bram> dear god the internet is full of dead projects like that https://github.com/rryqszq4/ngx_python
[21:32:10] <Bram> heh, shitty situation
[21:33:07] <Bram> I know: let's rewrite nginx in python (no)
[21:34:02] <Aleks (he/him/il/lui)> back to `auth_request`, i'm curious though performance-wise what's the best between having lua code directly integrated inside nginx versus forwarding every request to an "external" middleware before forwarding it to the actual app
[21:34:19] <Aleks (he/him/il/lui)> maybe internal HTTP request are super speedy idk
[21:34:40] <Bram> crazy other approach: apparently you can write custom authenticator for ... caddy
[21:34:47] <Aleks (he/him/il/lui)> > <@Bram_:matrix.org> I know: let's rewrite nginx in python (no)

with blackjack and webhookers
[21:34:53] <Bram> but you have to do it in go T_T
[21:35:22] <Salamandar> > <@Alekswag:matrix.org> back to `auth_request`, i'm curious though performance-wise what's the best between having lua code directly integrated inside nginx versus forwarding every request to an "external" middleware before forwarding it to the actual app

Lua binding inside C are basically native c code
[21:35:40] <Émy - OniriCorpe> > <@Bram_:matrix.org> I know: let's rewrite nginx in python (no)

it's called gunicorn
[21:35:45] <Salamandar> difficult to have the same perf with IPC comm
[21:35:49] <Bram> the irony is that with asyncio + uvloop you should be able to get decent performance for a nginx clone but dear god I'm pretty sure we don't want to do that
[21:35:53] <Salamandar> > <@Bram_:matrix.org> the irony is that with asyncio + uvloop you should be able to get decent performance for a nginx clone but dear god I'm pretty sure we don't want to do that

plz dont
[21:35:54] <Bram> > <@oniricorpe:im.emelyne.eu> it's called gunicorn

not really no
[21:36:02] <Bram> gunicorn is something else
[21:36:54] <Bram> (it's wsgi server based on the pre fork model of apache made by Benoit Chesneau)
[21:37:02] <Bram> (who I've met with several times)
[21:37:25] <Aleks (he/him/il/lui)> (ah also the user portal / sso was reworked and the paint is still fresh and pretty sure there are various bugs or unexpected behaviors here and there)
[21:37:31] <Aleks (he/him/il/lui)> woopsies wrong chan
[21:46:26] <orhtej2> Mjolnir Archon censoring Aleks (he/him/il/lui) ? :P
[21:48:05] <Émy - OniriCorpe> you autist
[21:48:14] <Émy - OniriCorpe> bram, it was a joke x)
[21:48:49] <Bram> \> :(
[21:49:17] <Émy - OniriCorpe> :"3
[22:18:49] <Yunohost Git/Infra notifications> [yunohost-admin] Axolotle created new branch fixes
[22:18:50] <Yunohost Git/Infra notifications> [yunohost-admin] Axolotle pushed 2 commits to fixes ([a5e0022fb567^...8479fe4a20ba](https://github.com/YunoHost/yunohost-admin/compare/a5e0022fb567^...8479fe4a20ba))
[22:18:56] <Yunohost Git/Infra notifications> [yunohost-admin/fixes] fix(login): return proper Promise on login action - axolotle
[22:21:34] <Yunohost Git/Infra notifications> [yunohost-admin] Axolotle opened [pull request #563](https://github.com/YunoHost/yunohost-admin/pull/563): fixes: login not redirecting + /domains query appearing in history
[22:22:38] <Yunohost Git/Infra notifications> [yunohost-admin] Axolotle merged [pull request #563](https://github.com/YunoHost/yunohost-admin/pull/563): fixes: login not redirecting + /domains query appearing in history
[22:22:38] <Yunohost Git/Infra notifications> [yunohost-admin] Axolotle pushed 3 commits to dev ([4b484a039693...ab4dc8fd4e88](https://github.com/YunoHost/yunohost-admin/compare/4b484a039693...ab4dc8fd4e88))
[22:22:43] <Yunohost Git/Infra notifications> [yunohost-admin/dev] fix(login): return proper Promise on login action - axolotle
[22:22:43] <Yunohost Git/Infra notifications> [yunohost-admin] Axolotle deleted branch fixes
[22:22:48] <Yunohost Git/Infra notifications> [yunohost-admin/dev] fix: use api instead of store action to query domains - axolotle
[22:30:32] <Yunohost Git/Infra notifications> 🏗️ Starting build for yunohost-admin/11.2.4.1+202403262230 for bullseye/unstable/all ...
[22:34:17] <Yunohost Git/Infra notifications> ✔️ Completed build for yunohost-admin/11.2.4.1+202403262230 for bullseye/unstable/all.
[22:47:31] <Yunohost Git/Infra notifications> [issues] Psycojoker edited [issue #2366](https://github.com/YunoHost/issues/issues/2366): make all applications manifest.toml translatable in weblate
[23:37:54] <Yunohost Git/Infra notifications> [yunohost-admin] Axolotle pushed 6 commits to bookworm ([303a28ce4d70...cbea05fa9b23](https://github.com/YunoHost/yunohost-admin/compare/303a28ce4d70...cbea05fa9b23))
[23:37:58] <Yunohost Git/Infra notifications> [yunohost-admin/bookworm] s/bullseye/bookworm - Tagadda
[23:39:07] <Yunohost Git/Infra notifications> [yunohost-admin] Axolotle pushed 30 commits to vue3-compat ([a4a017c6badc...23594bc33883](https://github.com/YunoHost/yunohost-admin/compare/a4a017c6badc...23594bc33883))
[23:39:14] <Yunohost Git/Infra notifications> [yunohost-admin/vue3-compat] refactor: vue-router currentRoute is now a ref - axolotle
[23:39:25] <Yunohost Git/Infra notifications> [yunohost-admin] Axolotle edited [pull request #559](https://github.com/YunoHost/yunohost-admin/pull/559): Migration Vue3: step 1 compat mode
[23:45:26] <Yunohost Git/Infra notifications> 🏗️ Starting build for yunohost-admin/12.0.0+202403262345 for bookworm/unstable/all ...
[23:46:37] <Yunohost Git/Infra notifications> [yunohost-admin] Axolotle pushed 30 commits to vue3-compat-bvn ([f8c31debab7e...e4ab46b10ce0](https://github.com/YunoHost/yunohost-admin/compare/f8c31debab7e...e4ab46b10ce0))
[23:48:59] <Yunohost Git/Infra notifications> ✔️ Completed build for yunohost-admin/12.0.0+202403262345 for bookworm/unstable/all.