Friday, 2026-09-04

abhishekkstable/2026.1 patches gone in merge conflicts, will rebase and repost them07:02
opendevreviewAbhishek Kekane proposed openstack/glance stable/2026.1: Block restricted addresses in web-download import URIs  https://review.opendev.org/c/openstack/glance/+/100381307:10
opendevreviewAbhishek Kekane proposed openstack/glance stable/2026.1: Pin import downloads to validated destination addresses  https://review.opendev.org/c/openstack/glance/+/100381407:10
opendevreviewAbhishek Kekane proposed openstack/glance stable/2026.1: Block restricted hosts when adding HTTP image locations  https://review.opendev.org/c/openstack/glance/+/100381507:10
abhishekk@croelandt you need to add +w again on above patches07:10
opendevreviewMerged openstack/glance stable/2025.2: Properly limit web-download image fetch size  https://review.opendev.org/c/openstack/glance/+/100381610:31
*** sfinucan is now known as stephenfin10:55
pas-ha[m]hello glance team, please see https://bugs.launchpad.net/glance/+bug/2158999/comments/3311:56
pas-ha[m]namely, recent SSRF patches introduced a problem. When DNS returns both IPv6 and IPv4, and by chance the first one checked by glance and allowed thru is IPv6 but glance itself runs in an IPv4-only network - image download/import will fail.11:56
pas-ha[m]As I read the description of disallowed_host option, it does not look like I can put "all IPv6 range" there.11:58
opendevreviewMerged openstack/glance stable/2025.2: Block restricted addresses in web-download import URIs  https://review.opendev.org/c/openstack/glance/+/100381712:24
opendevreviewMerged openstack/glance stable/2025.2: Pin import downloads to validated destination addresses  https://review.opendev.org/c/openstack/glance/+/100381812:25
abhishekk@croelandt @rosmaita test_image_web_download_import test is failing intermittently on stable/2025.2 and it might will fail on master (though it's merged) and other branches as well12:47
abhishekkPavlo has commented out the reason which looks valid, https://bugs.launchpad.net/glance/+bug/2158999/comments/3312:48
abhishekkI have asked him whether he is willing to fix this, let me know what we should do, wait or proceed with a fix12:49
rosmaitaabhishekk: ok, let's see what he says ... that looks like a "regular" bug, so should be filed separately from the security issue12:52
rosmaitai.e., it doesn't compromise the security fix12:53
abhishekkyes, sounds good12:53
pas-ha[m]yes, definitely, let me file a separate bug12:53
abhishekkcool, thank you!!12:53
pas-ha[m]this was kind of heads up for people who apply these patches and see similar failures12:53
abhishekkwe are seeing it in stable/2026.1 at the moment, network unreachable 12:54
rosmaitathis is the problem with fixing bugs in private, it's difficult to consider all the real-life side-effects to the exploit that we're trying to prevent12:54
abhishekkagree12:54
pas-ha[m]I have patch in the works, will push 1st idea shortly so we can agree on new option names etc12:55
rosmaitapas-ha[m]: excellent!12:55
rosmaitapas-ha[m]: to be clear, i think you were correct in reporting the issue on the security bug, i just think we should follow it up on a different bug12:56
abhishekkpas-ha[m]: i think we should avoid introducing new config options to avoid breaking backward compatibility? 12:56
abhishekkrosmaita: wdyt? ^^12:56
abhishekkhow about simple one line change which will sort the list to prefer ipv4 1st? like addresses.sort(key=lambda addr: (isinstance(addr, ipaddress.IPv6Address), addr))12:57
rosmaitaif we can set a sensible default, i think it would be ok to add a new option12:57
pas-ha[m]I plan to follow other image_filtering options somewhat, add option 'allowed_ip_version' with values ipv4, ipv6 and 'all' (default)12:57
pas-ha[m]abhishekk: that would break IPv6-only deployments then12:58
rosmaitaso 'all' would basically be current behavior12:58
pas-ha[m]yes12:58
abhishekkack12:58
rosmaitai think that would be ok, we can argue to the release team that it's the only way to fix a regression caused by a security fix, and that since the default preserves current behavior, it's backportable13:00
abhishekkack, can't we detect local network capabilities and act accordingly?13:04
abhishekk# - If system has IPv4 only: IPv4 addresses first13:05
abhishekk# - If system has IPv6 only: IPv6 addresses first13:05
abhishekk# - If system has both: IPv4 first (conservative/common)13:05
pas-ha[m]not sure we can make it general enough for all possible edge cases 😕13:06
pas-ha[m]but let me file a bug, push the change and we can continue in gerrit review 🙂 13:06
abhishekkack, lets discuss this on your patch then13:06
abhishekksounds good13:07
abhishekkthank you for working on this!!13:07
opendevreviewMerged openstack/glance stable/2026.1: Properly limit web-download image fetch size  https://review.opendev.org/c/openstack/glance/+/100381213:11
pas-ha[m]https://bugs.launchpad.net/glance/+bug/2166488 issue filed13:18
opendevreviewPavlo Shchelokovskyy proposed openstack/glance master: Allow to limit DNS resolution by IP version  https://review.opendev.org/c/openstack/glance/+/100395613:22
pas-ha[m]that's the 1st iteration of the patch13:22
*** EugenMayer4401809 is now known as EugenMayer44018013:33
abhishekkack13:44
opendevreviewAbhishek Kekane proposed openstack/glance master: DNM - Fix randomly fails on wrong IP version on web-download  https://review.opendev.org/c/openstack/glance/+/100398214:09
abhishekk@pas-ha[m] I was talking about this way ^^14:09
pas-ha[m]abhishekk: unfortunately this does not work. AFAIU This only detects if system network stack is IPv6 capable, i guess it is essentially the same as `socket.has_ipv6`. As a check I have just tried the same command in my env where we reproduce this (w/o IPv6 connectivity), and this check passes - but the actual connect is not possible.14:23
abhishekkack, thanks for testing14:24
pas-ha[m]also, I suppose there could be cases where ipv6 is only local, but global access 'outside' is routable via ipv4, or vice versa. hence my comment re 'general case', and my idea to be explicit, with config option.14:32
opendevreviewPavlo Shchelokovskyy proposed openstack/glance master: Allow to limit DNS resolution by IP version  https://review.opendev.org/c/openstack/glance/+/100395614:40
pas-ha[m]ready for review, with unit tests and release note14:41
abhishek_@rosmaita @dansmith @croelandt when you are free ^^14:57
opendevreviewMerged openstack/glance stable/2026.1: Block restricted addresses in web-download import URIs  https://review.opendev.org/c/openstack/glance/+/100381314:57
*** EugenMayer4401808 is now known as EugenMayer44018015:06
opendevreviewPavlo Shchelokovskyy proposed openstack/glance master: Try all allowed DNS addresses when importing image  https://review.opendev.org/c/openstack/glance/+/100400416:10
pas-ha[m]alternative variant that tries multiple IPs one by one (not tested yet)16:12
pas-ha[m]https://review.opendev.org/c/openstack/glance/+/100400416:12
abhishek_thanks, lets wait for others to comment,  i found this non-config way better16:47
opendevreviewPavlo Shchelokovskyy proposed openstack/glance master: Try all allowed DNS addresses when importing image  https://review.opendev.org/c/openstack/glance/+/100400416:49

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