2026-04-05T12:47:43 crameleon (acidsys) youve assigned me a ticket i cannot handle lol 2026-04-05T12:48:30 oh wait, i read a bit closer... the linked issue has _nothing_ to do with the ticket 2026-04-05T12:56:49 tl;dr issue is about fed invites still being blocked rather than any (long closed) synapse issue, will need some help to resolve as i dont know how to make packages that inherit other packages or whatever needs to happen 2026-04-05T14:17:26 Emma: I don't really understand the issue, originally I too thought it was related to what you referred to, but then it sounded like we already removed that again while the configuration still has /_matrix/federation/v2/invite as blocked 2026-04-05T14:20:24 yeah, the issue is the block of federated invites that we put in place during that big CSAM wave a year or so ago. 2026-04-05T14:21:54 yeah, and the proper fix for that would be somehow getting more python modules in the PYTHON_PATH of synapse 2026-04-05T14:22:14 particularly: https://github.com/maunium/synapse-http-antispam 2026-04-05T14:22:26 I'd submit a fix if I had any clue at all how to fix it. 2026-04-05T14:23:08 the "proper" fix would be adding the synapse-http-antispam module and configuring it through synape's config to ask draupnir if a given invite is permitted 2026-04-05T14:24:01 opensuse has a external ban appeal flow anyhow so that wouldn't be that big a problem to not be able to DM matrix admins 2026-04-05T14:28:40 I can package it for you 2026-04-05T14:30:18 upstream placing it directly under site-packages is rather unconventional but whatever 2026-04-05T14:30:45 no it's pretty conventional 2026-04-05T14:31:00 it's written with docker synapse images in mind, where synapse itself lives under site-packages anyways to the best of my knowledge 2026-04-05T14:31:11 (or those installing synapse itself from pypi directly) 2026-04-05T14:31:20 * directly without a venv) 2026-04-05T14:31:55 it's more common to have a module directory and place python files underneath instead of cluttering site-packages with .py 2026-04-05T14:32:22 but no difference 2026-04-05T14:32:26 it just has to be wherever synapse's packages directory is (also see the reference to debian packages telling you _not_ to install globally) 2026-04-05T14:32:43 as for module directories: im not sure that's hyper relevant with single-file packages? 2026-04-05T14:33:22 synapse is installed globally 2026-04-05T14:33:29 it's fine, don't worry about it, I was just pointing something out 2026-04-05T14:33:40 ah, i see - i wasnt sure about opensuse synapse packaging 2026-04-05T14:34:18 I'm a bit confused, looks like I already did this 11 months ago? https://build.opensuse.org/package/show/openSUSE:infrastructure:matrix/synapse-http-antispam 2026-04-05T14:34:20 its a 200 line python file that simply exposes synapse's antispam callbacks as webhook-style http requests anyhow :P 2026-04-05T14:34:28 is anything missing? 2026-04-05T14:34:34 oh did you, might have missed it 2026-04-05T14:34:42 I will update to the latest version 2026-04-05T14:35:09 yeah, 0.4 is quite interesting for us here btw 2026-04-05T14:35:14 * 0.4.0 2026-04-05T14:35:52 that includes my PR to SAH to allow loading the auth secret from a file (though ill need your help making one of those) rather than being plaintext in the config 2026-04-05T14:35:59 * SHA 2026-04-05T14:40:26 https://gitlab.infra.opensuse.org/infra/salt/-/merge_requests/2744 you can add configuration to salt/profile/matrix/files/homeserver.yaml 2026-04-05T14:40:42 and is 0.5.0 now 2026-04-05T14:41:09 how would i go about modifying the launch command of a service? 2026-04-05T14:41:17 why would you want to do that 2026-04-05T14:41:59 i need an extra secret for this 2026-04-05T14:42:35 draupnir takes the path to a secret file via the CLI _only_ ("--http-antispam-authorization-path $PATH") 2026-04-05T14:43:30 alternatively i need to somehow get it into the config file without exposing it in plaintext in git 2026-04-05T14:44:22 alternatively #2: we ignore that issue and put it in the config in plaintext while assuming draupnir isnt reachable over HTTP directly 2026-04-05T14:44:48 for draupnir-bot.service you could add an override to edit Environment=ARGS, but if it can be placed in the configuration file that would be preferable 2026-04-05T14:44:56 and you want to track secrets in git anyways, we have encryption 2026-04-05T14:45:16 didnt that require having functional pgp? 2026-04-05T14:45:24 sure 2026-04-05T14:46:14 acidsys: can systemd even modify ExecStart depending on whether a variable is set or not? 2026-04-05T14:46:49 because if the arg is there, its argument must be a valid path 2026-04-05T14:47:17 sure, and draupnir-bot.service working is a good example for it 2026-04-05T14:48:55 huh? 2026-04-05T14:49:51 well if it was not working already someone would have complained, no? :) 2026-04-05T14:50:08 in any case configuration incl secrets should be tracked in git/salt, whichever approach is chosen 2026-04-05T14:50:10 well, by default the argument isnt specified :) 2026-04-05T14:51:24 i just meant that you cant do "--http-antispam-authorization-path $SECRET_PATH" and then not specify SECRET_PATH :P 2026-04-05T14:51:39 well I wasn't suggesting that 2026-04-05T14:52:17 but of course correct, so it's not so useful for shipping in the default unit file 2026-04-05T14:54:05 i _could_ just post configuration snippets here for synapse and draupnir if you'd be willing to implement them 2026-04-05T14:59:51 for the record, the following is what i think is valid YAML, i may be wrong... i usually only use json lol 2026-04-05T15:00:25 ah, bridge truncated it to one line - the config isn't very complicated, just a lot of variables im unsure about as far as Salt goes 2026-04-05T15:00:38 keep in mind heisenbridge matrix snippet to irc link is still broken too 2026-04-05T15:00:46 argh 2026-04-05T15:00:53 moment 2026-04-05T15:01:08 I can open element for you 2026-04-05T15:02:01 yawn 2026-04-05T15:02:47 oh i was putting it on p.o.o lol, just had to deal with matrix clients not faithfully replicating my quotes lol 2026-04-05T15:03:32 but sure 2026-04-05T15:12:49 check https://gitlab.infra.opensuse.org/infra/salt/-/merge_requests/2744 2026-04-05T15:34:51 on it 2026-04-05T15:35:58 oh, seems i forgot to mention that the base url in the homeserver.yaml should point at draupnir, not the matrix server 2026-04-05T15:36:16 one sec, digging up the default port 2026-04-05T15:37:46 left a comment on gitlab 2026-04-05T16:19:24 thanks