Control: tags 909299 help
On 2019-05-28, Raphael Hertzog wrote:
> On Mon, 27 May 2019, Vagrant Cascadian wrote:
>> So it's non-trivial to add support for arbitrary files in arbitrary
>> directories in a secure manner...
>
> I would argue that the security aspect here is somewhat irrelevant.
> simple-cdd is run against a repository/mirror that is selected by the
> user. If he selects a malicious mirror, the malicious mirror can do
> much more harm... no matter whether this file exists or not.
Depending on it does at least prevent man-in-the-middle attacks against
a valid mirror, which seems quite security relevent.
>> > In my specific case, the Debian mirror is created with "debmirror"
>> > and this tool doesn't include that file. But I could also mention the
>> > case of many derivatives that just use reprepro.
>>
>> Maybe these other tools could add support for extrafiles?
>
> Maybe, but it's unlikely. Those tools are meant to create/
> mirror APT repositories and arguably this extrafile is just
> not part of any concept of an APT repository.
The extrafiles file documents the parts of the repository which are not
part of the APT repository but are present in the Debian mirror. These
extra files include things such as debian-installer images,
documentation, and tools which are not shipped inside the repository in
any way that APT can make use of them.
I'm not aware of any other clean way to discover what files the mirror
makes available, and the available files change names and locations from
time to time... so it would be fragile to hard-code them.
If you provide your own debian-installer image (using
"custom_installer"), and use various debian-cd OMIT_* options such as:
export OMIT_MANUAL=1
export OMIT_DOC_TOOLS=1
Then I believe simple-cdd won't even attempt to use extrafiles.
>> It's unfortunate that it may not work in all environments, though
>> simple-cdd has always targeted building images with files from
>>
debian.org, and not arbitrary locations.
>
> When you sell yourself as a tool to create "Custom Debian Distribution",
> IMO you should support being built against custom debian mirror.
It was named before the term Debian Pure Blends existed (not that I
think the new name clears up the confusion at all), and really was
intended as a tool to make quick selections of things within Debian,
with small and minor customizations with the goal of being able to
integrate them into Debian eventually. Maybe it's been primarily useful
outside of accomplishing those aims... and that's fine!
> Due to the flexibility of simple-cdd, it has always been used by
> private derivatives and the like, it would be sad to lose those users.
I'm glad to hear it's been useful!
I have unfortunately not had much time to invest in it over the years
beyond just keeping up with changes in Debian, debian-installer and
debian-cd. That said, I've kept it going this past 14.5 years...
Would love it if more people could help improve it to meet whatever
shortcomings it may have. The python rewrite, was one such great
improvement, despite a few flaws.
>> A patch to enable support without extrafiles would, of course, be
>> considered if it didn't risk degrading the trust path by default.
>
> I'm sorry, I don't have the time for this. Do you want to tag this bug
> help then?
Me neither, tagging as help.
live well,
vagrant