New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installer: verify yumdownloader's downloads #229

Closed
marmarek opened this Issue Mar 8, 2015 · 3 comments

Comments

Projects
None yet
1 participant
@marmarek
Member

marmarek commented Mar 8, 2015

Reported by joanna on 22 Apr 2011 21:54 UTC
So, it seems like our image building scripts use yumdownloader to get some rpms from the Net, but then never verify the signature on those downloaded rpms. (I'm pretty sure that yumdownloader itself does not verify signatures).

We might consider adding rpm -K after every yumdownloader there, but parsing rpm -K requires care -- e.g. it returns success (exit 0) if e.g. MD5 is fine, but there could be no pgp signature (sigh...)

So, how smartass-ish... we complain about Xen's Makefiles downloading tgz and building them, and we actually do the same!

Migrated-From: https://wiki.qubes-os.org/ticket/229

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 22 Apr 2011 21:56 UTC

[installer](user@qbdev-f13)$ grep -R yumdownloader *
anaconda/anaconda.spec:- Pass the --archlist option to yumdownloader (jkeating)
anaconda/scripts/mk-images.efi:    ydcmd="yumdownloader -c $yumconf $grubpkg"
anaconda/scripts/mk-images.efi:    ydcmd="yumdownloader -c ${yumconf} ${artpkg}"
anaconda/scripts/buildinstall:    yumdownloader -c $yumconf anaconda || exit 1
anaconda/scripts/mk-images:        yumdownloader -c $yumconf --archlist=$KERNELARCH $kpackage
anaconda/scripts/mk-images:            yumdownloader -c $yumconf $p
anaconda/scripts/mk-images:            yumdownloader -c $yumconf $p
anaconda/anaconda.spec.in:- Pass the --archlist option to yumdownloader (jkeating)
revisor/F13-buildinstall:    yumdownloader -c $yumconf anaconda || exit 1

and this is really killing me:

[installer](user@qbdev-f13)$ grep -R wget *         
anaconda/anaconda.spec:- Add wget to the initrd, which is required for rhts. (clumens)
anaconda/scripts/upd-instroot:    wget wpa_supplicant xkeyboard-config xfsprogs xorg-x11-xauth
anaconda/scripts/upd-instroot:usr/bin/wget
anaconda/scripts/mk-images:    instbin $IMGPATH /usr/bin/wget $MBD_DIR /sbin/wget
anaconda/anaconda.spec.in:- Add wget to the initrd, which is required for rhts. (clumens)
conf/comps-qubes.xml:      <packagereq type="default">wget</packagereq>
Binary file rpm/x86_64/anaconda-debuginfo-13.42-1.fc13.x86_64.rpm matches
Binary file rpm/x86_64/anaconda-13.42-1.fc13.x86_64.rpm matches
Member

marmarek commented Mar 8, 2015

Comment by joanna on 22 Apr 2011 21:56 UTC

[installer](user@qbdev-f13)$ grep -R yumdownloader *
anaconda/anaconda.spec:- Pass the --archlist option to yumdownloader (jkeating)
anaconda/scripts/mk-images.efi:    ydcmd="yumdownloader -c $yumconf $grubpkg"
anaconda/scripts/mk-images.efi:    ydcmd="yumdownloader -c ${yumconf} ${artpkg}"
anaconda/scripts/buildinstall:    yumdownloader -c $yumconf anaconda || exit 1
anaconda/scripts/mk-images:        yumdownloader -c $yumconf --archlist=$KERNELARCH $kpackage
anaconda/scripts/mk-images:            yumdownloader -c $yumconf $p
anaconda/scripts/mk-images:            yumdownloader -c $yumconf $p
anaconda/anaconda.spec.in:- Pass the --archlist option to yumdownloader (jkeating)
revisor/F13-buildinstall:    yumdownloader -c $yumconf anaconda || exit 1

and this is really killing me:

[installer](user@qbdev-f13)$ grep -R wget *         
anaconda/anaconda.spec:- Add wget to the initrd, which is required for rhts. (clumens)
anaconda/scripts/upd-instroot:    wget wpa_supplicant xkeyboard-config xfsprogs xorg-x11-xauth
anaconda/scripts/upd-instroot:usr/bin/wget
anaconda/scripts/mk-images:    instbin $IMGPATH /usr/bin/wget $MBD_DIR /sbin/wget
anaconda/anaconda.spec.in:- Add wget to the initrd, which is required for rhts. (clumens)
conf/comps-qubes.xml:      <packagereq type="default">wget</packagereq>
Binary file rpm/x86_64/anaconda-debuginfo-13.42-1.fc13.x86_64.rpm matches
Binary file rpm/x86_64/anaconda-13.42-1.fc13.x86_64.rpm matches
@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 22 Apr 2011 22:49 UTC
Actually we will need to solve this only in a little while, as we won't be generating any new isos anytime soon, so lowering the prio for now.

Member

marmarek commented Mar 8, 2015

Comment by joanna on 22 Apr 2011 22:49 UTC
Actually we will need to solve this only in a little while, as we won't be generating any new isos anytime soon, so lowering the prio for now.

@marmarek marmarek added P: major and removed P: critical labels Mar 8, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment

@marmarek marmarek closed this Mar 8, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment