Tuesday, 2022-03-15

opendevreviewMerged openstack/python-swiftclient master: Add Python3 zed unit tests  https://review.opendev.org/c/openstack/python-swiftclient/+/83203901:37
opendevreviewMatthew Oliver proposed openstack/swift master: formpost: deprecate sha1 signatures  https://review.opendev.org/c/openstack/swift/+/83371303:37
opendevreviewTim Burke proposed openstack/swift master: CHANGELOG for 2.29.1  https://review.opendev.org/c/openstack/swift/+/83371804:35
afaranhatimburke_, clarkb so I tested what we discussed yesterday about the tempurl issue and it 's an issue only happening on centos9 fips16:28
afaranhaI opened a bug on the openssl component https://bugzilla.redhat.com/show_bug.cgi?id=2064343 and I think we can modify the code to not use functools.partial16:29
afaranhahttps://github.com/openstack/swift/blob/master/swift/common/middleware/tempurl.py#L75316:29
afaranhaI don't see the reason to use it, and we can just pass the hash_algorithm as a string to the hmac.new, this way it works also on fips env without any issue16:30
clarkbah the fips enforcement can't handle the partial function and falls back to failure16:40
clarkbI guess that makes sense from a defensive programming standpoint16:41
opendevreviewThibault Person proposed openstack/swift master: Comply with AWS signature calculation (s3v4)  https://review.opendev.org/c/openstack/swift/+/83391320:16
opendevreviewTim Burke proposed openstack/swift master: Comply with AWS signature calculation (s3v4)  https://review.opendev.org/c/openstack/swift/+/83391322:25
mattoliverYup, now that hmac.new can take the string we should be able to remove that. I'm playing with a sha1 deprecation in formpost as a follow up to the tempurl one. timburke__ Want me to respin the tempurl patch to remove the partial? 23:18
mattoliverIf your not already working on it?23:19
opendevreviewMatthew Oliver proposed openstack/swift master: formpost: deprecate sha1 signatures  https://review.opendev.org/c/openstack/swift/+/83371323:22
mattoliver^ that isn't it, that's just fixing up the followup some more :P 23:22
timburke_mattoliver, i'm not already working on it, no23:42
*** timburke_ is now known as timburke23:42
mattolivergood cause I have a new patchset I'm about to push up (once the tests finish running locally) ;) 23:42
mattoliverok, so the main problem is hmac.new can take in a disgest string name in py3, but not in py2 :( So can still try and remove the partial, but can't just use the string until py2 is deprecated from swift (after the next release!). 23:53
mattoliverSo we can either wait.. or I'll just be smarter getting the digest constructor without a partial.23:53

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