Conversation
Using http:// for APT repositories by default made sense for Debian and debos years ago for client performance, server load and caching friendliness, but it compromised privacy and can be seen under a bad light when looking at it from a cybersecurity standpoint. Change the default Debian mirror (deb.debian.org) from http to https. Signed-off-by: Loïc Minier <loic.minier@oss.qualcomm.com>
Use https instead of http for the Debian mirror when creating build chroots. Signed-off-by: Loïc Minier <loic.minier@oss.qualcomm.com>
This typically won't help for caching, but is symetric to http proxy handling and can help with connectivity. Signed-off-by: Loïc Minier <loic.minier@oss.qualcomm.com>
|
I'm OK with shipping sources.list with https, but can we continue to use plain http for development and testing please? Otherwise caching becomes impossible. |
|
(which is going to slow down development iterations massively) |
Test jobs for commit 8b58150 |
|
I understand this will be more of a pain to implement whatever we do. The best I can think of is to parameterise whether we want http or https, perhaps default to https for safety, allow the developer to override for local builds, and maybe add some tests to ensure that there are no plain http:// in sources.list at the end. |
|
After feedback from upstream, I'm not sure I'll pursue this branch, but I should at least move it to draft. |
|
@basak-qcom what kind of caching do you use? I think apt-cacher (or apt-cacher-ng) should support https caching. |
|
I'm using apt-cacher-ng, and https support is not fun to use |
|
Okay :-( |
|
AIUI, apt-cacher-ng only supports HTTPS passthrough, ie. not caching? The only way to cache it would be to provide an MITM certificate for use on the client. I also bumped into there being no HTTP support for https://qartifactory-edge.qualcomm.com/artifactory/qsc-deb-releases. That is shipping hexagon-dsp-binaries currently, so this hurts caching :-( |
|
There's one or more hacks in apt-cacher-ng to do caching with https, see https://www.unix-ag.uni-kl.de/~bloch/acng/html/howtos.html#ssluse but you have to rewrite your sources.list. I'm configuring acng with passthrough and also successfully used HTTPS///, but they suck (no caching or ugly cache-specific sources.list). |
|
What I'd like to do is:
I noticed that both the rootfs and image recipes require apt, so annoyingly this will either need to be done in the image recipe, or in a new separate recipe. I can think of some other ways of rearranging things, but none of them are nice. |
|
I'd like to get rid of APT in the image recipe, but that requires some boot flow reviews |
Review http vs https usage in the project and use https where it makes sense.
This is particularly important in the context of compliance as http:// might be seen as insecure, or at least lacking confidentiality.
Fixes: #290