jdev - 2020-03-26


  1. lovetox

    little offtopic but i dont know an appropriate room for the question

  2. lovetox

    at work i browse with firefox, it always tells me that it does not recognize the CA of the cert, but the cert seems to be installed as root cert on my maschine so firefox is fine with it

  3. lovetox

    the cert is obviously from my company

  4. lovetox

    does that mean they can intercept and read all TLS traffic?

  5. Zash

    Sounds like a MITM TLS proxy.

  6. Zash

    Then yes, those can read all your TLS traffic.

  7. lovetox

    hm i guess its their right, i use their hardware, but annoys me a bit

  8. flow

    I am pretty sure they do not have the right if you fall under german jurisdiction

  9. Ge0rG

    flow: they are allowed to do so if you are not allowed to use the PC for private purposes

  10. lovetox

    in Austria they can read all you do

  11. lovetox

    they are just not allowed in some circumstances to make it a offical reason for a lay off

  12. pep.

    When reading a stanza/xml element, is there a case where one would want to know the declared prefixes ever? apart to determine what's the "default" NS for the current element. With this I mean "bar" for <foo xmlns="bar"/> or <ns:foo xmlns:ns="bar"/> are technically equivalent and there's no reason for the higher-level application to be aware of the difference, right?

  13. Zash

    Not that I've encountered.

  14. pep.

    You'd want to set a custom prefix I guess for special cases like stream:stream, or for debugging maybe

  15. pep.

    (even though 0044..)

  16. Zash

    I don't see how anything is improved by spamming namespace prefixes like that.

  17. pep.

    spamming?

  18. Zash

    https://xmpp.org/extensions/xep-0044.xml#example-4

  19. pep.

    yeah I guess the version thing is meh. I'd say it's a contrived exapmle just to show support

  20. pep.

    In practice you probably wouldn't generate this, that's not really smart

  21. Zash

    You did say 'when reading'.

  22. pep.

    Ok. Well that confirms what I was asking anyway

  23. pep.

    You don't need to know

  24. Zash

    When serializing there might sometimes be some benefit, like not having to have the xmlns twice in errors

  25. pep.

    what do you mean

  26. Zash

    <iq id="dawsdfRgbxBQAfF6" type="error" to="me" from="borkborkbork"> <error by="my server" type="cancel"> <remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/> <text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Server-to-server connection failed: unable to resolve service</text> </error> </iq>

  27. Zash

    Observe how the error condition and text elements have the same xmlns. And it's not the shortest one ever.

  28. pep.

    sure but prefixes are not important here right

  29. pep.

    NSs are

  30. pep.

    hmm I'm not sure I understand sorry

  31. Zash

    It's verbose and a pain to read.

  32. pep.

    Sure, and you can deduplicate that

  33. pep.

    We're not talking about the same thing

  34. pep.

    That's not the layer I'm currently worried about :)

  35. Zash

    <error by="my server" type="cancel" xmlns:e="urn:ietf:params:xml:ns:xmpp-stanzas"> <e:remote-server-not-found/> <e:text>Server-to-server connection failed: unable to resolve service</e:text> </error> Would be fewer bytes and easier to read.

  36. pep.

    What I get from this is there is no need for the application to know about the prefix

  37. Zash

    None

  38. Zash

    Not unless it wants to be annoying and really enforce that the <stream:stream> has that exact prefix.

  39. Zash

    ... which IIRC is required by the standard

  40. pep.

    yeah, I have an idea for the API

  41. pep.

    That'd be an extra step, by default I'll just not ask for prefixes

  42. Zash

    If you wanna serialize the input back exactly then I guess you wanna keep it

  43. pep.

    And they will be generated

  44. pep.

    right

  45. Zash

    But if you're a server routing stanzas it might be more efficient to keep the actual input

  46. Kev

    We were recently looking at this and came to the conclusion that the server should be preserving prefixes etc. I forget what led us there.

  47. pep.

    Compat?

  48. pep.

    But preserving prefixes is different from not exposing them to the user of my library anyway

  49. Kev

    Indeed.