jdev - 2020-04-15


  1. Ge0rG

    I'm looking for public servers that have: - IBR with a captcha - Redirection from IBR, https://xmpp.org/extensions/xep-0077.html#redirect - IBR and run ejabberd

  2. Martin

    Maybe also ask in operators

  3. Ge0rG

    Martin: right, thanks

  4. pep.

    jonas’, your ToS thing is up for the taking I assume? Talking about IBR

  5. pep.

    I'm finally working on opening up my service and that's a requirement to me. (at least if we get things going I know I won't be stuck with http redirects forever)

  6. jonas’

    pep., -v please

  7. pep.

    Long ago when we did gdpr stuff you proposed a tos spec

  8. jonas’

    I know

  9. jonas’

    you can invent something better than that, sure

  10. jonas’

    I don’t intend to continue to work on it

  11. pep.

    Right that was my question. I might as well reuse the name :P

  12. DebXWoody

    I'm going to implement XEP-0373. Just tried to add my JID like xmpp:user@domain.tld. https://xmpp.org/extensions/xep-0373.html#openpgp-user-ids gpg> adduid Ihr Name ("Vorname Nachname"): xmpp:test@domain.tld Email-Adresse: Kommentar: Sie haben diese User-ID gewählt: "xmpp:test@domain.tld" Bitte keine Emailadressen als Namen oder Kommentar verwenden It's not possible, because gpg says: The name look like a email address. --quick-adduid is working.

  13. flow

    DebXWoody, that's more of an gpg API issue

  14. DebXWoody

    Yes, but it should look like I did?

  15. DebXWoody

    Add the xmpp URI as name and keep mail and comment empty.

  16. flow

    I haven't verified that gpg will then produce the according rfc4880 subpacket, but it's not unreasonable that it does

  17. flow

    IIRC gpg provides a dump command to inspect the rfc4880 structure

  18. flow

    one potentially want to use that to verify that the result is compliant to xep373

  19. pep.

    I think I used xmpp URIs in the email or comment field last time I tried

  20. flow

    you potentially want to use that to verify that the result is compliant to xep373

  21. pep.

    I think I used xmpp URIs in the email last time I tried

  22. flow

    I'd guess either of name or mail address is fine

  23. pep.

    flow, hmm, that'S gonna be slightly problematic if gpg doesn't accept it. Assume most implementations will use gpg / gpgme or similar for this :/

  24. flow

    pep., well they should use the high level gpg api for taht

  25. flow

    besides older gpg versions are known to have a problematic api

  26. flow

    mostly because older gpg versions had no api, so gpg APIs where build around the gpg command line interface and parsed the gpp output

  27. flow

    every reasonable OpenPGP API lets you create the User ID Packet with an arbitrary string

  28. flow

    cause that is what rfc4880 specifies: https://tools.ietf.org/html/rfc4880#section-5.11

  29. pep.

    ok

  30. flow

    in the example DebXWoody gave, gpg is trying to prevent the user doing something uncommon (assuming the user wants to use gpg as gpg believes it should be used)

  31. flow

    they should use the high level gpg api for taht → they should *not* use the high level gpg API for that

  32. lovetox

    gpg lets you do this

  33. lovetox

    you just have to pass the proper commands

  34. lovetox

    there is a command that lets you skip all those checks

  35. lovetox

    for example --allow-freeform-uid

  36. lovetox

    Disable all checks on the form of the user ID while generating a new one.

  37. flow

    lovetox, yep, DebXWoody already mentioned --quick-add-uid

  38. pep.

    One wouldn't use gpg directly though right? :/

  39. pep.

    I mean gnupg

  40. lovetox

    if the command line app will not support something,i think your chances are low that you can do it programmatically

  41. flow

    pep., yes, you would want to use an library providing an OpenPGP API

  42. flow

    for gnugp there is gpgme, but I can't comment on its suitability nor usability

  43. flow

    but there a dozens of alternatives

  44. pep.

    dozens?

  45. flow

    https://neopg.io/

  46. flow

    https://sequoia-pgp.org/

  47. flow

    paul's pgpainless (java)

  48. flow

    https://www.openpgp.org/software/developer/

  49. lovetox

    gpgme is not very advanced

  50. lovetox

    i remember when i implemented gpg in gajim, it didnt even had an api for importing a key

  51. lovetox

    the python bindings i mean

  52. flow

    the situation of python openpgp APIs was not good a few years ago, I hope that changed

  53. lovetox

    i think someone worked on the python gpgme bindings

  54. lovetox

    and it can do now more but didnt look since a year

  55. pep.

    Yeah last time I checked was the berlin sprint last year

  56. pep.

    Using the Rust binding of gpgpme. I might use sequoia someday if I tackle this again

  57. flow

    sequoia is in very good standing

  58. flow

    definetly something to look out for

  59. pep.

    It's been a few years I've known about them, just never had the chance

  60. DebXWoody

    gpgme is ok: https://codeberg.org/xmpp-messenger/xmppc/src/branch/master/src/mode/pgp.c#L99

  61. DebXWoody

    I like the idea of XEP-0373 and 0027 is obsolete. But I don't get why there is https://xmpp.org/extensions/xep-0373.html#synchro-pep within XEP-0373? Is it ok to skip it or is the client in those case not XEP-0373? My key is on a Nitrokey / Smartcard and I would like to use this key for 0373. There is no need to sync the private key and there is also no need to create a new one for me.

  62. flow

    DebXWoody, nothing in xep373 mandates that this is mandatory-to-implement

  63. DebXWoody

    ok

  64. flow

    the xep(s) deliberately keep a degree of freedom here, while sketching a schema that could work to get the average users to use OpenPGP encrypted XMPP messages (without ideally even being aware that she/he does)

  65. flow

    the xep(s) deliberately keep a degree of freedom here, while sketching a scheme that could work to get the average users to use OpenPGP encrypted XMPP messages (without ideally even being aware that she/he does)