aj
has joined
00:31:18
strar
has left
01:13:40
aj
has left
01:14:05
strar
has joined
01:15:23
debacle
has left
02:19:10
aj
has joined
02:46:38
aj
has left
03:00:52
SouL
has joined
04:01:45
DebXWoody
has joined
04:20:35
DebXWoody
has left
04:27:38
DebXWoody
has joined
04:30:05
paul
has joined
05:30:18
moparisthebest
has left
05:45:47
asterix
has joined
06:44:38
kikuchiyo
has joined
06:45:49
strar
has left
06:55:22
wurstsalat
has left
06:56:55
strar
has joined
06:58:05
kikuchiyo
has left
07:01:21
kikuchiyo
has joined
07:01:39
pulkomandy
has left
07:02:31
asterix
has left
07:03:01
asterix
has joined
07:03:02
pulkomandy
has joined
07:11:52
wurstsalat
has joined
07:17:00
DebXWoody
has left
07:21:06
DebXWoody
has joined
07:30:48
asterix
has left
07:49:32
asterix
has joined
07:49:33
asterix
has left
07:49:36
asterix
has joined
07:49:37
kikuchiyo
has left
07:57:46
kikuchiyo
has joined
07:58:02
Marc
has joined
08:07:25
pulkomandy
has left
08:11:38
pulkomandy
has joined
08:13:33
sonny
has joined
08:21:42
adrien
has left
08:35:07
larma
has left
08:37:09
DebXWoody
has left
08:37:13
DebXWoody
has joined
08:37:54
DebXWoody
has left
08:38:56
DebXWoody
has joined
08:39:07
DebXWoody
has left
08:41:15
DebXWoody
has joined
08:41:23
larma
has joined
08:42:49
asterix
has left
09:02:59
asterix
has joined
09:03:00
pulkomandy
has left
09:09:13
adrien
has joined
09:09:39
kikuchiyo
has left
09:09:54
pulkomandy
has joined
09:14:33
kikuchiyo
has joined
09:23:52
adrien
has left
09:28:43
asterix
has left
09:31:37
adrien
has joined
09:32:15
asterix
has joined
09:34:43
lovetox
has joined
09:35:52
pulkomandy
has left
09:38:55
pulkomandy
has joined
09:40:15
pulkomandy
has left
09:52:11
pulkomandy
has joined
09:54:34
asterix
has left
09:56:16
asterix
has joined
09:56:20
lovetox_
has joined
09:58:36
Zash
has left
09:59:15
Zash
has joined
09:59:33
pulkomandy
has left
10:17:27
pulkomandy
has joined
10:18:43
debacle
has joined
10:19:49
debacle
has left
10:22:39
debacle
has joined
10:23:23
Jae
has joined
10:24:36
debacle
has left
10:25:43
debacle
has joined
10:26:24
debacle
has left
10:28:45
debacle
has joined
10:29:29
debacle
has left
10:31:50
debacle
has joined
10:32:35
debacle
has left
10:34:56
debacle
has joined
10:35:40
debacle
has left
10:38:02
debacle
has joined
10:38:46
debacle
has left
10:41:07
serge90
has joined
10:41:28
debacle
has joined
10:41:51
asterix
has left
10:44:07
asterix
has joined
10:44:09
debacle
has left
10:44:12
debacle
has joined
10:44:46
asterix
has left
10:46:03
asterix
has joined
10:46:04
pulkomandy
has left
10:51:27
goffi
has joined
10:57:39
lovetox_
has left
11:03:09
lovetox_
has joined
11:03:10
pulkomandy
has joined
11:03:45
lovetox_
has left
11:03:46
lovetox_
has joined
11:03:47
lovetox_
has left
11:04:27
lovetox_
has joined
11:06:46
lovetox_
has left
11:08:36
lovetox_
has joined
11:10:29
lovetox_
has left
11:16:32
lovetox_
has joined
11:16:33
lovetox_
has left
11:17:11
lovetox
has left
11:18:35
sonny
has left
11:19:03
lovetox
has joined
11:19:23
Martin
has left
11:19:52
Martin
has joined
11:20:35
pulkomandy
has left
11:23:40
pulkomandy
has joined
11:25:33
sonny
has joined
11:29:24
Jae
has left
11:32:21
Jae
has joined
11:32:36
Jae
has left
11:41:35
Jae
has joined
11:45:54
serge90
has left
11:59:32
serge90
has joined
11:59:45
serge90
has left
12:00:39
serge90
has joined
12:00:56
serge90
has left
12:03:14
serge90
has joined
12:03:30
Jae
has left
12:07:30
serge90
has left
12:09:33
serge90
has joined
12:09:52
Jae
has joined
12:11:06
pulkomandy
has left
12:14:35
serge90
has left
12:15:05
serge90
has joined
12:15:21
pulkomandy
has joined
12:15:35
goffi
has left
12:17:18
goffi
has joined
12:17:21
serge90
has left
12:20:33
serge90
has joined
12:20:50
serge90
has left
12:21:50
serge90
has joined
12:22:07
serge90
has left
12:27:17
serge90
has joined
12:27:34
adrien
has left
12:30:48
serge90
has left
12:33:09
serge90
has joined
12:33:25
Jae
has left
12:38:42
moparisthebest
has joined
12:45:22
Jae
has joined
12:45:56
pulkomandy
has left
12:57:27
pulkomandy
has joined
12:57:33
adrien
has joined
13:01:39
kikuchiyo
has left
13:16:57
kikuchiyo
has joined
13:19:53
kikuchiyo
has left
13:24:47
kikuchiyo
has joined
13:25:09
Jae
has left
13:30:31
pulkomandy
has left
13:38:44
rion
has left
13:46:32
rion
has joined
13:46:36
pulkomandy
has joined
13:48:55
kikuchiyo
has left
13:50:40
kikuchiyo
has joined
13:54:05
kikuchiyo
has left
14:00:06
kikuchiyo
has joined
14:04:35
kikuchiyo
has left
14:10:35
pulkomandy
has left
14:11:12
serge90
has left
14:12:25
serge90
has joined
14:12:43
kikuchiyo
has joined
14:14:55
pulkomandy
has joined
14:18:43
Jae
has joined
14:19:14
kikuchiyo
has left
14:21:53
lovetox
has left
14:22:33
lovetox
has joined
14:22:45
kikuchiyo
has joined
14:31:19
strar
has left
14:40:27
strar
has joined
14:41:57
kikuchiyo
has left
14:50:04
Jae
has left
14:50:52
Jae
has joined
14:52:22
paul
has left
15:05:43
kikuchiyo
has joined
15:17:18
kikuchiyo
has left
15:20:07
kikuchiyo
has joined
15:20:24
paul
has joined
15:24:29
lovetox_
has joined
15:30:19
lovetox_
has left
15:30:33
lovetox_
has joined
15:30:35
lovetox_
has left
15:32:10
kikuchiyo
has left
15:32:41
pulkomandy
has left
15:40:27
kikuchiyo
has joined
15:42:48
pulkomandy
has joined
15:48:04
Guus
has left
15:48:29
Guus
has joined
15:48:30
Wojtek
has joined
15:53:52
martin
has joined
16:00:22
martin
has left
16:01:39
martin
has joined
16:02:17
martin
has left
16:03:41
martin
has joined
16:04:30
martin
has left
16:05:51
martin
has joined
16:06:37
martin
has left
16:08:00
martin
has joined
16:08:43
martin
has left
16:10:05
martin
has joined
16:10:52
kikuchiyo
has left
16:12:03
martin
has left
16:12:17
kikuchiyo
has joined
16:12:29
martin
has joined
16:13:04
martin
has left
16:14:25
martin
has joined
16:15:12
Jae
has left
16:15:28
Jae
has joined
16:16:20
martin
has left
16:16:35
martin
has joined
16:17:22
pulkomandy
has left
16:18:13
martin
has left
16:18:46
martin
has joined
16:19:33
martin
has left
16:20:53
martin
has joined
16:21:39
pulkomandy
has joined
16:22:38
martin
has left
16:23:01
martin
has joined
16:23:47
martin
has left
16:25:10
martin
has joined
16:25:56
martin
has left
16:27:23
martin
has joined
16:28:11
martin
has left
16:29:36
kikuchiyo
has left
16:29:47
martin
has joined
16:30:22
martin
has left
16:31:48
martin
has joined
16:32:35
Jae
has left
16:32:39
martin
has left
16:33:57
martin
has joined
16:34:43
martin
has left
16:36:08
martin
has joined
16:36:40
martin
has left
16:38:14
martin
has joined
16:39:01
Jae
has joined
16:40:02
martin
has left
16:40:33
martin
has joined
16:41:20
martin
has left
16:42:51
martin
has joined
16:43:39
martin
has left
16:45:14
martin
has joined
16:46:01
martin
has left
16:47:36
martin
has joined
16:48:22
paul
has left
16:48:23
paul
has joined
16:49:21
paul
has left
16:49:22
martin
has left
16:49:52
martin
has joined
16:50:39
Jae
has left
16:51:26
martin
has left
16:52:10
Jae
has joined
16:52:51
martin
has joined
16:52:56
martin
has left
16:54:29
martin
has joined
16:55:15
martin
has left
16:56:51
martin
has joined
16:57:37
martin
has left
16:59:08
martin
has joined
16:59:54
amnesia
has joined
17:00:03
paul
has joined
17:01:09
martin
has left
17:01:26
martin
has joined
17:02:13
martin
has left
17:03:46
pulkomandy
has left
17:04:16
martin
has joined
17:04:33
martin
has left
17:06:04
martin
has joined
17:06:55
pulkomandy
has joined
17:08:13
martin
has left
17:08:28
martin
has joined
17:09:16
martin
has left
17:10:50
martin
has joined
17:11:42
adrien
has left
17:12:41
adrien
has joined
17:12:42
Wojtek
has left
17:13:16
Wojtek
has joined
17:13:23
martin
has left
17:13:30
Wojtek
has left
17:14:04
Wojtek
has joined
17:14:11
Wojtek
has left
17:14:52
martin
has joined
17:16:48
pulkomandy
has left
17:17:51
martin
has left
17:19:04
pulkomandy
has joined
17:21:14
martin
has joined
17:28:51
SouL
has left
17:40:32
SouL
has joined
17:40:35
amnesia
has left
17:46:15
pulkomandy
has left
17:53:35
Wojtek
has joined
17:54:48
lovetox_
has joined
18:02:23
lovetox_
has left
18:05:31
pulkomandy
has joined
18:10:37
Jae
has left
18:13:20
amnesia
has joined
18:13:59
goffi
has left
18:14:32
goffi
has joined
18:14:33
pulkomandy
has left
18:20:41
Jae
has joined
18:21:35
pulkomandy
has joined
18:21:42
pulkomandy
has left
18:33:27
pulkomandy
has joined
18:33:38
sonny
has left
18:42:54
pulkomandy
has left
18:43:35
pulkomandy
has joined
18:43:48
alexis
has left
18:48:29
paul
has left
19:02:36
paul
has joined
19:03:31
lovetox
19:03:58
so for domainnames normally i use stringprepare
lovetox
19:04:08
nameprep
lovetox
19:04:41
but in python there is module available that does the idna2008 standard
jonas’
19:04:44
I don’t like where this is going
lovetox
19:04:52
can i just switch to that, or is this going to be problematic?
Zash
19:04:53
Me neither
jonas’
19:04:56
no, those are different things
pulkomandy
has left
19:05:07
lovetox
19:05:08
really?
jonas’
19:05:10
you need to do nameprep first, then you can IDNA-encode the name before handing it to the DNS server
jonas’
19:05:21
IDNA is an encoding (unicode -> DNS-compatible ascii bytes)
jonas’
19:05:25
like UTF-8 is an encoding
jonas’
19:05:36
problem is: there are two incompatible versions of idna, and nobody knows which one to use
lovetox
19:06:09
im talking about validating domainnames
jonas’
19:06:14
nameprep
lovetox
19:06:16
in python there is a idna standard module
jonas’
19:06:20
that’s all validation you need
lovetox
19:06:27
it offers a method thats called nameprep
jonas’
19:06:36
there is no idna module in the python standard library
jonas’
19:06:48
according to https://docs.python.org/3/library/
lovetox
19:07:04
its a submodule of stringprepare
jonas’
19:07:15
there is no stringprepare module either
lovetox
19:07:17
or stringprep dont know
pulkomandy
has joined
19:07:33
jonas’
19:07:39
stringprep doesn’t have submodules AFAIK. most certainly not an `idna` submodule
Zash
19:07:50
It hasn't been long enough since some user put http://example.com:5280/ as their XMPP server name and everything was fine with that.
jonas’
19:07:58
I’m wondering what you’re talikng about. LTIC python only supported IDNA2003
lovetox
19:08:42
ok https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Lib/encodings/idna.py
lovetox
19:08:45
its a encoding
jonas’
19:08:48
as I said, yes
jonas’
19:09:03
and it’s IDNA2003
jonas’
19:09:06
not 2008
jonas’
19:09:39
again, IDNA* are encodings like UTF-8 are encodings. has nothing to do with validation or normalisation like nameprep does
lovetox
19:09:40
yes and it has a method call nameprep
jonas’
19:09:49
neat
jonas’
19:09:58
but it’s not public API
jonas’
19:10:27
seems as if nameprep is a precondition for IDNA2003 and they’re doing that for you
lovetox
19:10:54
oh ok so thats what confused me
jonas’
19:11:51
you can do a call to codecs.encode(some_domain, "idna") and if it doesn’t raise UnicodeEncodeError, then you know that it passes nameprep
martin
has left
19:11:55
lovetox
19:11:59
soo can is witch to nameprep -> IDNA2008
lovetox
19:12:00
?
jonas’
19:12:02
no
jonas’
19:12:05
it’s idna2003
jonas’
19:12:07
not idna2008
jonas’
19:12:15
also note that nameprep has been deprecated in XMPP
lovetox
19:12:24
you just said nameprep has nothing to do with idna, its just a precondition
lovetox
19:12:27
so what is it now
jonas’
19:12:49
TIL that nameprep is a precondition to IDNA2003.
jonas’
19:12:51
it doesn’t matter tho
jonas’
19:12:59
IDNA2003 does more than just nameprep
jonas’
19:13:04
if you want nameprep, you should do nameprep and not IDNA2003
Zash
19:13:11
You actually want IDNA too, nameprep isn't enough to validate an XMPP hostname.
Zash
19:13:18
domain. hostpart. thing.
jonas’
19:13:37
Zash, IDNA doesn’t buy you much though:
>>> codecs.encode("http://foo:5082", "idna")
b'http://foo:5082'
Zash
19:13:39
See previously mentioned incident with someone having a HTTP URL in their config
Zash
19:14:00
wut
jonas’
19:14:02
yeah.
jonas’
19:14:07
it’s just nameprep plus some mapping of characters
jonas’
19:14:17
plus length restrictions
Zash
19:14:27
> print(util.encodings.idna.to_ascii("http://foo:123/"))
nil
jonas’
19:14:36
is that IDNA2003 or IDNA2008?
Zash
19:14:43
Probably 2008
jonas’
19:14:48
might be the difference
jonas’
19:14:56
python3 only has 2003
Zash
19:15:00
haha
jonas’
19:15:03
yeah
Zash
19:15:13
but don't python also have ... whatsitcalled, precis?
jonas’
19:15:16
the issue is just open for seven years now: https://bugs.python.org/issue17305
jonas’
19:15:19
Zash, not built-in
jonas’
19:15:21
there’s a third party module
Zash
19:15:30
better than nothing
jonas’
19:15:38
true
jonas’
19:16:06
there also seems a third-party IDNA module which does things
jonas’
19:16:19
and then again: I’m not sure XMPP software should make assumptions about what DNS allows.
lovetox
19:16:20
: is not allowed in IDNA2008
jonas’
19:16:27
let DNS deal with the weird things we put in the domainpart.
pulkomandy
has left
19:16:33
jonas’
19:16:50
it’ll tell us to f* off. encoding (too many) assumptions about how DNS works and what it allows seems like it can only lead to a world of pain
jonas’
19:17:00
normalisation makes sense for comparision and stuff, but beyond that…
Zash
19:17:38
`idn -a <<< "http://foo.bar:123/"` spits out its input
Zash
19:17:43
and that would be idna2003
lovetox
19:18:46
so i still dont see no problem to run a host through idna 2008?
pulkomandy
has joined
19:18:47
jonas’
19:18:57
probably ok
jonas’
19:19:00
not sure what that gains you tho
lovetox
19:19:00
and if it returns an exception, tell the user its not a valid domain name
jonas’
19:19:05
I hate that type of stuff
amnesia
has left
19:19:07
jonas’
19:19:11
that’s the type of stuff which breaks new things
jonas’
19:19:34
you’ll notice that it’s not a valid domain name when you ask the DNS about the name
jonas’
19:19:56
(though, you need to do IDNA2008 or IDNA2003 before you ask the DNS)
jonas’
19:20:02
(but you can’t know which one is right \o/)
Zash
19:20:26
The least painful answer for us: IDNA2008 in IDNA2003 compat mode
Zash
19:20:46
IDNA2003 library support status: deprecated.
lovetox
19:21:21
so what does the xmpp standard say about domainpart
Zash
19:21:22
libidn v1 deprecated
libin2 dosen't do nameprep & co, can't manage xmpp parts
lovetox
19:21:25
no validation at all?
lovetox
19:21:36
it does for node and resource part have precis modules
Zash
19:21:38
lovetox: "the", there are like 3 of them
Zash
19:21:41
3 versions
lovetox
19:21:50
the lastest
Zash
19:21:51
idna2003, idna2008, precis
lovetox
19:23:50
so wtf it definitly says a domainpart has to conform to idna2008
lovetox
19:24:16
so i certainly run it through idna2008 and be finished with it
Zash
19:24:20
Latest is https://tools.ietf.org/html/rfc7622
lovetox
19:24:33
yes thats what iam refering to
jonas’
19:24:50
I love how we still haven’t figured out how to do unicode release interop
Zash
19:24:52
This be the IDNA2008 + PRECIS thing righht?
lovetox
19:24:59
yes
lovetox
19:25:07
and idna2008 has no nameprep as precondition
jonas’
19:25:10
I dropped that in #debian-til and someone got nerdsniped by that and dug out that the unicode releases also don’t really have guidelines on compatibility
lovetox
19:25:15
so actually i can throw out all nameprep stuff
Zash
19:25:46
jonas’: No way we're doing that while in the middle of a pandemic, can't afford to waste painkillers and anti-fever meds on this horror
jonas’
19:26:00
:D
jonas’
19:26:24
luckily, the next unicode release will be postponed due to the pandemic, too
Zash
19:27:05
Praise Glob
paul
has left
19:27:58
amnesia
has joined
19:29:31
pulkomandy
has left
19:31:39
pulkomandy
has joined
19:31:51
strar
has left
19:34:20
strar
has joined
19:35:05
pep.
has left
19:37:04
strar
has left
19:39:20
paul
has joined
19:39:55
strar
has joined
19:40:13
pep.
has joined
19:41:20
flow
19:42:37
lovetox> so i certainly run it through idna2008 and be finished with it
then you potentially disallow ipv4/ipv6 addresses in the domainpart, which are allowed
lovetox
19:42:54
after i check if its an ip :D
flow
19:43:51
lovetox, bonus points for allowing ipv6 scope IDs
lovetox
19:43:59
i do
flow
19:44:10
then here are your bonus points
lovetox
19:44:22
but only if you include it within []
flow
hands lovetox 13.37 bonus points
19:44:26
flow
19:44:49
lovetox, whatever the IP-literal rule of RFC 6874 allows
Zash
has left
19:48:22
Zash
has joined
19:48:36
lovetox
has left
19:51:38
Jae
has left
19:57:33
Jae
has joined
20:05:55
wurstsalat
has left
20:11:48
wurstsalat
has joined
20:11:53
Jae
has left
20:15:20
Jae
has joined
20:18:01
DebXWoody
has left
20:44:46
asterix
has left
20:45:10
Jae
has left
20:50:26
Jae
has joined
20:54:33
asterix
has joined
20:56:34
Marc
has left
20:56:53
Marc
has joined
20:56:53
asterix
has left
21:08:45
alexis
has joined
21:12:56
Marc
has left
21:15:11
Marc
has joined
21:15:11
moparisthebest
has left
21:25:52
Jae
has left
21:46:58
paul
has left
21:57:33
paul
has joined
22:01:22
goffi
has left
22:26:10
alexis
has left
22:44:27
wurstsalat
has left
22:45:52
SouL
has left
22:48:45
alexis
has joined
22:49:40
Marc
has left
23:23:53
paul
has left
23:38:31