Re: Cryptographic signatures of installer sets

2020-02-15 Thread Nathan Dorfman
On Wed, Feb 12, 2020 at 03:22:21PM +, Glen Barber wrote: > > Have you considered the possibility of simply publishing a detached > > signature with every MANIFEST, in a similar manner to what is done for > > the installer images? > > > > I have not, as a change to the misc/freebsd-release-man

Re: Cryptographic signatures of installer sets

2020-02-12 Thread Glen Barber
On Tue, Feb 11, 2020 at 11:31:32PM +, Nathan Dorfman wrote: > > The patch I have at the moment looks for the MANIFEST (rather, the > > --) file in the location they are > > installed by the misc/freebsd-release-manifests package. > > This seems reasonable, but I think the checksum script is al

Re: Cryptographic signatures of installer sets

2020-02-11 Thread Nathan Dorfman
Sorry for my delayed response. On Mon, Feb 03, 2020 at 01:57:10PM +, Glen Barber wrote: > First, if one installs from a snapshot, the MANIFEST file would only be > valid until the next snapshot build. > > The second and third problems are somewhat related: the various > distribution sets (bas

Re: Cryptographic signatures of installer sets

2020-02-03 Thread Glen Barber
On Sat, Feb 01, 2020 at 11:34:20PM +, Nathan Dorfman wrote: > On Thu, Jan 30, 2020 at 01:22:39PM +, Glen Barber wrote: > > I honestly wasn't aware there was a jail subcommand to bsdinstall. > > I think, rather than creating /usr/freebsd-dist on the host system, we > > should instead check i

Re: Cryptographic signatures of installer sets

2020-02-02 Thread Nathan Dorfman
On Thu, Jan 30, 2020 at 01:22:39PM +, Glen Barber wrote: > I honestly wasn't aware there was a jail subcommand to bsdinstall. > I think, rather than creating /usr/freebsd-dist on the host system, we > should instead check if the misc/freebsd-release-manifests package is > installed and bail if

Cryptographic signatures of installer sets

2020-02-01 Thread Nathan Dorfman
Hello all, I really hope I'm missing something here, and we can all have a nice chuckle at my expense. But I can't see any way the integrity of the installer sets (base.txz, kernel.txz and friends) can be verified cryptographically? There is a MANIFEST file containing SHA256 checksums, but it its

Re: Cryptographic signatures of installer sets

2020-01-30 Thread Glen Barber
Hi Nathan, On Thu, Jan 30, 2020 at 12:50:06AM +, Nathan Dorfman wrote: > On Mon, Jan 27, 2020 at 04:42:01PM +, Glen Barber wrote: > > No, this last part is not true. The installer always verifies the > > checksums against /usr/freebsd-dist/MANIFEST on the installation medium. > > > > In

Re: Cryptographic signatures of installer sets

2020-01-30 Thread Nathan Dorfman
On Mon, Jan 27, 2020 at 04:42:01PM +, Glen Barber wrote: > No, this last part is not true. The installer always verifies the > checksums against /usr/freebsd-dist/MANIFEST on the installation medium. > > In particular, this was done in r293223, where the LOCAL_DISTRIBUTIONS > variable explici

Re: Cryptographic signatures of installer sets

2020-01-27 Thread Glen Barber
On Sat, Jan 25, 2020 at 08:00:07PM +, Nathan Dorfman wrote: > Hello all, > > I really hope I'm missing something here, and we can all have a nice > chuckle at my expense. > > But I can't see any way the integrity of the installer sets (base.txz, > kernel.txz and friends) can be verified crypt

Cryptographic signatures of installer sets

2020-01-25 Thread Nathan Dorfman
Hello all, I really hope I'm missing something here, and we can all have a nice chuckle at my expense. But I can't see any way the integrity of the installer sets (base.txz, kernel.txz and friends) can be verified cryptographically? There is a MANIFEST file containing SHA256 checksums, but it its