Thursday, 2024-03-28

*** mhen_ is now known as mhen02:11
zigotkajinam: Yeah, the function load_der_public_key() and load_pem_public_key() were supposed to be internal private functions of pykmip, and they have been removed from cryptography 42.0.5 (currently in unstable)>08:59
zigoI'm not sure what should be used instead.09:00
zigoUnfortunately, pykmip doesn't seem to be a very active project, so I'm not sure what to do.09:00
zigoWhat is it used for in Barbican?09:00
tkajinamload_dr|pem_public_key is method not in pykmib but in cryptography09:00
tkajinamthey should call the methods in cryptography.hazmat.primitives.serialization instead of using default_backend09:01
zigoYep, I know, that's what I (tried to) say.09:01
zigoOh ok.09:01
zigoSo, basically, just switch the path ...09:02
zigoLooks doable.09:02
zigotkajinam: Looks like I was able to fix the problem thanks to you! :)09:14
zigoI simply used serialization.load_der_public_key() as you suggested, instead of backend.load_der_public_key().09:14
zigoI still have 2 unit tests errors, but they looked like present with version 41 of python3-cryptography as well.09:15
tkajinam https://github.com/OpenKMIP/PyKMIP/pull/71409:18
tkajinamI don't see any failures as long as I replace the removed methods09:18
zigoYeah, I wrote more or less the same thing, thanks for pushing it upstream.09:19
zigotkajinam: I still have these 2:09:20
zigohttps://paste.opendev.org/show/bW2Zsi0f1EmQ5x21oBxI/09:20
tkajinamzigo, https://github.com/OpenKMIP/PyKMIP/commit/652d5cab09:22
zigoOh, nice ! :)09:22
tkajinamyou fix it wrongly in your local, I guess09:22
zigoNo, this patch was just missing.09:24
zigoAll unit tests are passing! \o/09:26
tkajinamno release has been created since that change was merged09:28
zigoAh no, only with older python3-cryptography. :/09:40
zigoOk, fixed ! :P09:55

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!