Sender | Message | Time |
---|---|---|
5 Sep 2024 | ||
nex (she/it) | afaik, the parameter is only deprecated, not slated for removal | 19:57:46 |
nex (she/it) | so, from what I can tell, we aren't in hot water yet | 19:57:58 |
nex (she/it) | but its very much one of those things that could change at any time | 19:58:06 |
nex (she/it) | The difficulty comes in finding a solution that breaks the least number of downstream projects | 19:58:26 |
nex (she/it) | Sorry, I linked to the wrong issue | 19:58:47 |
nex (she/it) | https://github.com/matrix-nio/matrix-nio/issues/511 | 19:58:55 |
Alex | thx, i already found it | 19:58:59 |
nex (she/it) | 511 is the query string issue | 19:58:59 |
Alex | removal seems to be pending, but i don't know where to look for timelines. the proposed solution in that ticket was what i thought of after looking into the code. i'm just a bit afraid, that the removal will suprize me like the authed content ^^ in any case, thx for the PR | 20:04:31 |
nex (she/it) | Auth media really does feel like it just came out of nowhere lol | 20:05:16 |
nex (she/it) | In reply to@timegrid:matrix.c3s.ccYeah just confirmed, when MSC4127 is merged, that's when they become fully removed, not just depreacted | 20:09:32 |
nex (she/it) | However, it also looks like none of the key people have proposed merging it yet, so there's still some time | 20:12:24 |
Alex | thx for checking, i hope you are right :) | 21:06:00 |
6 Sep 2024 | ||
Alex | nex (she/it): i think there's still a bug in | 17:43:39 |
Alex | it's due to calling | 17:48:32 |
Alex | if | 18:03:55 |
Alex | moment for example also uses the function to fetch the url of the avatars, which would break without access_token. probably i'd just remove the image sharing function to prevent its leakage, which will be obsolete anyway then. just as a reminder, that the query parameter issue might be more severe (ppl are used to just copy and paste the url) and clients might need to take action to protect their users | 19:08:46 |
7 Sep 2024 | ||
nex (she/it) | In reply to@timegrid:matrix.c3s.ccNo you're right, it is meant to return the domain too | 12:22:42 |
nex (she/it) | I forgot that build_path does just the path, I thought it also included the domain lol | 12:22:55 |
nex (she/it) | Will patch that now | 12:22:57 |
nex (she/it) | as for the token leak - this is the reason it's deprecated. Unfortunately, until #511 gets dealt with, not much can be done about that, and people will just have to exercise caution. Perhaps a warning.warn(UserWarning) or something like that would be appropriate, for the time being? | 12:23:43 |
nex (she/it) | @Alex Has the use of encrypted_mxc_to_plumb come up in your testing at all? It has just dawned on me that I'm not entirely sure how the access token is meant to be passed to it, since I've never encountered it myself | 12:36:03 |
Alex | In reply to @nex:nexy7574.co.uk no, the function is not used anywhere in nio and neither in moment | 12:45:18 |
Alex | In reply to @nex:nexy7574.co.uk i know it won't fix soon. in this case, the main problem is, that formerly the media url was meant to be shared. i don't know, but assume that nio is also used for many bots/bridges, which might share the images via the url of | 13:15:50 |
Alex | for moment it will be ok, i already made an MR to remove the sharing functionality. i'm just thinking of the others | 13:17:59 |
nex (she/it) | See, in the context of bridges, they've got to just find another way to share the media, usually by proxying it themselves. For example, the mautrix-discord bridge requires that you expose part of the appservice to a reverse proxy in order to get matrix avatars to show in the discord webhooks. If the access token is stripped from these URLs, without viewing them from a logged in client, sharing them wouldn't work anyway | 13:44:21 |
nex (she/it) | I apologise if that sounds stubborn but I don't see a way that directly sharing the resulting HTTP URL can be useful in many cases anymore for home servers with authenticated media | 13:44:53 |
nex (she/it) | A flag to force unauthenticated media is definitely an option though, although mileage may vary regardless | 13:45:47 |
nex (she/it) | Honestly, might it be worth considering #511 a blocker for this, given the security implications? Rather than trying to hack a way around it? | 13:46:48 |
tulir | why don't you just add the header in the send function that makes the http request, rather than immediately making breaking changes and refactoring all methods to return a map of headers? | 13:51:55 |