On Aug 2, Daniel Pittman wrote:
> As part of some work I am doing at the moment, I am looking at being
> able to securely bootstrap (nearly) diskless machines over an
> untrusted network.
> 
> Now, the best way that I have, off hand, been able to figure doing this
> is to have a key on each client machine and use that to decrypt an image
> downloaded from the boot image server on the client.
> 
> This does address my needs, at this stage, and is certainly something
> that I can implement inside GRUB. I would propose a new command as
> follows
> 
> grub> root (nd)
> grub> kernel /tftproot/kernel.image
> grub> decrypt 12345678               # decrypt <key>
> grub> module /tftproot/module.image
> grub> decrypt 87654321               # Need not be the same key
> grub> boot
> 
> [...]
> 
> I can happily implement the support for this myself, but would like some
> advice from the maintainers on a few issues.

I'm not a maintainer, but I think there is a better way to do this,
that doesn't involve adding encryption support to grub: 

Put your decryption routine in a multiboot compliant kernel image,
that gets the encrypted kernel as module and the key on the command line.

grub> root (nd)
grub> kernel /tftproot/blowfish key1=12345678 key2=87654321
grub> module /tftproot/kernel.image
grub> module /tftproot/module.image
grub> boot


This has the advantage that it doesn't make grub's stage2 bigger and
that it makes it easy to distribute the encryption support completely
seperate.

  Jochen

Reply via email to