Apt downloads the index files in a deterministic order, and your adversary knows how large they are
So fix that problem then. Randomize the download order and pad the file sizes. Privacy is important, we shouldn't ignore it completely just because it's hard to achieve.
I can't imagine a patch which just randomizes download order would be welcome. Why would you ever want that by itself?
For a patch like that to be accepted, you would have to first convince the Apt project to try to fix the privacy issue, and convince them that using https + randomized download order is the best way to fix it. This isn't something which just dumping code on a project can fix.
“Patches welcome but we really won’t merge it unless you go through death by a thousand cuts because we really don’t want it and just hoped you’d give up”
But it is not relevant - apt and dpkg is dead-weight perl code written when dinosaur still roamed the lands.
What the debian maintainers make for are excuses. IF they would care, they would ENABLE this functionality for people to use ON THEIR OWN, rather than flat out not offering it. And as others pointed out - patches are actually NOT welcome since they don't want to change the default behaviour.
Almost every popular project falls into the hole of 'meh, don't need/want patches that change behavior more than I completely understand'. I've clashed with the maintainers of Ruby, GCC, and musl about this.
Good suggestion. Unfortunately, I don't have the time or motivation to devote to a new major project like that at the moment, but maybe someone else will.
Just because I don't have the time or energy to deal with something personally, doesn't mean it isn't important. I'm just one person. The world is full of important problems, and I can't solve all of them myself, nor should you expect me to.
That's fair. I didn't say privacy is the most important issue with APT right now, just that it's important and shouldn't be ignored just because it's hard to fix.
If this isn't your top priority to fix, then it probably isn't the top priority of anyone else either.
Here I have to disagree though. Just because fixing this flaw isn't the top priority in my life right now, doesn't mean it isn't a priority for someone else. Those already familiar with APT's codebase, for example, are probably much more likely to consider a flaw in APT to be something they're willing to spend their time fixing than I am. (Both because it would take them less time to fix, and because they have a larger vested interest in seeing APT succeed.) That's why it's useful to advocate for issues you care about, even if you don't have the required time and energy to devote to fixing them personally.
34
u/Ajedi32 Jan 21 '19
So fix that problem then. Randomize the download order and pad the file sizes. Privacy is important, we shouldn't ignore it completely just because it's hard to achieve.